Class SpringProxyableObjectFactory

All Implemented Interfaces:
Serializable, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class SpringProxyableObjectFactory extends SpringObjectFactory
SpringProxyableObjectFactory.
Author:
Jason Carreira
See Also:
  • Constructor Details

    • SpringProxyableObjectFactory

      public SpringProxyableObjectFactory()
  • Method Details

    • buildBean

      public Object buildBean(String beanName, Map<String,Object> extraContext) throws Exception
      Description copied from class: ObjectFactory
      Build a generic Java object of the given type.
      Overrides:
      buildBean in class ObjectFactory
      Parameters:
      beanName - the type of Object to build
      extraContext - a Map of extra context which uses the same keys as the ActionContext
      Returns:
      object for the given type
      Throws:
      Exception - in case of any error
    • getApplicationContext

      protected org.springframework.context.ApplicationContext getApplicationContext(Map<String,Object> context)
      Subclasses may override this to return a different application context. Note that this application context should see any changes made to the autoWiringFactory, so the application context should be either the original or a child context of the original.
      Parameters:
      context - provided context.
      Returns:
      the application context