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


@Target(value=METHOD)
public @interface Bind

This annotation declares a bind method.

Author:
Felix Project Team

Optional Element Summary
 boolean aggregate
          Set if the dependency is an aggregate dependency.
 Class comparator
          Set the comparator.
 String filter
          Set the dependency filter.
 String from
          Set the from attribute.
 String id
          Set the dependency id.
 boolean optional
          Set if the dependency is optional.
 String policy
          Set the binding policy.
 String specification
          Set the required specification.
 

filter

public abstract String filter
Set the dependency filter. Default : no filter

Default:
""

aggregate

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

Default:
false

optional

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

Default:
false

specification

public abstract String specification
Set the required specification. Default : empty (try to discover)

Default:
""

id

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

Default:
""

policy

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

Default:
"dynamic"

comparator

public abstract Class comparator
Set the comparator. The indicated class must implement Comparator

Default:
java.util.Comparator.class

from

public abstract String from
Set the from attribute.

Default:
""


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.