Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


oracle.oud.plugin
Annotation Type ConfigurationProperty


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ConfigurationProperty

This annotation provides the ability to specify the type contained in java.util.Collection for multivalued configuration properties.

Mapping between raw properties and Java configuration interface

To map an attribute named X (case is ignored) in the raw properties, define a method named getX() in the Java configuration interface. Name the method isX() if the attribute is of type boolean.

Defining types of raw properties in the Java configuration interface

The type of the attribute is specified by the returned type of the method defined in the Java configuration interface. To parse the raw value of the attribute, the method valueOf(String) of the specified type is used. If the attribute named X is of type String, then it is defined by String getX() and the value available in the raw properties in the form x=<value> will be parsed by calling String.valueOf(<value>).

Supported types are:

Multi-valued attributes

An attribute that is multi-valued is defined with the type java.util.Collection. But as the java generic feature is not available at runtime, the type of the attribute must be defined using this annotation. If no annotation is provided, the default type is java.lang.String.

Collection getY() returns a collection of String

Collection<String> getY() returns a collection of String

Collection<oracle.oud.type.DN> getY() returns a collection of String

Collection<oracle.oud.type.DN> getY() with the annotation @ConfigurationProperty(type="oracle.oud.type.DN") returns a collection of oracle.oud.type.DN.

See also AbstractPlugin.getConfiguration(Class).


Required Element Summary
 java.lang.String type
          Returns the type of the property contained in the java.util.Collection.

 

Element Detail

type

public abstract java.lang.String type
Returns the type of the property contained in the java.util.Collection.
Returns:
the type of the property contained in the java.util.Collection.

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Unified Directory
11g Release 2 (11.1.2.2.0)

E38583-02


Copyright © 2013, Oracle and/or its affiliates. All rights reserved.