You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2008/07/08 18:42:33 UTC

[jira] Resolved: (FELIX-627) Temporal dependency annotation

     [ https://issues.apache.org/jira/browse/FELIX-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clement Escoffier resolved FELIX-627.
-------------------------------------

    Resolution: Fixed

Fixed in the revision 674870

Add the temporal dependency annotation. This annotation is inside the annotation project despite its an external handler. This choice was made to avoid to create multiple artifacts.

So, by using the org.apache.felix.ipojo.handler.temporal.Requires annotation on a field, the component declares a temporal dependency attached to this field. Filter, timeout and onTimeout allow specifying dependency filter, lookup timeout, and on timeout actions.

For instance :
import org.apache.felix.ipojo.handler.temporal;
@Component
public class MyClass {
  @Requires(timeout=4000, onTimeout="null")
  private Foo myFoo;
}
is equivalent to
<?xml xmlns:temporal="org.apache.felix.ipojo.handler.temporal">
<component classname="...MyClass">
  <temporal:requires field="myFoo" timeout="4000" onTimeout="null"/>
</component>


> Temporal dependency annotation
> ------------------------------
>
>                 Key: FELIX-627
>                 URL: https://issues.apache.org/jira/browse/FELIX-627
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-0.8.0
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> Temporal dependency should be able to be described with annotations

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.