Class TestGenericFactory
java.lang.Object
de.hybris.platform.sap.core.common.util.DefaultGenericFactory
de.hybris.platform.sap.core.test.util.TestGenericFactory
- All Implemented Interfaces:
GenericFactory,org.springframework.beans.factory.Aware,org.springframework.beans.factory.DisposableBean,org.springframework.context.ApplicationContextAware
public class TestGenericFactory
extends DefaultGenericFactory
implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.DisposableBean
Generic factory for tests with direct Spring access.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Resets the test Spring Application Context.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) Inject the Spring Application Context for testing.Methods inherited from class de.hybris.platform.sap.core.common.util.DefaultGenericFactory
findAnnotationOnBean, getBean, getBean, getBean, getBeanNamesForType, removeBean
-
Constructor Details
-
TestGenericFactory
public TestGenericFactory()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) Inject the Spring Application Context for testing.- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Parameters:
applicationContext- SpringApplicationContext
-
destroy
public void destroy()Resets the test Spring Application Context.- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean
-