public abstract class ModuleBean extends SimpleAdminBean
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<WikiModuleInfo> |
modules()
Obtains the collection of modules which is going to be inspected at
doGet(WikiContext) . |
protected abstract org.jdom2.Element |
rowBody(WikiModuleInfo module)
html blob describing
Element describing attributes |
protected org.jdom2.Element |
title() |
protected String |
validModuleVersion(WikiModuleInfo info) |
doPost, getId, initialize
getAttribute, getAttributes, getDescription, getMBeanInfo, invoke, setAttribute, setAttributes
public ModuleBean(WikiEngine engine) throws NotCompliantMBeanException
NotCompliantMBeanException
public 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 SimpleMBean
public String[] getMethodNames()
getMethodNames
in class SimpleMBean
public String doGet(WikiContext context)
doGet
in interface GenericHTTPHandler
doGet
in class SimpleAdminBean
protected org.jdom2.Element title()
protected org.jdom2.Element containerForModuleDetail(org.jdom2.Element root)
protected abstract Collection<WikiModuleInfo> modules()
doGet(WikiContext)
.WikiModuleInfo
protected abstract org.jdom2.Element heading()
WikiModuleInfo
inspected.Element
describing the values of each WikiModuleInfo
inspected.protected abstract org.jdom2.Element rowBody(WikiModuleInfo module)
Element
describing attributesmodule
- WikiModuleInfo
inspected.Element
describing the Element
inspected.protected String validModuleVersion(WikiModuleInfo info)
Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.