org.wso2.registry
Class RegistryFactory

java.lang.Object
  extended by org.wso2.registry.RegistryFactory
Direct Known Subclasses:
RemoteRegistryFactory

public abstract class RegistryFactory
extends java.lang.Object


Field Summary
static java.lang.String FACTORY_CLASS_PROPERTY
           
static java.lang.String PROPERTY_FILE_NAME
           
static java.lang.String PROPFILE_PROPERTY
           
static java.lang.String REG_CLASS_PROPERTY
           
 
Constructor Summary
RegistryFactory()
           
 
Method Summary
abstract  Registry getRegistry()
          Get a Registry with no security credentials.
abstract  Registry getRegistry(java.lang.String username, java.lang.String password)
          Get a Registry with the provided credentials.
static RegistryFactory newInstance()
          Get a Registry instance, using the defaults.
static RegistryFactory newInstance(java.util.Properties properties)
          Get a Registry, passing specific configuration information via a Properties object.
static RegistryFactory newInstance(java.lang.String propertyFileName)
          Get a Registry instance, using the specified property file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPFILE_PROPERTY

public static final java.lang.String PROPFILE_PROPERTY
See Also:
Constant Field Values

FACTORY_CLASS_PROPERTY

public static final java.lang.String FACTORY_CLASS_PROPERTY
See Also:
Constant Field Values

REG_CLASS_PROPERTY

public static final java.lang.String REG_CLASS_PROPERTY
See Also:
Constant Field Values

PROPERTY_FILE_NAME

public static final java.lang.String PROPERTY_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

RegistryFactory

public RegistryFactory()
Method Detail

newInstance

public static RegistryFactory newInstance()
                                   throws RegistryException
Get a Registry instance, using the defaults.

Returns:
a fully initialized Registry instance.
Throws:
RegistryException - if there is a problem

newInstance

public static RegistryFactory newInstance(java.lang.String propertyFileName)
                                   throws RegistryException
Get a Registry instance, using the specified property file.

Parameters:
propertyFileName - the file name of a properties file, or null for the default.
Returns:
a fully initialized Registry instance.
Throws:
RegistryException - if there is a problem

newInstance

public static RegistryFactory newInstance(java.util.Properties properties)
                                   throws RegistryException
Get a Registry, passing specific configuration information via a Properties object.

Parameters:
properties - configuration properties to affect the Registry returned
Returns:
an initialized Registry instance
Throws:
RegistryException - if there is a problem

getRegistry

public abstract Registry getRegistry()
                              throws RegistryException
Get a Registry with no security credentials.

Returns:
a correctly configured Registry instance
Throws:
RegistryException - if a Registry couldn't be created

getRegistry

public abstract Registry getRegistry(java.lang.String username,
                                     java.lang.String password)
                              throws RegistryException
Get a Registry with the provided credentials.

Parameters:
username - username to connect with
password - password to connect with
Returns:
a correctly configured Registry instance
Throws:
RegistryException - if a Registry couldn't be created


Copyright © 2007 Apache Web Services Project. All Rights Reserved.