[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations/jsf ...
Gavin King
gavin.king at jboss.com
Sat Mar 3 13:22:41 EST 2007
User: gavin
Date: 07/03/03 13:22:41
Added: src/main/org/jboss/seam/annotations/jsf Converter.java
Validator.java
Log:
JBSEAM-980, @Converter, @Validator
Revision Changes Path
1.1 date: 2007/03/03 18:22:41; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/jsf/Converter.java
Index: Converter.java
===================================================================
package org.jboss.seam.annotations.jsf;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Allows a Seam component to act as a JSF converter. The
* annotated class must be a Seam component, and must
* implement javax.faces.convert.Converter.
*
* @author Gavin King
*
*/
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Converter
{
/**
* The JSF converter id. Default to the component name.
*/
String id() default "";
/**
* If specified, register this component as the default
* validator for a type.
*/
Class forClass() default void.class;
}
1.1 date: 2007/03/03 18:22:41; author: gavin; state: Exp;jboss-seam/src/main/org/jboss/seam/annotations/jsf/Validator.java
Index: Validator.java
===================================================================
package org.jboss.seam.annotations.jsf;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
/**
* Allows a Seam component to act as a JSF validator. The
* annotated class must be a Seam component, and must
* implement javax.faces.convert.Validator.
*
* @author Gavin King
*
*/
@Target(TYPE)
@Retention(RUNTIME)
@Documented
public @interface Validator
{
/**
* The JSF validator id. Default to the component name.
*/
String id() default "";
}
More information about the jboss-cvs-commits
mailing list