shocks.framework.action
Class ActionRepositoryFactory

java.lang.Object
  extended byshocks.framework.action.ActionRepositoryFactory

public class ActionRepositoryFactory
extends java.lang.Object


Constructor Summary
ActionRepositoryFactory()
           
 
Method Summary
static ActionRepository getRepository(javax.servlet.ServletContext ctx)
          This will search the MBeanServer for a registered repository.
static ActionRepository load(javax.servlet.ServletContext ctx)
          This method loads the ActionRepository and returns a reference to it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionRepositoryFactory

public ActionRepositoryFactory()
Method Detail

getRepository

public static ActionRepository getRepository(javax.servlet.ServletContext ctx)
This will search the MBeanServer for a registered repository. If it does not find one, it will create a new one and register it. If during the course of registration it finds one has since been created, it will return the one registered to the system. Note that this method does not attempt to load or staff the repository in any way--it simply creates and registers a new one or returns a reference to an existing one.

Returns:
ActionRepository

load

public static ActionRepository load(javax.servlet.ServletContext ctx)
This method loads the ActionRepository and returns a reference to it.

Parameters:
ctx -
Returns:
ActionRepository