[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Fri Nov 24 18:15:17 EST 2006
User: gavin
Date: 06/11/24 18:15:17
Modified: src/main/org/jboss/seam/annotations Install.java
Log:
JBSEAM-293 component precedence
Revision Changes Path
1.3 +45 -11 jboss-seam/src/main/org/jboss/seam/annotations/Install.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Install.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/Install.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- Install.java 19 Nov 2006 18:13:06 -0000 1.2
+++ Install.java 24 Nov 2006 23:15:17 -0000 1.3
@@ -17,16 +17,50 @@
@Documented
public @interface Install {
/**
+ * Precedence of all built-in Seam components
+ */
+ public static final int BUILT_IN = 0;
+ /**
+ * Precedence to use for components of frameworks
+ * which extend Seam
+ */
+ public static final int FRAMEWORK = 10;
+ /**
+ * Predence of application components (the
+ * default precedence)
+ */
+ public static final int APPLICATION = 20;
+ /**
+ * Precedence to use for components which override
+ * application components in a particulat deployment
+ */
+ public static final int DEPLOYMENT = 30;
+
+ /**
* @return indicates if the component should be installed
*/
boolean value() default true;
/**
- * indicates that the component should not be installed unless the
+ * Indicates that the component should not be installed unless the
* dependent components are installed
+ *
+ * @return the dependent component names
*/
String[] dependencies() default {};
+ /**
+ * Indicates that the component should not be installed unless the
+ * dependent components are installed
+ *
+ * @return the dependent component types
+ */
Class[] genericDependencies() default {};
+ /**
+ * The precedence of the component. If multiple components with
+ * the same name exist, the one with the higher precedence will
+ * be installed.
+ */
+ public int precedence() default APPLICATION;
}
More information about the jboss-cvs-commits
mailing list