org.apache.wiki.ui.admin
Class DefaultAdminBeanManager

java.lang.Object
  extended by org.apache.wiki.ui.admin.DefaultAdminBeanManager
All Implemented Interfaces:
EventListener, AdminBeanManager, WikiEventListener

public class DefaultAdminBeanManager
extends Object
implements WikiEventListener, AdminBeanManager

Provides a manager class for all AdminBeans within JSPWiki. This class also manages registration for any AdminBean which is also a JMX bean.

Since:
2.5.52

Constructor Summary
DefaultAdminBeanManager(WikiEngine engine)
           
 
Method Summary
 void actionPerformed(WikiEvent event)
          Fired when a WikiEvent is triggered by an event source.
 AdminBean findBean(String id)
          Locates a bean based on the AdminBean.getId() out of all the registered beans.
 List<AdminBean> getAllBeans()
          Lists all administration beans which are currently known and instantiated.
 int getTypeFromString(String type)
          Returns the type identifier for a string type.
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAdminBeanManager

public DefaultAdminBeanManager(WikiEngine engine)
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface AdminBeanManager

getAllBeans

public List<AdminBean> getAllBeans()
Description copied from interface: AdminBeanManager
Lists all administration beans which are currently known and instantiated.

Specified by:
getAllBeans in interface AdminBeanManager
Returns:
all AdminBeans known to the manager

findBean

public AdminBean findBean(String id)
Description copied from interface: AdminBeanManager
Locates a bean based on the AdminBean.getId() out of all the registered beans.

Specified by:
findBean in interface AdminBeanManager
Parameters:
id - ID
Returns:
An AdminBean, or null, if no such bean is found.

getTypeFromString

public int getTypeFromString(String type)
Returns the type identifier for a string type.

Specified by:
getTypeFromString in interface AdminBeanManager
Parameters:
type - A type string.
Returns:
A type value.

actionPerformed

public void actionPerformed(WikiEvent event)
Description copied from interface: WikiEventListener
Fired when a WikiEvent is triggered by an event source.

Specified by:
actionPerformed in interface AdminBeanManager
Specified by:
actionPerformed in interface WikiEventListener
Parameters:
event - a WikiEvent object


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.