|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.as400.registry.Registry
The abstract base class for all registry implementations.
A concrete Registry
subclass is provided for each
supported backing store: the Windows registry, binary
files in the local file system (known as the application
registry because it is scoped to a designated application),
and an LDAP directory. The static method getInstance
returns a single immutable instance of the desired type.
All Registry
implementations support the same set
of hierarchical namespaces:
Registry
defines the abstract method getRoot
which returns the root node of the desired namespace.
WindowsRegistry
,
ApplicationRegistry
,
LDAPRegistry
Field Summary | |
static int |
APPLICATION_REGISTRY
Indicates that registry objects should be loaded from/saved to a local backing store associated with the application. |
static java.lang.String |
APPLICATION_ROOT
Identifies the root of the application namespace. |
static int |
AS400_REGISTRY
|
static int |
LDAP_REGISTRY
Indicates that registry objects should be loaded from/saved to a network directory accessible from an LDAP server. |
static java.lang.String |
PLATFORM_ROOT
Identifies the root of the platform namespace. |
protected static int |
REGISTRY_VERSION
|
static java.lang.String |
SERVERS_ROOT
Identifies the root of the servers namespace. |
static java.lang.String |
SESSION_ROOT
Identifies the root of the session namespace. |
static java.lang.String |
USER_ROOT
Identifies the root of the user namespace. |
static int |
WINDOWS_REGISTRY
Indicates that registry objects are to be loaded from/saved to the Windows registry. |
Method Summary | |
static Registry |
getInstance()
Returns the shared ApplicationRegistry instance. |
static Registry |
getInstance(int type)
Returns a shared Registry instance of the desired type. |
abstract RegistryNode |
getRoot(java.lang.String namespace)
Returns the root of a registry namespace. |
static int |
getVersion()
Returns the package version. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final int REGISTRY_VERSION
public static final int WINDOWS_REGISTRY
public static final int APPLICATION_REGISTRY
ApplicationRegistry.setApplicationName
to identify the
application. An application name may also be specified on the
system property registry.application.name
.
The default if no application name is specified is "MyApplication".public static final int LDAP_REGISTRY
LDAPRegistry.setServerName
to identify
the server. A server name may also be specified on the
system property registry.server.name
.
If no server name is supplied an exception will be thrown
the first time an attempt is made to access the registry.public static final int AS400_REGISTRY
public static final java.lang.String PLATFORM_ROOT
public static final java.lang.String APPLICATION_ROOT
public static final java.lang.String USER_ROOT
getRoot
will return the appropriate
RegistryNode
for the current platform user.public static final java.lang.String SERVERS_ROOT
public static final java.lang.String SESSION_ROOT
Method Detail |
public static Registry getInstance(int type)
Registry
instance of the desired type.type
- A constant that identifies the type of backing store to be used.Registry
instance.public static Registry getInstance()
ApplicationRegistry
instance.
Convenience method for obtaining a reference to the default
registry type.ApplicationRegistry
instance.public abstract RegistryNode getRoot(java.lang.String namespace) throws RegistryException
namespace
- A constant that identifies the desired namespace root.RegistryNode
public static int getVersion()
getVersion
would return 0x00050100
.com.ibm.as400.registry
package.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |