org.apache.myfaces.extensions.cdi.core.api.activation
Annotation Type ExpressionActivated


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface ExpressionActivated

Allows to activate beans based on expressions with a customizable syntax


Required Element Summary
 String value
          Expression which signals if the annotated bean should be active or not
 
Optional Element Summary
 String configName
          Default config name: org.apache.myfaces.extensions.cdi.ExpressionActivated.properties or myfaces-extcdi.properties as a default config file known by one of the default implementations of ConfiguredValueResolver
 Class<? extends ExpressionInterpreter> interpreter
           
 

Element Detail

value

public abstract String value
Expression which signals if the annotated bean should be active or not

Returns:
expression-string which will be interpreted

configName

public abstract String configName
Default config name: org.apache.myfaces.extensions.cdi.ExpressionActivated.properties or myfaces-extcdi.properties as a default config file known by one of the default implementations of ConfiguredValueResolver

Returns:
config name
Default:
"ExpressionActivated"

interpreter

public abstract Class<? extends ExpressionInterpreter> interpreter
Returns:
class of the interpeter which should be used (default leads to a simple config-property interpreter
Default:
org.apache.myfaces.extensions.cdi.core.api.interpreter.ExpressionInterpreter.class


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.