org.apache.felix.ipojo.annotations
Annotation Type Requires


@Target(value=FIELD)
public @interface Requires

This annotation declares a service requirement.

Author:
Felix Project Team

Optional Element Summary
 java.lang.String defaultimplementation
          Set the default-implementation to use if the dependency is optional, and no providers are available.
 java.lang.String filter
          Set the LDAP filter of the dependency.
 java.lang.String id
          Set the dependency id.
 boolean nullable
          Enable / Disable nullable pattern.
 boolean optional
          Set if the dependency is optional.
 java.lang.String policy
          Set the binding policy.
 

filter

public abstract java.lang.String filter
Set the LDAP filter of the dependency. Default : no filter

Default:
""

optional

public abstract boolean optional
Set if the dependency is optional. Default : false

Default:
false

id

public abstract java.lang.String id
Set the dependency id. Default : empty

Default:
""

nullable

public abstract boolean nullable
Enable / Disable nullable pattern. Default : true

Default:
true

defaultimplementation

public abstract java.lang.String defaultimplementation
Set the default-implementation to use if the dependency is optional, and no providers are available. Default : no default-implementation

Default:
""

policy

public abstract java.lang.String policy
Set the binding policy. Acceptable policy are dynamic, static and dynamic-priority. Default: dynamic.

Default:
"dynamic"