Class SharedResourceFactory
java.lang.Object
org.apache.commons.digester3.AbstractObjectCreationFactory<Object>
org.frankframework.configuration.digester.AbstractSpringPoweredDigesterFactory
org.frankframework.configuration.digester.SharedResourceFactory
- All Implemented Interfaces:
org.apache.commons.digester3.ObjectCreationFactory<Object>
,IDigesterRuleAware
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Registers the newly created bean directly in Spring, which will manage it's
Lifecycle
.-
Field Summary
Fields inherited from class org.frankframework.configuration.digester.AbstractSpringPoweredDigesterFactory
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
createObject
(Map<String, String> attrs) Create Object from Spring factory, but using the attributes from the XML converted to a Map.Suggest the name of the bean which should be retrieved from the Spring BeanFactory.Methods inherited from class org.frankframework.configuration.digester.AbstractSpringPoweredDigesterFactory
copyAttrsToMap, createBeanAndAutoWire, createObject, getApplicationContext, isPrototypesOnly, setApplicationContext, setDigesterRule
Methods inherited from class org.apache.commons.digester3.AbstractObjectCreationFactory
getDigester, setDigester
-
Constructor Details
-
SharedResourceFactory
public SharedResourceFactory()
-
-
Method Details
-
getSuggestedBeanName
Description copied from class:AbstractSpringPoweredDigesterFactory
Suggest the name of the bean which should be retrieved from the Spring BeanFactory. If a className attribute has also been specified in the XML, then that takes precedence over finding a bean with given suggestedBeanName. If for the className multiple bean-definitions are found in the factory, then a bean is selected from those with this given suggestedBeanName. If no such bean exists, an error is thrown because the factory can not select between multiple beans.- Specified by:
getSuggestedBeanName
in classAbstractSpringPoweredDigesterFactory
-
createObject
Description copied from class:AbstractSpringPoweredDigesterFactory
Create Object from Spring factory, but using the attributes from the XML converted to a Map. This is so that sub-classes can override this method and change attributes in the map before creating the object from the Spring factory.- Overrides:
createObject
in classAbstractSpringPoweredDigesterFactory
- Throws:
ClassNotFoundException
-