org.javalid.annotations.helper
Annotation Type JsfLookup


@Target(value={})
@Retention(value=RUNTIME)
@Documented
public @interface JsfLookup

Use this supportive annotation inside @Lookup to specify you wish to use the JsfLookup to find a class to do validation with (or anything else, depending on the situation where it is used exactly).

Since:
1.0
Version:
1.0
Author:
M.Reuvers
See Also:
Lookup

Required Element Summary
 JvMethod method
          The method to perform on the bean found (by name).
 
Optional Element Summary
 java.lang.String name
          Specify bean name to lookup in the JSF context.
 

Element Detail

method

public abstract JvMethod method
The method to perform on the bean found (by name). For a validation method:
Specify the actual method to perform validation with. The method must adhere to the following, public List<ValidationMessage> methodName([parameters]).

In other cases such as uses with @LovConstraint you should adhere to rules described there.

The parameters how and what is really up to you, however it makes most sense to pass along the current instance to be validated and the current validation path. In @JvParam (specification of a parameter) you can use MODE_CURRENT_OBJECT for the current instance, MODE_CURRENT_PATH for the current validation path.

Defaults to nothing.

See Also:
JvParam

name

public abstract java.lang.String name
Specify bean name to lookup in the JSF context.

Defaults to an empty string.

Default:
""