public interface DescriptorBean extends SettableBean
Note that a descriptor bean may be implemented either as editable or runtime. A runtime implmentation is read-only from the caller's point of view and will throw UnsupportedOperationException from all mutating methods as well as methods on this interface that are not useful in a runtime setting.
Modifier and Type | Method and Description |
---|---|
void |
addBeanUpdateListener(BeanUpdateListener listener)
Registers a listener for handling batch updates introduced through
Descriptor.prepareUpdate(weblogic.descriptor.Descriptor) and Descriptor.activateUpdate() . |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a normal property change listener.
|
DescriptorBean |
createChildCopy(java.lang.String propertyName,
DescriptorBean beanToCopy)
Creates a new child bean property that is a copy of beanToCopy and
associates it with the property named propertyName.
|
DescriptorBean |
createChildCopyIncludingObsolete(java.lang.String propertyName,
DescriptorBean beanToCopy)
Variation on createChildCopy that also copies @obsolete properties
|
Descriptor |
getDescriptor()
Returns the descriptor to which this bean belongs.
|
DescriptorBean |
getParentBean()
Returns the bean that is the parent of this bean.
|
boolean |
isEditable() |
void |
removeBeanUpdateListener(BeanUpdateListener listener)
Remove previously registered prepare listener.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove property change listener.
|
isSet, unSet
Descriptor getDescriptor()
DescriptorBean getParentBean()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
DescriptorBean.addBeanUpdateListener(weblogic.descriptor.BeanUpdateListener)
for batch updates. While it
is called when the setter is called, a BeanUpdateListener is not called
until all updates have been applied to entire descriptor graph.listener
- void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- void addBeanUpdateListener(BeanUpdateListener listener)
Descriptor.prepareUpdate(weblogic.descriptor.Descriptor)
and Descriptor.activateUpdate()
.
It will be called whenever changes to this bean are prepared, activated or
rolled back.listener
- Listener to be called when change is prepared, activated
or rolled back.
see bug 16344045void removeBeanUpdateListener(BeanUpdateListener listener)
boolean isEditable()
DescriptorBean createChildCopy(java.lang.String propertyName, DescriptorBean beanToCopy) throws java.lang.IllegalArgumentException, BeanAlreadyExistsException
propertyName
- Child property name. This may be either a
singleton child property name or the property
component name of an array of children.beanToCopy
- Bean to copyjava.lang.IllegalArgumentException
- if propertyName is not the name of
a singleton child property or the component name of a array
of children property; also if the type of beanToCopy is not
compatible with the property type.BeanAlreadyExistsException
- if beanToCopy has the same key as
an existing child.
see bug 16344045DescriptorBean createChildCopyIncludingObsolete(java.lang.String propertyName, DescriptorBean beanToCopy) throws java.lang.IllegalArgumentException, BeanAlreadyExistsException
propertyName
- beanToCopy
- java.lang.IllegalArgumentException
BeanAlreadyExistsException