|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.RegistryFactory
@Deprecated public abstract class RegistryFactory
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 |
---|
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
Constructor Detail |
---|
public RegistryFactory()
Method Detail |
---|
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 returned
RegistryException
- 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 with
RegistryException
- if a Registry couldn't be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |