public class CoreBean extends SimpleAdminBean
m_enginem_beanInfo| Constructor and Description |
|---|
CoreBean(WikiEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getAttributeNames()
This method must return a list of attributes which are
exposed by the SimpleMBean.
|
String |
getId()
By default, this method returns the class name of the bean.
|
String[] |
getMethodNames()
This method must return a list of operations which
are to be exposed by the SimpleMBean.
|
int |
getPages()
Return the page count in the Wiki.
|
String |
getPagesDescription() |
String |
getTitle()
Return a human-readable title for this AdminBean.
|
int |
getType()
Returns a type (UNKNOWN, EDITOR, etc).
|
String |
getVersion() |
String |
getVersionDescription() |
doGet, doPost, initializegetAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributespublic CoreBean(WikiEngine engine) throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic int getPages()
public String getPagesDescription()
public String getVersion()
public String getVersionDescription()
public String getTitle()
AdminBeanpublic int getType()
AdminBeanpublic String getId()
SimpleAdminBeangetId in interface GenericHTTPHandlergetId in class SimpleAdminBeanpublic String[] getAttributeNames()
SimpleMBean
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().)getAttributeNames in class SimpleMBeanpublic String[] getMethodNames()
SimpleMBeangetMethodNames in class SimpleMBeanCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.