org.wso2.carbon.registry.core
Class RegistryFactory

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

Deprecated.

@Deprecated
public abstract class RegistryFactory
extends Object

The factory to create registry. As we create registries with OSGI services, this class got obsolete.


Field Summary
static String FACTORY_CLASS_PROPERTY
          Deprecated.  
static String PROPERTY_FILE_NAME
          Deprecated.  
static String PROPFILE_PROPERTY
          Deprecated.  
static String REG_CLASS_PROPERTY
          Deprecated.  
 
Constructor Summary
RegistryFactory()
          Deprecated.  
 
Method Summary
abstract  Registry getRegistry()
          Deprecated. Get a Registry with no security credentials.
abstract  Registry getRegistry(String username, String password)
          Deprecated. Get a Registry with the provided credentials.
static RegistryFactory newInstance()
          Deprecated. Get a Registry instance, using the defaults.
static RegistryFactory newInstance(Properties properties)
          Deprecated. Get a Registry, passing specific configuration information via a Properties object.
static RegistryFactory newInstance(String propertyFileName)
          Deprecated. 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 String PROPFILE_PROPERTY
Deprecated. 
See Also:
Constant Field Values

FACTORY_CLASS_PROPERTY

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

REG_CLASS_PROPERTY

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

PROPERTY_FILE_NAME

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

RegistryFactory

public RegistryFactory()
Deprecated. 
Method Detail

newInstance

public static RegistryFactory newInstance()
                                   throws RegistryException
Deprecated. 
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(String propertyFileName)
                                   throws RegistryException
Deprecated. 
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(Properties properties)
                                   throws RegistryException
Deprecated. 
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
Deprecated. 
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(String username,
                                     String password)
                              throws RegistryException
Deprecated. 
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 © 2011 WSO2 Inc. All Rights Reserved.