public abstract class SunConfigBean extends Object implements javax.enterprise.deploy.spi.DConfigBean, javax.enterprise.deploy.model.XpathListener
| Modifier and Type | Field and Description |
|---|---|
protected javax.enterprise.deploy.model.DDBean |
ddBean |
protected static com.sun.enterprise.util.LocalStringManagerImpl |
localStrings |
protected PropertyChangeSupport |
propertyChange |
| Constructor and Description |
|---|
SunConfigBean() |
| Modifier and Type | Method and Description |
|---|---|
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(javax.enterprise.deploy.model.XpathEvent xpe)
Notification of change from the standard DDBean
|
javax.enterprise.deploy.spi.DConfigBean |
getDConfigBean(javax.enterprise.deploy.model.DDBean bean)
Return the JavaBean containing the server-specific deployment
configuration information based upon the XML data provided
by the DDBean.
|
protected javax.enterprise.deploy.spi.DConfigBeanRoot |
getDConfigBeanRoot() |
javax.enterprise.deploy.model.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(javax.enterprise.deploy.model.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(javax.enterprise.deploy.spi.DConfigBean dConfigBean)
Remove a child DConfigBean from this bean.
|
void |
removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
Unregister a property listener for this bean.
|
protected void |
setDDBean(javax.enterprise.deploy.model.DDBean ddBean)
we are being set a new DDBean, we need to reevaluate
ourself.
|
protected void |
setParent(SunConfigBean parent) |
String |
toString() |
protected javax.enterprise.deploy.model.DDBean ddBean
protected PropertyChangeSupport propertyChange
protected static final com.sun.enterprise.util.LocalStringManagerImpl localStrings
public javax.enterprise.deploy.spi.DConfigBean getDConfigBean(javax.enterprise.deploy.model.DDBean bean)
throws javax.enterprise.deploy.spi.exceptions.ConfigurationException
getDConfigBean in interface javax.enterprise.deploy.spi.DConfigBeanbean - The DDBean containing the XML data to be
evaluated.javax.enterprise.deploy.spi.exceptions.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 javax.enterprise.deploy.model.DDBean getDDBean()
getDDBean in interface javax.enterprise.deploy.spi.DConfigBeanprotected void setDDBean(javax.enterprise.deploy.model.DDBean ddBean)
throws Exception
DDBean - is the new standard DDBean containerExceptionpublic void notifyDDChange(javax.enterprise.deploy.model.XpathEvent xpathEvent)
notifyDDChange in interface javax.enterprise.deploy.spi.DConfigBeanevent - an event containing a reference to the
DDBean which has changed.public void removeDConfigBean(javax.enterprise.deploy.spi.DConfigBean dConfigBean)
throws javax.enterprise.deploy.spi.exceptions.BeanNotFoundException
removeDConfigBean in interface javax.enterprise.deploy.spi.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 javax.enterprise.deploy.spi.DConfigBeanpcl - PropertyChangeListener to addpublic void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)
removePropertyChangeListener in interface javax.enterprise.deploy.spi.DConfigBeanpcl - Listener to remove.public void fireXpathEvent(javax.enterprise.deploy.model.XpathEvent xpe)
fireXpathEvent in interface javax.enterprise.deploy.model.XpathListenerthe - change eventpublic String[] getXpaths()
getXpaths in interface javax.enterprise.deploy.spi.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 valueprotected abstract Map getXPathToBeanMapping()
protected abstract void process()
throws Exception
Exceptionpublic abstract Object getDescriptor()
protected javax.enterprise.deploy.spi.DConfigBeanRoot getDConfigBeanRoot()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.