Package org.forgerock.opendj.config
Class ManagedObjectDefinitionResource
- java.lang.Object
-
- org.forgerock.opendj.config.ManagedObjectDefinitionResource
-
public final class ManagedObjectDefinitionResource extends Object
A class for retrieving non-internationalized resource properties associated with a managed object definition.Resource properties are not available for the
TopCfgDefn
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ManagedObjectDefinitionResource
createForProfile(String profile)
Creates a new resource instance for the named profile.String
getString(AbstractManagedObjectDefinition<?,?> d, String key)
Get the resource value associated with the specified key.
-
-
-
Method Detail
-
createForProfile
public static ManagedObjectDefinitionResource createForProfile(String profile)
Creates a new resource instance for the named profile.- Parameters:
profile
- The name of the profile.- Returns:
- Returns the resource instance for the named profile.
-
getString
public String getString(AbstractManagedObjectDefinition<?,?> d, String key)
Get the resource value associated with the specified key.- Parameters:
d
- The managed object definition.key
- The resource key.- Returns:
- Returns the resource value associated with the specified key.
- Throws:
MissingResourceException
- If the key was not found.UnsupportedOperationException
- If the provided managed object definition was theTopCfgDefn
.
-
-