org.apache.geronimo.system.configuration
Class GBeanOverride

java.lang.Object
  extended by org.apache.geronimo.system.configuration.GBeanOverride
All Implemented Interfaces:
Serializable

public class GBeanOverride
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static String ATTRIBUTE_NAMESPACE
           
 
Constructor Summary
GBeanOverride(AbstractName name, boolean load, JexlExpressionParser expressionParser)
           
GBeanOverride(GBeanData gbeanData, JexlExpressionParser expressionParser, ClassLoader classLoader)
           
GBeanOverride(GBeanOverride original, String oldArtifact, String newArtifact)
           
GBeanOverride(GbeanType gbean, JexlExpressionParser expressionParser)
           
GBeanOverride(String name, boolean load, JexlExpressionParser expressionParser)
           
 
Method Summary
 boolean applyOverrides(GBeanData data, Artifact configName, AbstractName gbeanName, ClassLoader classLoader)
           
protected  String getAsText(String attributeName, Object value, String type, ClassLoader classLoader)
           
 String getAttribute(String attributeName)
           
 Map<String,String> getAttributes()
           
 Set<String> getClearAttributes()
           
 Set<String> getClearReferences()
           
 String getComment()
           
 String getGBeanInfo()
           
 Object getName()
           
 Set<String> getNullAttributes()
           
 ReferencePatterns getReferencePatterns(String name)
           
 Map<String,ReferencePatterns> getReferences()
           
 boolean isClearAttribute(String attributeName)
           
 boolean isClearReference(String referenceName)
           
 boolean isLoad()
           
 boolean isNullAttribute(String attributeName)
           
protected  PropertyEditor loadPropertyEditor(GAttributeInfo attribute, ClassLoader classLoader)
           
 void setAttribute(String attributeName, Object attributeValue, String attributeType, ClassLoader classLoader)
           
 void setAttribute(String attributeName, String attributeValue)
           
 void setClearAttribute(String attributeName)
           
 void setClearReference(String referenceName)
           
 void setComment(String comment)
           
 void setLoad(boolean load)
           
 void setNullAttribute(String attributeName)
           
 void setReferencePatterns(String name, ReferencePatterns patterns)
           
 String substituteVariables(String attributeName, String input)
           
 GbeanType writeXml()
          Creates a new child of the supplied parent with the data for this GBeanOverride, adds it to the parent, and then returns the new child element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_NAMESPACE

public static final String ATTRIBUTE_NAMESPACE
See Also:
Constant Field Values
Constructor Detail

GBeanOverride

public GBeanOverride(String name,
                     boolean load,
                     JexlExpressionParser expressionParser)

GBeanOverride

public GBeanOverride(AbstractName name,
                     boolean load,
                     JexlExpressionParser expressionParser)

GBeanOverride

public GBeanOverride(GBeanOverride original,
                     String oldArtifact,
                     String newArtifact)

GBeanOverride

public GBeanOverride(GBeanData gbeanData,
                     JexlExpressionParser expressionParser,
                     ClassLoader classLoader)
              throws InvalidAttributeException
Throws:
InvalidAttributeException

GBeanOverride

public GBeanOverride(GbeanType gbean,
                     JexlExpressionParser expressionParser)
              throws InvalidGBeanException
Throws:
InvalidGBeanException
Method Detail

getName

public Object getName()

getGBeanInfo

public String getGBeanInfo()

getComment

public String getComment()

setComment

public void setComment(String comment)

isLoad

public boolean isLoad()

setLoad

public void setLoad(boolean load)

getAttributes

public Map<String,String> getAttributes()

getAttribute

public String getAttribute(String attributeName)

getClearAttributes

public Set<String> getClearAttributes()

getNullAttributes

public Set<String> getNullAttributes()

isNullAttribute

public boolean isNullAttribute(String attributeName)

isClearAttribute

public boolean isClearAttribute(String attributeName)

getClearReferences

public Set<String> getClearReferences()

isClearReference

public boolean isClearReference(String referenceName)

setClearAttribute

public void setClearAttribute(String attributeName)

setNullAttribute

public void setNullAttribute(String attributeName)

setClearReference

public void setClearReference(String referenceName)

setAttribute

public void setAttribute(String attributeName,
                         Object attributeValue,
                         String attributeType,
                         ClassLoader classLoader)
                  throws InvalidAttributeException
Throws:
InvalidAttributeException

setAttribute

public void setAttribute(String attributeName,
                         String attributeValue)

getReferences

public Map<String,ReferencePatterns> getReferences()

getReferencePatterns

public ReferencePatterns getReferencePatterns(String name)

setReferencePatterns

public void setReferencePatterns(String name,
                                 ReferencePatterns patterns)

applyOverrides

public boolean applyOverrides(GBeanData data,
                              Artifact configName,
                              AbstractName gbeanName,
                              ClassLoader classLoader)
                       throws InvalidConfigException
Throws:
InvalidConfigException

loadPropertyEditor

protected PropertyEditor loadPropertyEditor(GAttributeInfo attribute,
                                            ClassLoader classLoader)

substituteVariables

public String substituteVariables(String attributeName,
                                  String input)

writeXml

public GbeanType writeXml()
Creates a new child of the supplied parent with the data for this GBeanOverride, adds it to the parent, and then returns the new child element.

Returns:
newly created element for this override

getAsText

protected String getAsText(String attributeName,
                           Object value,
                           String type,
                           ClassLoader classLoader)
                    throws InvalidAttributeException
Throws:
InvalidAttributeException


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.