|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sssw.jbroker.api.admin.ManageableBase
Utility base class to help implement a Manageable. It does reflection on its methods to determine the list of properties, their types, and whether a property is writable.
The inheriting class can implement methods names following javabean design pattern. For example if there are two methods "int getCount()" and "void setCount(int count)", then "Count" becomes a R/W property whose type is int.class.
Constructor Summary | |
ManageableBase(String name)
Constructor for ManageableBase. |
Method Summary | |
String |
getName()
get the name of the Manageable. |
Object[] |
getProperties(String[] propNames)
Get values for the given property names. |
Object |
getProperty(String prop)
Get a property value. |
Class |
getPropertyType(String prop)
Get the type of the given property. |
boolean |
isWritable(String property)
Determine if a given property is writable, or just read-only. |
String[] |
propertyNames()
Get a list of the property names. |
Class[] |
propertyTypes()
Get a list of the property types. |
void |
setProperties(Hashtable props)
Set multiple properties. |
void |
setProperty(String prop,
Object value)
Set a property. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ManageableBase(String name)
Method Detail |
public String getName() throws RemoteException
Manageable
getName
in interface Manageable
RemoteException
public Object getProperty(String prop) throws RemoteException, ManageableException
Manageable
getProperty
in interface Manageable
RemoteException
ManageableException
public Object[] getProperties(String[] propNames) throws RemoteException, ManageableException
Manageable
getProperties
in interface Manageable
RemoteException
ManageableException
public void setProperties(Hashtable props) throws RemoteException, ManageableException
Manageable
setProperties
in interface Manageable
RemoteException
ManageableException
public void setProperty(String prop, Object value) throws RemoteException, ManageableException
Manageable
setProperty
in interface Manageable
RemoteException
ManageableException
public String[] propertyNames() throws RemoteException
Manageable
propertyNames
in interface Manageable
RemoteException
public Class[] propertyTypes() throws RemoteException
Manageable
propertyTypes
in interface Manageable
RemoteException
public Class getPropertyType(String prop) throws RemoteException, ManageableException
Manageable
getPropertyType
in interface Manageable
RemoteException
ManageableException
public boolean isWritable(String property) throws RemoteException, ManageableException
Manageable
isWritable
in interface Manageable
RemoteException
ManageableException
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |