You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cl...@apache.org on 2011/12/14 09:26:46 UTC
svn commit: r1214104 -
/felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java
Author: clement
Date: Wed Dec 14 08:26:45 2011
New Revision: 1214104
URL: http://svn.apache.org/viewvc?rev=1214104&view=rev
Log:
Apply path from Thomas Calmant adding the id parameter for the @Temporal annotation
Modified:
felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java
Modified: felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java
URL: http://svn.apache.org/viewvc/felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java?rev=1214104&r1=1214103&r2=1214104&view=diff
==============================================================================
--- felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java (original)
+++ felix/trunk/ipojo/annotations/src/main/java/org/apache/felix/ipojo/handler/temporal/Temporal.java Wed Dec 14 08:26:45 2011
@@ -24,25 +24,32 @@ import java.lang.annotation.Target;
/**
* Temporal dependency annotation.
* Allows specifying a temporal dependency.
- * Be aware that despite is it provided in the annotations jar,
+ * Be aware that despite is it provided in the annotations jar,
* it refers to an external handler.
+ *
* @author <a href="mailto:dev@felix.apache.org">Felix Project Team</a>
*/
@Target(ElementType.FIELD)
public @interface Temporal {
-
+
+ /**
+ * Set the dependency id.
+ * Default : empty, will use the field name.
+ */
+ String id() default "";
+
/**
* Set the LDAP filter of the dependency.
* Default : no filter
*/
String filter() default "";
-
+
/**
* Timeout of the dependency.
* Default : true
*/
long timeout() default 3000;
-
+
/**
* Set the on timeout action.
* Supports null, nullable, empty, and default-implementation.
@@ -51,13 +58,13 @@ public @interface Temporal {
* Default: no action (i.e throws a runtime exception)
*/
String onTimeout() default "";
-
+
/**
* Set the service specification (for Collection fields).
* This attribute is mandatory for Collections.
*/
String specification() default "";
-
+
/**
* Inject a proxy instead of the real object.
* This allows passing this reference to collaborators.