Package org.apache.wiki.ui.admin.beans
Class CoreBean
- java.lang.Object
-
- org.apache.wiki.management.SimpleMBean
-
- org.apache.wiki.ui.admin.SimpleAdminBean
-
- org.apache.wiki.ui.admin.beans.CoreBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean,AdminBean,GenericHTTPHandler
public class CoreBean extends SimpleAdminBean
An AdminBean which manages the JSPWiki core operations.
-
-
Field Summary
-
Fields inherited from class org.apache.wiki.ui.admin.SimpleAdminBean
m_engine
-
Fields inherited from class org.apache.wiki.management.SimpleMBean
m_beanInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String[]getAttributeNames()This method must return a list of attributes which are exposed by the SimpleMBean.java.lang.StringgetId()By default, this method returns the class name of the bean.java.lang.String[]getMethodNames()This method must return a list of operations which are to be exposed by the SimpleMBean.intgetPages()Return the page count in the Wiki.java.lang.StringgetPagesDescription()java.lang.StringgetTitle()Return a human-readable title for this AdminBean.intgetType()Returns a type (UNKNOWN, EDITOR, etc).java.lang.StringgetVersion()java.lang.StringgetVersionDescription()-
Methods inherited from class org.apache.wiki.ui.admin.SimpleAdminBean
doGet, doPost, initialize
-
Methods inherited from class org.apache.wiki.management.SimpleMBean
getAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributes
-
-
-
-
Method Detail
-
getPages
public int getPages()
Return the page count in the Wiki.- Returns:
- the page content
-
getPagesDescription
public java.lang.String getPagesDescription()
-
getVersion
public java.lang.String getVersion()
-
getVersionDescription
public java.lang.String getVersionDescription()
-
getTitle
public java.lang.String getTitle()
Description copied from interface:AdminBeanReturn a human-readable title for this AdminBean.- Returns:
- the bean's title
-
getType
public int getType()
Description copied from interface:AdminBeanReturns a type (UNKNOWN, EDITOR, etc).- Returns:
- the bean's type
-
getId
public java.lang.String getId()
Description copied from class:SimpleAdminBeanBy default, this method returns the class name of the bean. This is suitable, if you have a singleton bean.- Specified by:
getIdin interfaceGenericHTTPHandler- Overrides:
getIdin classSimpleAdminBean- Returns:
- the identifier for the bean
-
getAttributeNames
public java.lang.String[] getAttributeNames()
Description copied from class:SimpleMBeanThis method must return a list of attributes which are exposed by the SimpleMBean. If there's a getXXX() method available, it'll be exposed as a getter, and if there's a setXXX() method available, it'll be exposed as a setter. For example:public void setFoo( String foo ) ... public String getFoo() ... public String[] getAttributeNames() { String[] attrs = { "foo" }; return attrs; }Also, methods starting with "is" are also recognized as getters (e.g.public boolean isFoo().)- Specified by:
getAttributeNamesin classSimpleMBean- Returns:
- An array of attribute names that can be get and optionally set.
-
getMethodNames
public java.lang.String[] getMethodNames()
Description copied from class:SimpleMBeanThis method must return a list of operations which are to be exposed by the SimpleMBean. Note that using overloaded method names is not supported - only one will be exposed as a JMX method at random.- Specified by:
getMethodNamesin classSimpleMBean- Returns:
- An array of method names that should be exposed as JMX operations.
-
-