org.ow2.petals.registry.core.factory
Class RegistryFactory

java.lang.Object
  extended by org.ow2.petals.registry.core.factory.RegistryFactory

public class RegistryFactory
extends java.lang.Object

Author:
Christophe HAMERLING - eBM WebSourcing

Method Summary
static RegistryFactory getInstance()
           
 org.ow2.petals.registry.api.LocalRegistry load(java.io.File configFile)
          Load a new local registry instance from the given configuration file
 org.ow2.petals.registry.api.LocalRegistry loadLocal(org.ow2.petals.registry.api.config.Configuration configuration)
          Load the registry from a configuration bean.
 org.ow2.petals.registry.api.LocalRegistry loadLocal(org.ow2.petals.registry.api.context.Context context)
           
 org.ow2.petals.registry.api.RemoteRegistry loadRemote(org.ow2.petals.registry.api.config.RemoteConfiguration configuration)
          Create a remote registry instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RegistryFactory getInstance()

load

public org.ow2.petals.registry.api.LocalRegistry load(java.io.File configFile)
                                               throws org.ow2.petals.registry.api.exception.RegistryException
Load a new local registry instance from the given configuration file

Returns:
Throws:
org.ow2.petals.registry.api.exception.RegistryException

loadLocal

public org.ow2.petals.registry.api.LocalRegistry loadLocal(org.ow2.petals.registry.api.config.Configuration configuration)
                                                    throws org.ow2.petals.registry.api.exception.RegistryException
Load the registry from a configuration bean.

Parameters:
configuration -
Returns:
Throws:
org.ow2.petals.registry.api.exception.RegistryException

loadLocal

public org.ow2.petals.registry.api.LocalRegistry loadLocal(org.ow2.petals.registry.api.context.Context context)
                                                    throws org.ow2.petals.registry.api.exception.RegistryException
Parameters:
registryName - the name of the resgitry. This name MUST be unique in the registry network. If not, the registry will be rejected
config -
Returns:
Throws:
org.ow2.petals.registry.api.exception.RegistryException

loadRemote

public org.ow2.petals.registry.api.RemoteRegistry loadRemote(org.ow2.petals.registry.api.config.RemoteConfiguration configuration)
                                                      throws org.ow2.petals.registry.api.exception.RegistryException
Create a remote registry instance. This just create all the stuff needed to communicate from the local registry to the remote one

Returns:
Throws:
org.ow2.petals.registry.api.exception.RegistryException


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