[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Sun Oct 1 12:56:54 EDT 2006
User: gavin
Date: 06/10/01 12:56:54
Modified: src/main/org/jboss/seam/annotations Transition.java
Added: src/main/org/jboss/seam/annotations RaiseEvent.java
Log:
@RaiseEvent
Revision Changes Path
1.4 +8 -3 jboss-seam/src/main/org/jboss/seam/annotations/Transition.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Transition.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/Transition.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- Transition.java 25 May 2006 21:28:56 -0000 1.3
+++ Transition.java 1 Oct 2006 16:56:54 -0000 1.4
@@ -14,8 +14,8 @@
import java.lang.annotation.Target;
/**
- * Marks a method as causing a jBPM transition, unless the
- * method returns the null outcome.
+ * Marks a method as causing a jBPM transition after
+ * the method returns a non-null result without exception.
*/
@Target(METHOD)
@Retention(RUNTIME)
@@ -23,8 +23,13 @@
public @interface Transition {
/**
+ * The transition name, defaults to the name
+ * of the method.
+ *
* @return the transition name
*/
- String value();
+ String value() default "";
+
+ //TODO: String[] ifOutcome() default {};
}
1.1 date: 2006/10/01 16:56:54; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/RaiseEvent.java
Index: RaiseEvent.java
===================================================================
/*
* JBoss, Home of Professional Open Source
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.seam.annotations;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Causes an event to be raised after the method returns
* a non-null result without exception.
*/
@Target(METHOD)
@Retention(RUNTIME)
@Documented
public @interface RaiseEvent {
/**
* The event name, defaults to the name
* of the method.
*
* @return the event name
*/
String value() default "";
//TODO: String[] ifOutcome() default {};
}
More information about the jboss-cvs-commits
mailing list