
public abstract class ModuleBean<T extends WikiModuleInfo> extends SimpleAdminBean
| Modifier and Type | Field and Description |
|---|---|
protected WikiEngine |
m_engine |
m_beanInfo| Constructor and Description |
|---|
ModuleBean(WikiEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
protected org.jdom2.Element |
containerForModuleDetail(org.jdom2.Element root) |
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.
|
protected abstract org.jdom2.Element |
heading()
html blob describing the values of each
WikiModuleInfo inspected. |
protected abstract Collection<T> |
modules()
Obtains the collection of modules which is going to be inspected at
doGet(WikiContext). |
protected abstract org.jdom2.Element |
rowBody(T module)
html blob describing
Element describing attributes |
protected org.jdom2.Element |
title() |
protected String |
validModuleVersion(T info) |
doPost, getId, initializegetAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributesprotected WikiEngine m_engine
public ModuleBean(WikiEngine engine) throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic String[] getAttributeNames()
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()
getMethodNames in class SimpleMBeanpublic String doGet(WikiContext context)
doGet in interface GenericHTTPHandlerdoGet in class SimpleAdminBeanprotected org.jdom2.Element title()
protected org.jdom2.Element containerForModuleDetail(org.jdom2.Element root)
protected abstract Collection<T> modules()
doGet(WikiContext).WikiModuleInfoprotected abstract org.jdom2.Element heading()
WikiModuleInfo inspected.Element describing the values of each WikiModuleInfo inspected.protected abstract org.jdom2.Element rowBody(T module)
Element describing attributesmodule - WikiModuleInfo inspected.Element describing the Element inspected.protected String validModuleVersion(T info)
Copyright © 2001-2018 The Apache Software Foundation. All rights reserved.