Package org.apache.wiki.ui.admin
Class SimpleAdminBean
- java.lang.Object
- 
- org.apache.wiki.management.SimpleMBean
- 
- org.apache.wiki.ui.admin.SimpleAdminBean
 
 
- 
- All Implemented Interfaces:
- javax.management.DynamicMBean,- AdminBean,- GenericHTTPHandler
 - Direct Known Subclasses:
- CoreBean,- ModuleBean,- SearchManagerBean,- UserBean
 
 public abstract class SimpleAdminBean extends SimpleMBean implements AdminBean Provides an easy-to-use interface for JSPWiki AdminBeans, which also are JMX MBeans. This class provides a default interface for the doGet() and doPost() interfaces by using the introspection capabilities of the SimpleMBean.- Since:
- 2.5.52
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected Enginem_engineProvides access to a Engine instance to which this AdminBean belongs to.- 
Fields inherited from class org.apache.wiki.management.SimpleMBeanm_beanInfo
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedSimpleAdminBean()Constructor reserved for subclasses only.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringdoGet(Context context)By default, this method creates a blob of HTML, listing all the attributes which can be read or written to.java.lang.StringdoPost(Context context)Not implemented yet.java.lang.StringgetId()By default, this method returns the class name of the bean.voidinitialize(Engine engine)Initialize the AdminBean by setting up a Engine instance internally.- 
Methods inherited from class org.apache.wiki.management.SimpleMBeangetAttribute, getAttributeNames, getAttributes, getDescription, getMBeanInfo, getMethodNames, invoke, setAttribute, setAttributes
 
- 
 
- 
- 
- 
Constructor Detail- 
SimpleAdminBeanprotected SimpleAdminBean() throws javax.management.NotCompliantMBeanException Constructor reserved for subclasses only.- Throws:
- javax.management.NotCompliantMBeanException
 
 
- 
 - 
Method Detail- 
initializepublic void initialize(Engine engine) Initialize the AdminBean by setting up a Engine instance internally.- Specified by:
- initializein interface- AdminBean
 
 - 
doGetpublic java.lang.String doGet(Context context) By default, this method creates a blob of HTML, listing all the attributes which can be read or written to. If the attribute is read-only, a readonly input widget is created. The value is determined by the toString() method of the attribute.- Specified by:
- doGetin interface- GenericHTTPHandler
- Parameters:
- context- associated WikiContext
- Returns:
- the HTML for the bean
 
 - 
doPostpublic java.lang.String doPost(Context context) Not implemented yet.- Specified by:
- doPostin interface- GenericHTTPHandler
- Parameters:
- context- associated WikiContext
- Returns:
- the response string resulting from the POST
 
 - 
getIdpublic java.lang.String getId() By default, this method returns the class name of the bean. This is suitable, if you have a singleton bean.- Specified by:
- getIdin interface- GenericHTTPHandler
- Returns:
- the identifier for the bean
 
 
- 
 
-