Package org.forgerock.opendj.config
Class AbsoluteInheritedDefaultBehaviorProvider<T>
- java.lang.Object
-
- org.forgerock.opendj.config.DefaultBehaviorProvider<T>
-
- org.forgerock.opendj.config.AbsoluteInheritedDefaultBehaviorProvider<T>
-
- Type Parameters:
T
- The type of values represented by this provider.
public final class AbsoluteInheritedDefaultBehaviorProvider<T> extends DefaultBehaviorProvider<T>
A default behavior provider which retrieves default values from a managed object in an absolute location. It should be used by properties which inherit their default value(s) from properties held in an other managed object.
-
-
Constructor Summary
Constructors Constructor Description AbsoluteInheritedDefaultBehaviorProvider(String pathString, String propertyName)
Create an absolute inherited default behavior provider associated with the managed object at the specified absolute location.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)
Apply a visitor to this default behavior provider.AbstractManagedObjectDefinition<?,?>
getManagedObjectDefinition()
Get the definition of the parent managed object containing the inherited default values.ManagedObjectPath<?,?>
getManagedObjectPath()
Get the absolute path of the managed object containing the property which has the default values.String
getPropertyName()
Gets the name of the property containing the inherited default values.protected void
initialize()
Performs any run-time initialization required by this default behavior provider.
-
-
-
Constructor Detail
-
AbsoluteInheritedDefaultBehaviorProvider
public AbsoluteInheritedDefaultBehaviorProvider(String pathString, String propertyName)
Create an absolute inherited default behavior provider associated with the managed object at the specified absolute location.- Parameters:
pathString
- The string representation of the managed object path specifying the absolute location of the managed object.propertyName
- The name of the property containing the inherited default values.
-
-
Method Detail
-
accept
public <R,P> R accept(DefaultBehaviorProviderVisitor<T,R,P> v, P p)
Description copied from class:DefaultBehaviorProvider
Apply a visitor to this default behavior provider.- Specified by:
accept
in classDefaultBehaviorProvider<T>
- Type Parameters:
R
- The return type of the visitor's methods.P
- The type of the additional parameters to the visitor's methods.- Parameters:
v
- The default behavior visitor.p
- Optional additional visitor parameter.- Returns:
- Returns a result as specified by the visitor.
-
getManagedObjectDefinition
public AbstractManagedObjectDefinition<?,?> getManagedObjectDefinition()
Get the definition of the parent managed object containing the inherited default values.- Returns:
- Returns the definition of the parent managed object containing the inherited default values.
-
getManagedObjectPath
public ManagedObjectPath<?,?> getManagedObjectPath()
Get the absolute path of the managed object containing the property which has the default values.- Returns:
- Returns the absolute path of the managed object containing the property which has the default values.
-
getPropertyName
public String getPropertyName()
Gets the name of the property containing the inherited default values.- Returns:
- Returns the name of the property containing the inherited default values.
-
initialize
protected void initialize() throws IllegalArgumentException
Description copied from class:DefaultBehaviorProvider
Performs any run-time initialization required by this default behavior provider. This may include resolving managed object paths and property names.The default implementation is to do nothing.
- Overrides:
initialize
in classDefaultBehaviorProvider<T>
- Throws:
IllegalArgumentException
-
-