org.apache.struts2.osgi

## Class DelegatingObjectFactory

- java.lang.Object
- - com.opensymphony.xwork2.ObjectFactory
  - - org.apache.struts2.osgi.DelegatingObjectFactory

- All Implemented Interfaces:
    Serializable, ObjectFactoryDestroyable

      public class DelegatingObjectFactory
      extends ObjectFactory
      implements ObjectFactoryDestroyable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DelegatingObjectFactory()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `buildBean(Class clazz, Map extraContext)`
    `Object` | `buildBean(String className, Map<String,Object> extraContext, boolean injectInternal)`
    `void` | `destroy()`
    `Class` | `getClassInstance(String className)`
    `boolean` | `isNoArgConstructorRequired()`
    `void` | `setBundleResourceLoader(BundleAccessor rl)`
    `void` | `setDelegateObjectFactory(Container container, String delegate)`
    `void` | `setOsgiConfigurationProvider(PackageProvider osgiConfigurationProvider)`

    - ### Methods inherited from class com.opensymphony.xwork2.ObjectFactory

      `buildAction, buildBean, buildConverter, buildInterceptor, buildResult, buildUnknownHandler, buildValidator, injectInternalBeans, setActionFactory, setClassLoader, setContainer, setConverterFactory, setInterceptorFactory, setResultFactory, setUnknownHandlerFactory, setValidatorFactory`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DelegatingObjectFactory

          public DelegatingObjectFactory()

  - ### Method Detail

    - #### setDelegateObjectFactory

          public void setDelegateObjectFactory(Container container,
                                      String delegate)

    - #### setBundleResourceLoader

          public void setBundleResourceLoader(BundleAccessor rl)

    - #### isNoArgConstructorRequired

          public boolean isNoArgConstructorRequired()

      Overrides:
        `isNoArgConstructorRequired` in class `ObjectFactory`

    - #### buildBean

          public Object buildBean(Class clazz,
                         Map extraContext)
                           throws Exception

      Overrides:
        `buildBean` in class `ObjectFactory`
      Throws:
        `Exception`

    - #### buildBean

          public Object buildBean(String className,
                         Map<String,Object> extraContext,
                         boolean injectInternal)
                           throws Exception

      Overrides:
        `buildBean` in class `ObjectFactory`
      Throws:
        `Exception`

    - #### getClassInstance

          public Class getClassInstance(String className)
                                 throws ClassNotFoundException

      Overrides:
        `getClassInstance` in class `ObjectFactory`
      Throws:
        `ClassNotFoundException`

    - #### destroy

          public void destroy()

      Specified by:
        `destroy` in interface `ObjectFactoryDestroyable`

    - #### setOsgiConfigurationProvider

          public void setOsgiConfigurationProvider(PackageProvider osgiConfigurationProvider)

Copyright © 2000–2019 Apache Software Foundation. All rights reserved.