shocks.framework.meta
Class MetadataRepositoryFactory

java.lang.Object
  extended byshocks.framework.meta.MetadataRepositoryFactory

public class MetadataRepositoryFactory
extends java.lang.Object


Constructor Summary
MetadataRepositoryFactory()
           
 
Method Summary
static MetadataRepository getRepository(javax.servlet.ServletContext ctx)
          This will search the MBeanServer for a registered repository.
static MetadataRepository load(org.dom4j.Document doc, javax.servlet.ServletContext ctx)
          This method loads the MetadataRepository 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

MetadataRepositoryFactory

public MetadataRepositoryFactory()
Method Detail

getRepository

public static MetadataRepository 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:
MetadataRepository

load

public static MetadataRepository load(org.dom4j.Document doc,
                                      javax.servlet.ServletContext ctx)
This method loads the MetadataRepository and returns a reference to it.

Parameters:
doc -
ctx -
Returns:
MetadataRepository