|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configurable
represents configuration of a particular area in WSO2 SOA Enablement Server.
An instance of Configurable
for particular fragment of
configuration can be obtained by using of Configurator
.
To access the configuration from the Configurable
is necessary
to create interface that contains the bean-pattern getters/setters
for the data you want to access, and then narrow the Configurable
to your interface.
interface MyConfiguration{ String getName(); void setName(String name); } Configurable configuration = ...; MyConfiguration myConf = (MyConfiguration)configuration.narrow(MyConfiguration.class); String myName = myConf.getName(); if (myName == null) myConf.setName("myConfiguration"); ...
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds property change listener on this configurable. |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds vetoable change listener on this configurable. |
java.lang.String |
getId()
Deprecated. Use getType() and getName() instead |
java.lang.String |
getName()
Returns the for this configurable. |
Configurable |
getParent()
Returns the predecessor of this configurable. |
java.lang.String |
getReferenceLocation()
Returns the location of the service directory. |
java.lang.String |
getType()
Returns the type name for this configurable. |
boolean |
isPersistent()
Returns true if the configurable is persistent (changes in the configuration are persistent). |
java.lang.Object |
narrow(java.lang.Class iface)
Return an instance of given interface. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes property change listener from this configurable. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes vetoable change listener from this configurable. |
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- the listener to be removedpublic void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- the listener to be addedpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- the listener to be removedpublic java.lang.String getId()
getType()
and getName()
instead
public java.lang.String getType()
public java.lang.String getName()
public java.lang.Object narrow(java.lang.Class iface)
iface
- the interface to be narrowed to
iface
interface, never null
public Configurable getParent()
public java.lang.String getReferenceLocation()
public boolean isPersistent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |