|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.arooa.ArooaFactory
Builds an object from XML. This highly configurable factory will either configure a component provided as the objectToConfigure or create a component using the class attribute or tag name of the document root.
If a documentStartHandler is provided the factory assumes the root object will also be provided.
| Nested Class Summary | |
class |
ArooaFactory.ComponentRoot
|
| Constructor Summary | |
ArooaFactory()
|
|
| Method Summary | |
java.lang.Object |
build(java.io.File file)
Build from a file. |
java.lang.Object |
build(org.xml.sax.InputSource inputSource)
Build from an input source. |
java.lang.Object |
build(java.io.InputStream in)
Build from an input stream of xml. |
java.lang.Object |
build(java.lang.String xml)
Build from a string xml message. |
org.apache.commons.beanutils.BeanUtilsBean |
getBeanUtilsBean()
|
ObjectFactory |
getComponentFactory()
|
ArooaHandler |
getComponentHandler()
|
ComponentProxyResolver |
getComponentProxyResolver()
|
ComponentRegistry |
getComponentRegistry()
|
ArooaHandler |
getDocumentStartHandler()
Retrieve the document start handler. |
java.lang.String |
getDocumentTag()
|
ArooaHandler |
getElementHandler()
|
ArooaHandler |
getMappedHandler()
|
PropertyProxyResolver |
getPropertProxyResolver()
|
ArooaHandler |
getPropertyHandler()
|
java.lang.String |
getSubstitutionPolicy()
|
ObjectFactory |
getValueFactory()
|
void |
setBeanUtilsBean(org.apache.commons.beanutils.BeanUtilsBean bub)
|
void |
setComponentFactory(ObjectFactory componentFactory)
|
void |
setComponentHandler(ArooaHandler componentHandler)
|
void |
setComponentProxyResolver(ComponentProxyResolver componentProxyResolver)
|
void |
setComponentRegistry(ComponentRegistry componentRegistry)
|
void |
setDocumentStartHandler(ArooaHandler documentStartHandler)
Set the document start handler. |
void |
setDocumentTag(java.lang.String documentTag)
|
void |
setElementHandler(ArooaHandler elementHandler)
|
void |
setMappedHandler(ArooaHandler mappedHandler)
|
void |
setObjectToConfigure(java.lang.Object objectToConfigure)
|
void |
setPropertProxyResolver(PropertyProxyResolver typeManager)
|
void |
setPropertyHandler(ArooaHandler valueHandler)
|
void |
setSubstitutionPolicy(java.lang.String substitutionPolicy)
|
void |
setValueFactory(ObjectFactory valueFactory)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ArooaFactory()
| Method Detail |
public java.lang.Object build(java.io.File file)
file - A file.
public java.lang.Object build(java.lang.String xml)
xml - The xml.
public java.lang.Object build(java.io.InputStream in)
in - The input stream.
public java.lang.Object build(org.xml.sax.InputSource inputSource)
inputSource - An input source.
public void setComponentFactory(ObjectFactory componentFactory)
componentFactory - The componentFactory to set.public void setComponentHandler(ArooaHandler componentHandler)
componentHandler - The componentHandler to set.public void setComponentRegistry(ComponentRegistry componentRegistry)
componentRegistry - The componentRegistry to set.public void setDocumentTag(java.lang.String documentTag)
documentTag - The documentTag to set.public void setElementHandler(ArooaHandler elementHandler)
elementHandler - The elementHandler to set.public void setSubstitutionPolicy(java.lang.String substitutionPolicy)
substitutionPolicy - The substitutionPolicy to set.public void setPropertProxyResolver(PropertyProxyResolver typeManager)
typeManager - The typeManager to set.public void setValueFactory(ObjectFactory valueFactory)
valueFactory - The valueFactory to set.public void setPropertyHandler(ArooaHandler valueHandler)
valueHandler - The valueHandler to set.public void setObjectToConfigure(java.lang.Object objectToConfigure)
objectToConfigure - The objectToConfigure to set.public void setMappedHandler(ArooaHandler mappedHandler)
mappedHandler - The mappedHandler to set.public org.apache.commons.beanutils.BeanUtilsBean getBeanUtilsBean()
public void setBeanUtilsBean(org.apache.commons.beanutils.BeanUtilsBean bub)
bub - The bub to set.public ObjectFactory getComponentFactory()
public ArooaHandler getComponentHandler()
public ComponentRegistry getComponentRegistry()
public java.lang.String getDocumentTag()
public ArooaHandler getElementHandler()
public ArooaHandler getMappedHandler()
public ArooaHandler getPropertyHandler()
public java.lang.String getSubstitutionPolicy()
public PropertyProxyResolver getPropertProxyResolver()
public ObjectFactory getValueFactory()
public void setDocumentStartHandler(ArooaHandler documentStartHandler)
documentStartHandler - The documentStartHandler to set.public ArooaHandler getDocumentStartHandler()
public ComponentProxyResolver getComponentProxyResolver()
public void setComponentProxyResolver(ComponentProxyResolver componentProxyResolver)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||