org.opends.server.admin
Interface PropertyProvider

All Known Subinterfaces:
ManagedObject<T>
All Known Implementing Classes:
AbstractManagedObject, DefaultManagedObject, ServerManagedObject

public interface PropertyProvider

An interface which can be used to initialize the contents of a managed object.


Field Summary
static PropertyProvider DEFAULT_PROVIDER
          A property provider which always returns empty property values, indicating default behavior.
 
Method Summary
<T> java.util.Collection<T>
getPropertyValues(PropertyDefinition<T> d)
          Get the property values associated with the specified property definition.
 

Field Detail

DEFAULT_PROVIDER

static final PropertyProvider DEFAULT_PROVIDER
A property provider which always returns empty property values, indicating default behavior.

Method Detail

getPropertyValues

<T> java.util.Collection<T> getPropertyValues(PropertyDefinition<T> d)
                                          throws java.lang.IllegalArgumentException
Get the property values associated with the specified property definition.

Implementations are not required to validate the values that they provide. Specifically:

The returned set of values is allowed to contain duplicates.

Type Parameters:
T - The underlying type of the property.
Parameters:
d - The Property definition.
Returns:
Returns a newly allocated set containing a copy of the property's values. An empty set indicates that the property has no values defined and any default behavior is applicable.
Throws:
java.lang.IllegalArgumentException - If this property provider does not recognise the requested property definition.