org.apache.tuscany.sca.implementation.java.introspect.impl
Class JSR250PolicyProcessor

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
      extended by org.apache.tuscany.sca.implementation.java.introspect.impl.JSR250PolicyProcessor
All Implemented Interfaces:
JavaClassVisitor

public class JSR250PolicyProcessor
extends BaseJavaClassVisitor

Processes an javax.annotation.security.* annotation Below is a list of annotations Type Method RunAs x RolesAllowed x x PermitAll x x DenyAll x


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
assemblyFactory
 
Constructor Summary
JSR250PolicyProcessor(AssemblyFactory assemblyFactory, PolicyFactory policyFactory)
           
 
Method Summary
<T> void
visitClass(java.lang.Class<T> clazz, JavaImplementation type)
          A callback received when the component implementation class is first loaded
 void visitMethod(java.lang.reflect.Method method, JavaImplementation type)
          A callback received as the component implementation's public and protected methods are evaluated
 
Methods inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
visitConstructor, visitConstructorParameter, visitEnd, visitField, visitSuperClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSR250PolicyProcessor

public JSR250PolicyProcessor(AssemblyFactory assemblyFactory,
                             PolicyFactory policyFactory)
Method Detail

visitClass

public <T> void visitClass(java.lang.Class<T> clazz,
                           JavaImplementation type)
                throws IntrospectionException
Description copied from interface: JavaClassVisitor
A callback received when the component implementation class is first loaded

Specified by:
visitClass in interface JavaClassVisitor
Overrides:
visitClass in class BaseJavaClassVisitor
Parameters:
clazz - the component implementation class
type - the incomplete component type associated with the implementation class
Throws:
IntrospectionException - if an error is encountered while processing metadata

visitMethod

public void visitMethod(java.lang.reflect.Method method,
                        JavaImplementation type)
                 throws IntrospectionException
Description copied from interface: JavaClassVisitor
A callback received as the component implementation's public and protected methods are evaluated

Specified by:
visitMethod in interface JavaClassVisitor
Overrides:
visitMethod in class BaseJavaClassVisitor
Parameters:
method - the current public or protected method being evaluated
type - the incomplete component type associated with the implementation class
Throws:
IntrospectionException - if an error is encountered while processing metadata