|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.registry.RegistryFactory
public abstract class RegistryFactory
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 |
---|
public static final java.lang.String PROPFILE_PROPERTY
public static final java.lang.String FACTORY_CLASS_PROPERTY
public static final java.lang.String REG_CLASS_PROPERTY
public static final java.lang.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(java.lang.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(java.util.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(java.lang.String username, java.lang.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 |