org.mule.config.builders
Class ObjectGetOrCreateRule

java.lang.Object
  extended byorg.apache.commons.digester.Rule
      extended byorg.apache.commons.digester.ObjectCreateRule
          extended byorg.mule.config.builders.ObjectGetOrCreateRule

public class ObjectGetOrCreateRule
extends org.apache.commons.digester.ObjectCreateRule

A digester rule that will either create an object of look it up from a container.


Field Summary
protected  String classAttrib
           
protected  boolean classRefRequired
           
protected  String containerAttrib
           
protected  String containerMethodName
           
protected  UMOContainerContext context
           
static String DEFAULT_CLASSNAME_ATTRIBUTE
           
static String DEFAULT_REF_ATTRIBUTE
           
protected  String refAttrib
           
 
Fields inherited from class org.apache.commons.digester.ObjectCreateRule
attributeName, className
 
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
 
Constructor Summary
ObjectGetOrCreateRule(String defaultImpl, String className, boolean classRefRequired, String containerMethodName)
           
ObjectGetOrCreateRule(String defaultImpl, String className, String containerMethodName)
           
ObjectGetOrCreateRule(String defaultImpl, String className, String refAttrib, boolean classRefRequired, String containerMethodName)
           
ObjectGetOrCreateRule(String defaultImpl, String className, String refAttrib, String classAttrib, boolean classRefRequired, String containerMethodName)
           
ObjectGetOrCreateRule(String defaultImpl, String className, String refAttrib, String containerAttrib, String classAttrib, boolean classRefRequired, String containerMethodName)
           
 
Method Summary
 void begin(Attributes attributes)
          This method is deprecated in the Digester API however the API still uses it and we must overload it in order to customse the ObjectCreateRuleBehaviour
protected  UMOContainerContext getContainer()
           
 
Methods inherited from class org.apache.commons.digester.ObjectCreateRule
end, toString
 
Methods inherited from class org.apache.commons.digester.Rule
begin, body, body, end, finish, getDigester, getNamespaceURI, setDigester, setNamespaceURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_REF_ATTRIBUTE

public static final String DEFAULT_REF_ATTRIBUTE
See Also:
Constant Field Values

DEFAULT_CLASSNAME_ATTRIBUTE

public static final String DEFAULT_CLASSNAME_ATTRIBUTE
See Also:
Constant Field Values

refAttrib

protected String refAttrib

classAttrib

protected String classAttrib

classRefRequired

protected boolean classRefRequired

containerMethodName

protected String containerMethodName

context

protected UMOContainerContext context

containerAttrib

protected String containerAttrib
Constructor Detail

ObjectGetOrCreateRule

public ObjectGetOrCreateRule(String defaultImpl,
                             String className,
                             String containerMethodName)

ObjectGetOrCreateRule

public ObjectGetOrCreateRule(String defaultImpl,
                             String className,
                             boolean classRefRequired,
                             String containerMethodName)

ObjectGetOrCreateRule

public ObjectGetOrCreateRule(String defaultImpl,
                             String className,
                             String refAttrib,
                             boolean classRefRequired,
                             String containerMethodName)

ObjectGetOrCreateRule

public ObjectGetOrCreateRule(String defaultImpl,
                             String className,
                             String refAttrib,
                             String classAttrib,
                             boolean classRefRequired,
                             String containerMethodName)

ObjectGetOrCreateRule

public ObjectGetOrCreateRule(String defaultImpl,
                             String className,
                             String refAttrib,
                             String containerAttrib,
                             String classAttrib,
                             boolean classRefRequired,
                             String containerMethodName)
Method Detail

begin

public void begin(Attributes attributes)
           throws Exception
This method is deprecated in the Digester API however the API still uses it and we must overload it in order to customse the ObjectCreateRuleBehaviour

Parameters:
attributes -
Throws:
Exception

getContainer

protected UMOContainerContext getContainer()
                                    throws NoSuchMethodException,
                                           IllegalAccessException,
                                           InvocationTargetException
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.