Dashboard Builder Commons 6.0.0.Beta3

org.jboss.dashboard.factory
Class ComponentsContextManager

java.lang.Object
  extended by org.jboss.dashboard.factory.ComponentsContextManager

public class ComponentsContextManager
extends Object

Initializes thread context so that Component lookups can be performed.


Constructor Summary
ComponentsContextManager()
           
 
Method Summary
static void addComponentStorage(String scope, ComponentsStorage storage)
          Adds a component storage resolver
static void clearContext()
          Clears current Thread
protected static LookupHelper createLookupHelper()
           
static LookupHelper getLookupHelper()
           
static boolean isContextStarted()
           
static void startContext()
          Prepares current thread for a set of Factory operations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentsContextManager

public ComponentsContextManager()
Method Detail

addComponentStorage

public static void addComponentStorage(String scope,
                                       ComponentsStorage storage)
Adds a component storage resolver

Parameters:
scope - Scope to be resolved
storage - Storage that will resolve the components

startContext

public static void startContext()
Prepares current thread for a set of Factory operations.


isContextStarted

public static boolean isContextStarted()
Returns:
true if context is started.

createLookupHelper

protected static LookupHelper createLookupHelper()

getLookupHelper

public static LookupHelper getLookupHelper()

clearContext

public static void clearContext()
Clears current Thread


Dashboard Builder Commons 6.0.0.Beta3

Copyright © 2012-2013 JBoss by Red Hat. All Rights Reserved.