public class PluginBean extends SimpleAdminBean
m_beanInfo
Constructor and Description |
---|
PluginBean(WikiEngine engine) |
Modifier and Type | Method and Description |
---|---|
String |
doGet(WikiContext context)
By default, this method creates a blob of HTML, listing
all the attributes which can be read or written to.
|
String[] |
getAttributeNames()
This method must return a list of attributes which are
exposed by the SimpleMBean.
|
String[] |
getMethodNames()
This method must return a list of operations which
are to be exposed by the SimpleMBean.
|
String |
getTitle()
Return a human-readable title for this AdminBean.
|
int |
getType()
Returns a type (UNKNOWN, EDITOR, etc).
|
doPost, getId, initialize
getAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributes
public PluginBean(WikiEngine engine) throws NotCompliantMBeanException
NotCompliantMBeanException
public 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 SimpleMBean
public String[] getMethodNames()
SimpleMBean
getMethodNames
in class SimpleMBean
public String getTitle()
AdminBean
public int getType()
AdminBean
public String doGet(WikiContext context)
SimpleAdminBean
doGet
in interface GenericHTTPHandler
doGet
in class SimpleAdminBean
Copyright © 2001-2016 The Apache Software Foundation. All rights reserved.