| | |
| | | import org.forgerock.opendj.ldap.ErrorResultException; |
| | | import org.forgerock.util.Reject; |
| | | import org.opends.server.admin.AbstractManagedObjectDefinition; |
| | | import org.opends.server.admin.IllegalPropertyValueStringException; |
| | | import org.opends.server.admin.PropertyDefinition; |
| | | import org.opends.server.admin.client.ManagedObject; |
| | | import org.opends.server.admin.client.ManagementContext; |
| | |
| | | final T value; |
| | | |
| | | // Private constructor. |
| | | private Impl(PropertyDefinition<T> pd, T value) throws IllegalPropertyValueStringException { |
| | | private Impl(PropertyDefinition<T> pd, T value) { |
| | | this.pd = pd; |
| | | this.value = value; |
| | | } |
| | |
| | | } |
| | | |
| | | // Creates the new private implementation. |
| | | private <T> void buildImpl(PropertyDefinition<T> pd) throws IllegalPropertyValueStringException { |
| | | private <T> void buildImpl(PropertyDefinition<T> pd) { |
| | | T value = pd.decodeValue(propertyStringValue); |
| | | this.impl = new Impl<T>(pd, value); |
| | | } |