com.ecyrd.jspwiki.ui.admin
Class AdminBeanManager

java.lang.Object
  extended by com.ecyrd.jspwiki.ui.admin.AdminBeanManager
All Implemented Interfaces:
WikiEventListener, EventListener

public class AdminBeanManager
extends Object
implements WikiEventListener

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
AdminBeanManager(WikiEngine engine)
           
 
Method Summary
 void actionPerformed(WikiEvent event)
          Unregisters AdminBeans upon SHUTDOWN event.
 AdminBean findBean(String id)
          Locates a bean based on the AdminBean.getId() out of all the registered beans.
 List getAllBeans()
          Lists all administration beans which are currently known and instantiated.
static 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

AdminBeanManager

public AdminBeanManager(WikiEngine engine)
Method Detail

initialize

public void initialize()

getAllBeans

public List getAllBeans()
Lists all administration beans which are currently known and instantiated.

Returns:
all AdminBeans known to the manager

findBean

public AdminBean findBean(String id)
Locates a bean based on the AdminBean.getId() out of all the registered beans.

Parameters:
id - ID
Returns:
An AdminBean, or null, if no such bean is found.

getTypeFromString

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

Parameters:
type - A type string.
Returns:
A type value.

actionPerformed

public void actionPerformed(WikiEvent event)
Unregisters AdminBeans upon SHUTDOWN event.

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