felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-627) Temporal dependency annotation
Date Tue, 08 Jul 2008 16:42:33 GMT

     [ 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.


Mime
View raw message