|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.deployapi.config.SunConfigBean
public abstract class SunConfigBean
Superclass for all the ConfigBeans. ConfigBeans are organized with a parent-child relationship. The parent defines xPaths and their mapping to child beans and return this mapping from the getXPathToBeanMapping method. Each bean is associated with a DOL descriptor (virtual field for this class) accessible through the getDescriptor() call.
| Field Summary | |
|---|---|
protected DDBean |
ddBean
|
protected static LocalStringManagerImpl |
localStrings
|
protected PropertyChangeSupport |
propertyChange
|
| Constructor Summary | |
|---|---|
SunConfigBean()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
Register a property listener for this bean. |
static String |
extractTextFromXML(String key,
String xmlFragment)
Convenience method extract node value from the passed xml fragment. |
void |
fireXpathEvent(XpathEvent xpe)
Notification of change from the standard DDBean |
DConfigBean |
getDConfigBean(DDBean bean)
Return the JavaBean containing the server-specific deployment configuration information based upon the XML data provided by the DDBean. |
protected DConfigBeanRoot |
getDConfigBeanRoot()
|
DDBean |
getDDBean()
Return the JavaBean containing the deployment descriptor XML text associated with this DConfigBean. |
abstract Object |
getDescriptor()
|
SunConfigBean |
getParent()
|
String[] |
getXpaths()
Return a list of XPaths designating the deployment descriptor information this DConfigBean requires. |
protected abstract Map |
getXPathToBeanMapping()
|
void |
notifyDDChange(XpathEvent xpathEvent)
A notification that the DDBean provided in the event has changed and this bean or its child beans need to reevaluate themselves. |
protected abstract void |
process()
evaluate a standard bean |
void |
removeDConfigBean(DConfigBean dConfigBean)
Remove a child DConfigBean from this bean. |
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
Unregister a property listener for this bean. |
protected void |
setDDBean(DDBean ddBean)
we are being set a new DDBean, we need to reevaluate ourself. |
protected void |
setParent(SunConfigBean parent)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected DDBean ddBean
protected PropertyChangeSupport propertyChange
protected static final LocalStringManagerImpl localStrings
| Constructor Detail |
|---|
public SunConfigBean()
| Method Detail |
|---|
public DConfigBean getDConfigBean(DDBean bean)
throws ConfigurationException
getDConfigBean in interface DConfigBeanbean - The DDBean containing the XML data to be
evaluated.
ConfigurationException - reports errors in generating
a configuration bean. This DDBean is considered
undeployable to this server until this exception
is resolved.
A suitably descriptive message is required so the user
can diagnose the error.public DDBean getDDBean()
getDDBean in interface DConfigBean
protected void setDDBean(DDBean ddBean)
throws Exception
DDBean - is the new standard DDBean container
Exceptionpublic void notifyDDChange(XpathEvent xpathEvent)
notifyDDChange in interface DConfigBeanevent - an event containing a reference to the
DDBean which has changed.
public void removeDConfigBean(DConfigBean dConfigBean)
throws BeanNotFoundException
removeDConfigBean in interface DConfigBeanbean - The child DConfigBean to be removed.
BeanNotFoundException - the bean provided
is not in the child list of this bean.public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)
addPropertyChangeListener in interface DConfigBeanpcl - PropertyChangeListener to addpublic void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener in interface DConfigBeanpcl - Listener to remove.public void fireXpathEvent(XpathEvent xpe)
fireXpathEvent in interface XpathListenerthe - change eventpublic String[] getXpaths()
getXpaths in interface DConfigBeanprotected void setParent(SunConfigBean parent)
public SunConfigBean getParent()
public static String extractTextFromXML(String key,
String xmlFragment)
key - the xml tag namexml - fragment to extract the tag value
protected abstract Map getXPathToBeanMapping()
protected abstract void process()
throws Exception
Exceptionpublic abstract Object getDescriptor()
protected DConfigBeanRoot getDConfigBeanRoot()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||