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

java.lang.Object
  extended by org.ow2.petals.registry.api.context.ContextFactory

public class ContextFactory
extends java.lang.Object

Author:
chamerling - eBM WebSourcing

Method Summary
 Context createContext(Configuration configuration)
           
 Context createContext(java.io.File registryConfigurationFile)
          Creates the context from a configuration file.
static ContextFactory getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ContextFactory getInstance()

createContext

public final Context createContext(java.io.File registryConfigurationFile)
                            throws RegistryException
Creates the context from a configuration file. If the file format is supported, this will load the configuration then creates the context.

Parameters:
registryConfigurationFile -
Returns:
Throws:
RegistryException

createContext

public final Context createContext(Configuration configuration)
                            throws RegistryException
Throws:
RegistryException


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