public abstract class AbstractSpringPoweredDigesterFactory extends org.apache.commons.digester3.AbstractObjectCreationFactory<Object> implements org.springframework.context.ApplicationContextAware, IDigesterRuleAware
isPrototypesOnly()
.)Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSpringPoweredDigesterFactory() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
copyAttrsToMap(Attributes attrs) |
protected <T> T |
createBeanAndAutoWire(Class<T> beanClass) |
Object |
createObject(Attributes attrs)
Create object using, if possible, the Spring BeanFactory.
|
protected Object |
createObject(Map<String,String> attrs)
Create Object from Spring factory, but using the attributes
from the XML converted to a Map.
|
abstract String |
getSuggestedBeanName()
Suggest the name of the bean which should be retrieved from
the Spring BeanFactory.
|
boolean |
isPrototypesOnly()
Return
true is only prototype beans from the
Spring Context will be returned, false is
a Spring singleton bean might be returned. |
void |
setDigesterRule(DigesterRule rule) |
getDigester, setDigester
protected AbstractSpringPoweredDigesterFactory()
public abstract String getSuggestedBeanName()
public boolean isPrototypesOnly()
true
is only prototype beans from the
Spring Context will be returned, false
is
a Spring singleton bean might be returned.
This is hard-coded to return true
only in this
class. If a subclass wishes to allow using singleton-beans,
then this method should be overridden.true
public Object createObject(Attributes attrs) throws Exception
BeanFactoryAware
,
the Spring factory will be made available as a property so that it can
be accessed directly from the bean.protected Object createObject(Map<String,String> attrs) throws ClassNotFoundException
ClassNotFoundException
protected <T> T createBeanAndAutoWire(Class<T> beanClass)
protected Map<String,String> copyAttrsToMap(Attributes attrs)
public final void setDigesterRule(DigesterRule rule)
setDigesterRule
in interface IDigesterRuleAware
Copyright © 2023 Frank!Framework. All rights reserved.