org.apache.geronimo.j2ee.deployment.annotation
Class SecurityAnnotationHelper

java.lang.Object
  extended by org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
      extended by org.apache.geronimo.j2ee.deployment.annotation.SecurityAnnotationHelper

public final class SecurityAnnotationHelper
extends AnnotationHelper

Static helper class used to encapsulate all the functions related to the translation of @DeclareRoles and @RunAs annotations to deployment descriptor tags. The SecurityAnnotationHelper class can be used as part of the deployment of a module into the Geronimo server. It performs the following major functions:

  1. Translates annotations into corresponding deployment descriptor elements (so that the actual deployment descriptor in the module can be updated or even created if necessary)

Note(s):

Since:
04-2007

Method Summary
static void processAnnotations(org.apache.geronimo.xbeans.javaee.WebAppType webApp, org.apache.xbean.finder.ClassFinder classFinder)
          Update the deployment descriptor from the DeclareRoles and RunAs annotations
 
Methods inherited from class org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper
configureInjectionTarget, getInjectionClass, getInjectionJavaType, hasTarget, validateDD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processAnnotations

public static void processAnnotations(org.apache.geronimo.xbeans.javaee.WebAppType webApp,
                                      org.apache.xbean.finder.ClassFinder classFinder)
                               throws DeploymentException
Update the deployment descriptor from the DeclareRoles and RunAs annotations

Parameters:
webApp - Access to the spec dd
classFinder - Access to the classes of interest
Throws:
DeploymentException - if parsing or validation error


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.