org.apache.myfaces.extensions.cdi.core.api.security
Annotation Type Secured


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Documented
@InterceptorBinding
public @interface Secured

Interceptor for securing beans. It's also possible to use it as meta-annotation for type-safe view-configs.


Required Element Summary
 Class<? extends AccessDecisionVoter>[] value
          AccessDecisionVoters which will be invoked before accessing the intercepted instance or in case of view-configs before a view gets used.
 
Optional Element Summary
 Class<? extends ViewConfig> errorView
          Optional inline error-view if it is required to show an error-page which is different from the default error page.
 

Element Detail

value

public abstract Class<? extends AccessDecisionVoter>[] value
AccessDecisionVoters which will be invoked before accessing the intercepted instance or in case of view-configs before a view gets used.

Returns:
the configured access-decision-voters which should be used for the voting process

errorView

public abstract Class<? extends ViewConfig> errorView
Optional inline error-view if it is required to show an error-page which is different from the default error page.

Returns:
type-safe view-config of the page which should be used as error-view
Default:
org.apache.myfaces.extensions.cdi.core.api.config.view.DefaultErrorView.class


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