org.ow2.petals.registry.api.context
Class Context

java.lang.Object
  extended by org.ow2.petals.registry.api.context.Context
All Implemented Interfaces:
Initializable

public class Context
extends java.lang.Object
implements Initializable

The context contains all the related things needed by the registry to work... It is built from the Configuration data by the ContextFactory .

Author:
Christophe HAMERLING - eBM WebSourcing

Constructor Summary
Context(Configuration configuration)
          Creates a new instance of Context from the Configuration
 
Method Summary
 Configuration getConfiguration()
           
static Context getContext(java.lang.String registryName)
           
 java.util.Map<java.lang.String,java.lang.Object> getProperties()
           
 java.util.List<RemoteConfiguration> getTopology()
           
 Workspace getWorkspace()
           
 void init()
          Initialize the object
 boolean isInitialized()
           
 boolean isLoaded()
           
 void setTopology(java.util.List<RemoteConfiguration> topology)
           
static void store(Context context)
          Store the the context in order to potentially retrieve it everywhere in the framework.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Context

public Context(Configuration configuration)
        throws RegistryException
Creates a new instance of Context from the Configuration

Parameters:
configuration -
Throws:
RegistryException
Method Detail

store

public static void store(Context context)
Store the the context in order to potentially retrieve it everywhere in the framework.

Parameters:
name -
context -

getContext

public static Context getContext(java.lang.String registryName)
Parameters:
registryName -
Returns:

getConfiguration

public Configuration getConfiguration()
Returns:
the configuration

getWorkspace

public Workspace getWorkspace()
Returns:
the workspace

isLoaded

public boolean isLoaded()

init

public void init()
          throws LifeCycleException
Description copied from interface: Initializable
Initialize the object

Specified by:
init in interface Initializable
Throws:
LifeCycleException

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface Initializable
Returns:

getProperties

public java.util.Map<java.lang.String,java.lang.Object> getProperties()
Returns:
the properties

getTopology

public java.util.List<RemoteConfiguration> getTopology()
Returns:
the topology

setTopology

public void setTopology(java.util.List<RemoteConfiguration> topology)
Parameters:
topology - the topology to set


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.