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


@Target(value={METHOD,ANNOTATION_TYPE})
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.
 java.lang.Class comparator
          Set the comparator.
 java.lang.String filter
          Set the dependency filter.
 java.lang.String from
          Set the from attribute.
 java.lang.String id
          Set the dependency id.
 boolean optional
          Set if the dependency is optional.
 java.lang.String policy
          Set the binding policy.
 boolean proxy
          Set to true if the service dependency is injected as a proxy.
 java.lang.String specification
          Set the required specification.
 

filter

public abstract java.lang.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 java.lang.String specification
Set the required specification. Default : empty (try to discover)

Default:
""

id

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

Default:
""

policy

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

Default:
"dynamic"

comparator

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

Default:
java.util.Comparator.class

from

public abstract java.lang.String from
Set the from attribute.

Default:
""

proxy

public abstract boolean proxy
Set to true if the service dependency is injected as a proxy. Default: true

Default:
true


Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.