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 Details

    • TestGenericFactory

      public TestGenericFactory()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      Inject the Spring Application Context for testing.
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Parameters:
      applicationContext - Spring ApplicationContext
    • destroy

      public void destroy()
      Resets the test Spring Application Context.
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean