org.infinispan.factories
Class GlobalComponentRegistry

java.lang.Object
  extended by org.infinispan.factories.AbstractComponentRegistry
      extended by org.infinispan.factories.GlobalComponentRegistry
All Implemented Interfaces:
Cloneable, Lifecycle

public class GlobalComponentRegistry
extends AbstractComponentRegistry

A global component registry where shared components are stored.

Since:
4.0
Author:
Manik Surtani

Nested Class Summary
 
Nested classes/interfaces inherited from class org.infinispan.factories.AbstractComponentRegistry
AbstractComponentRegistry.Component
 
Field Summary
 
Fields inherited from class org.infinispan.factories.AbstractComponentRegistry
DEBUG_DEPENDENCIES, NULL_COMPONENT
 
Constructor Summary
GlobalComponentRegistry(GlobalConfiguration configuration, CacheManager cacheManager)
          Creates an instance of the component registry.
 
Method Summary
protected  void addShutdownHook()
           
protected  Log getLog()
           
 ComponentRegistry getNamedComponentRegistry(String name)
           
 void registerNamedComponentRegistry(ComponentRegistry componentRegistry, String name)
           
protected  void removeShutdownHook()
           
 void rewireNamedRegistries()
           
 void unregisterNamedComponentRegistry(String name)
           
 
Methods inherited from class org.infinispan.factories.AbstractComponentRegistry
addComponentDependencies, clone, getComponent, getComponent, getConfiguration, getDefaultFactoryMap, getFactory, getFromConfiguration, getOrCreateComponent, getOrCreateComponent, getRegisteredComponents, getStatus, invocationsAllowed, invokeInjectionMethod, lookupComponent, registerComponent, registerComponent, registerDefaultClassLoader, resetNonVolatile, rewire, start, stop, wireDependencies
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalComponentRegistry

public GlobalComponentRegistry(GlobalConfiguration configuration,
                               CacheManager cacheManager)
Creates an instance of the component registry. The configuration passed in is automatically registered.

Parameters:
configuration - configuration with which this is created
Method Detail

getLog

protected Log getLog()
Specified by:
getLog in class AbstractComponentRegistry

removeShutdownHook

protected void removeShutdownHook()
Overrides:
removeShutdownHook in class AbstractComponentRegistry

addShutdownHook

protected void addShutdownHook()
Overrides:
addShutdownHook in class AbstractComponentRegistry

getNamedComponentRegistry

public final ComponentRegistry getNamedComponentRegistry(String name)

registerNamedComponentRegistry

public final void registerNamedComponentRegistry(ComponentRegistry componentRegistry,
                                                 String name)

unregisterNamedComponentRegistry

public final void unregisterNamedComponentRegistry(String name)

rewireNamedRegistries

public final void rewireNamedRegistries()

Google Analytics

Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.