| java.lang.Object org.apache.geronimo.j2ee.deployment.annotation.AnnotationHelper org.apache.geronimo.j2ee.deployment.annotation.SecurityAnnotationHelper
SecurityAnnotationHelper | final public class SecurityAnnotationHelper extends AnnotationHelper (Code) | | 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:
- 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):
- Supports only servlets
- The user is responsible for invoking change to metadata-complete
- This helper class will validate any changes it makes to the deployment descriptor. An
exception will be thrown if it fails to parse
version: $Rev $Date since: 04-2007 |
Method Summary | |
public static void | processAnnotations(WebAppType webApp, ClassFinder classFinder) |
processAnnotations | public static void processAnnotations(WebAppType webApp, ClassFinder classFinder) throws DeploymentException(Code) | | Update the deployment descriptor from the DeclareRoles and RunAs annotations
Parameters: webApp - Access to the spec dd Parameters: classFinder - Access to the classes of interest throws: DeploymentException - if parsing or validation error |
|
|