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

Constructor Summary
GBeanOverride(AbstractName name, boolean load, JexlExpressionParser expressionParser)
           
GBeanOverride(Element gbean, JexlExpressionParser expressionParser)
           
GBeanOverride(GBeanData gbeanData, JexlExpressionParser expressionParser, ClassLoader classLoader)
           
GBeanOverride(GBeanOverride original, String oldArtifact, String newArtifact)
           
GBeanOverride(String name, boolean load, JexlExpressionParser expressionParser)
           
 
Method Summary
 boolean applyOverrides(GBeanData data, Artifact configName, AbstractName gbeanName, ClassLoader classLoader)
           
static String getAsText(Object value, String type, ClassLoader classLoader)
           
 String getAttribute(String attributeName)
           
 Map<String,String> getAttributes()
           
 boolean getClearAttribute(String attributeName)
           
 ArrayList<String> getClearAttributes()
           
 boolean getClearReference(String referenceName)
           
 ArrayList<String> getClearReferences()
           
 String getGBeanInfo()
           
 Object getName()
           
 boolean getNullAttribute(String attributeName)
           
 ArrayList<String> getNullAttributes()
           
 ReferencePatterns getReferencePatterns(String name)
           
 Map<String,ReferencePatterns> getReferences()
           
 boolean isLoad()
           
 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 setLoad(boolean load)
           
 void setNullAttribute(String attributeName)
           
 void setReferencePatterns(String name, ReferencePatterns patterns)
           
 String substituteVariables(String attributeName, String input)
           
 Element writeXml(Document doc, Element parent)
          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
 

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(Element gbean,
                     JexlExpressionParser expressionParser)
              throws InvalidGBeanException
Throws:
InvalidGBeanException
Method Detail

getName

public Object getName()

getGBeanInfo

public String getGBeanInfo()

isLoad

public boolean isLoad()

setLoad

public void setLoad(boolean load)

getAttributes

public Map<String,String> getAttributes()

getAttribute

public String getAttribute(String attributeName)

getClearAttributes

public ArrayList<String> getClearAttributes()

getNullAttributes

public ArrayList<String> getNullAttributes()

getNullAttribute

public boolean getNullAttribute(String attributeName)

getClearAttribute

public boolean getClearAttribute(String attributeName)

getClearReferences

public ArrayList<String> getClearReferences()

getClearReference

public boolean getClearReference(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

substituteVariables

public String substituteVariables(String attributeName,
                                  String input)

writeXml

public Element writeXml(Document doc,
                        Element parent)
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.

Parameters:
doc - document containing the module, hence also the element returned from this method.
parent - module element this override will be inserted into
Returns:
newly created element for this override

getAsText

public static String getAsText(Object value,
                               String type,
                               ClassLoader classLoader)
                        throws InvalidAttributeException
Throws:
InvalidAttributeException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.