com.ibm.websphere.management.metadata
Class ManagedObjectMetadataAccessorFactory
- java.lang.Object
-
- com.ibm.websphere.management.metadata.ManagedObjectMetadataAccessorFactory
-
public class ManagedObjectMetadataAccessorFactory extends java.lang.Object
Invoke the method,createAccessor(Properties)
, on this class to obtain aManagedObjectMetadataAccessor
instance.The factory caches ManagedObjectMetadataAccessor instances. Each instance returned for a given repository root and cell name is a singleton instance.
-
-
Constructor Summary
Constructors Constructor and Description ManagedObjectMetadataAccessorFactory()
-
Method Summary
Methods Modifier and Type Method and Description static ManagedObjectMetadataAccessor
createAccessor(java.util.Properties props)
Invoke this method to obtain aManagedObjectMetadataAccessor
instance.
-
-
-
Constructor Detail
-
ManagedObjectMetadataAccessorFactory
public ManagedObjectMetadataAccessorFactory()
-
-
Method Detail
-
createAccessor
public static ManagedObjectMetadataAccessor createAccessor(java.util.Properties props) throws AdminException
Invoke this method to obtain aManagedObjectMetadataAccessor
instance.- Parameters:
props
- A set of properties required to create a ManagedObjectMetadataAccessor instance. The expected properties are listed below:- ManagedObjectMetadataAccessor.WAS_REPOSITORY_ROOT (optional). The value of this property is root directory of the repository from which metadata is to be obtained. If this value is not specified, the value for the property in the set of System properties is used if it exists. If the factory is running in a WebSphere server process, the repository root does not need to be specified.
- ManagedObjectMetadataAccessor.CELL_NAME (optional). The value of this property is the name of the cell for which metadata is to be obtained. If this value is not specified, the value for the property, local.cell, in the set of System properties is used if it exists. If the factory is running in a WebSphere server process, the cell name does not need to be specified. As a final fallback for no local.cell property setting, the cell name in the configuration is used if it is the only cell name listed under the cells directory under the repository root.
If no properties are specified, props can be null.
- Throws:
AdminException
- Could not create a ManagedObjectMetadataAccessor instance.- See Also:
ManagedObjectMetadataAccessor.WAS_REPOSITORY_ROOT
,ManagedObjectMetadataAccessor.CELL_NAME
-
-