@Deprecated public abstract class RegistryFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FACTORY_CLASS_PROPERTY
Deprecated.
|
static String |
PROPERTY_FILE_NAME
Deprecated.
|
static String |
PROPFILE_PROPERTY
Deprecated.
|
static String |
REG_CLASS_PROPERTY
Deprecated.
|
Constructor and Description |
---|
RegistryFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String PROPFILE_PROPERTY
public static final String FACTORY_CLASS_PROPERTY
public static final String REG_CLASS_PROPERTY
public static final String PROPERTY_FILE_NAME
public static RegistryFactory newInstance() throws RegistryException
RegistryException
- if there is a problempublic static RegistryFactory newInstance(String propertyFileName) throws RegistryException
propertyFileName
- the file name of a properties file, or null for the default.RegistryException
- if there is a problempublic static RegistryFactory newInstance(Properties properties) throws RegistryException
properties
- configuration properties to affect the Registry returnedRegistryException
- if there is a problempublic abstract Registry getRegistry() throws RegistryException
RegistryException
- if a Registry couldn't be createdpublic abstract Registry getRegistry(String username, String password) throws RegistryException
username
- username to connect withpassword
- password to connect withRegistryException
- if a Registry couldn't be createdCopyright © 2015 WSO2 Inc. All Rights Reserved.