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

Version:
$Rev: 1144307 $ $Date: 2011-07-08 21:24:09 +0800 (Fri, 08 Jul 2011) $
See Also:
Serialized Form

Field Summary
static String ATTRIBUTE_NAMESPACE
           
 
Constructor Summary
GBeanOverride(org.apache.geronimo.gbean.AbstractName name, boolean load, JexlExpressionParser expressionParser)
           
GBeanOverride(org.apache.geronimo.gbean.GBeanData gbeanData, JexlExpressionParser expressionParser, org.osgi.framework.Bundle bundle)
           
GBeanOverride(GBeanOverride original, String oldArtifact, String newArtifact)
           
GBeanOverride(GbeanType gbean, JexlExpressionParser expressionParser)
           
GBeanOverride(String name, boolean load, JexlExpressionParser expressionParser)
           
 
Method Summary
 boolean applyOverrides(org.apache.geronimo.gbean.GBeanData data, org.apache.geronimo.kernel.repository.Artifact configName, org.apache.geronimo.gbean.AbstractName gbeanName, org.osgi.framework.Bundle bundle)
           
protected  String getAsText(String attributeName, Object value, String type, org.osgi.framework.Bundle bundle)
           
 String getAttribute(String attributeName)
           
 Map<String,String> getAttributes()
           
 Set<String> getClearAttributes()
           
 Set<String> getClearReferences()
           
 String getComment()
           
 String getGBeanInfo()
           
 Object getName()
           
 Set<String> getNullAttributes()
           
 org.apache.geronimo.gbean.ReferencePatterns getReferencePatterns(String name)
           
 Map<String,org.apache.geronimo.gbean.ReferencePatterns> getReferences()
           
 boolean isClearAttribute(String attributeName)
           
 boolean isClearReference(String referenceName)
           
 boolean isLoad()
           
 boolean isNullAttribute(String attributeName)
           
protected  PropertyEditor loadPropertyEditor(org.apache.geronimo.gbean.GAttributeInfo attribute, org.osgi.framework.Bundle bundle)
           
 void setAttribute(org.apache.geronimo.gbean.GAttributeInfo attrInfo, Object attributeValue, org.osgi.framework.Bundle bundle)
           
 void setClearAttribute(String attributeName)
           
 void setClearReference(String referenceName)
           
 void setComment(String comment)
           
 void setLoad(boolean load)
           
 void setNullAttribute(String attributeName)
           
 void setReferencePatterns(String name, org.apache.geronimo.gbean.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(org.apache.geronimo.gbean.AbstractName name,
                     boolean load,
                     JexlExpressionParser expressionParser)

GBeanOverride

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

GBeanOverride

public GBeanOverride(org.apache.geronimo.gbean.GBeanData gbeanData,
                     JexlExpressionParser expressionParser,
                     org.osgi.framework.Bundle bundle)
              throws InvalidAttributeException
Throws:
InvalidAttributeException

GBeanOverride

public GBeanOverride(GbeanType gbean,
                     JexlExpressionParser expressionParser)
              throws org.apache.geronimo.kernel.InvalidGBeanException
Throws:
org.apache.geronimo.kernel.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(org.apache.geronimo.gbean.GAttributeInfo attrInfo,
                         Object attributeValue,
                         org.osgi.framework.Bundle bundle)
                  throws InvalidAttributeException
Throws:
InvalidAttributeException

getReferences

public Map<String,org.apache.geronimo.gbean.ReferencePatterns> getReferences()

getReferencePatterns

public org.apache.geronimo.gbean.ReferencePatterns getReferencePatterns(String name)

setReferencePatterns

public void setReferencePatterns(String name,
                                 org.apache.geronimo.gbean.ReferencePatterns patterns)

applyOverrides

public boolean applyOverrides(org.apache.geronimo.gbean.GBeanData data,
                              org.apache.geronimo.kernel.repository.Artifact configName,
                              org.apache.geronimo.gbean.AbstractName gbeanName,
                              org.osgi.framework.Bundle bundle)
                       throws org.apache.geronimo.kernel.config.InvalidConfigException
Throws:
org.apache.geronimo.kernel.config.InvalidConfigException

loadPropertyEditor

protected PropertyEditor loadPropertyEditor(org.apache.geronimo.gbean.GAttributeInfo attribute,
                                            org.osgi.framework.Bundle bundle)

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,
                           org.osgi.framework.Bundle bundle)
                    throws InvalidAttributeException
Throws:
InvalidAttributeException


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