com.caucho.config.gen
Class SecurityGenerator<X>

java.lang.Object
  extended by com.caucho.config.gen.AbstractAspectGenerator<X>
      extended by com.caucho.config.gen.SecurityGenerator<X>
All Implemented Interfaces:
AspectGenerator<X>

@Module
public class SecurityGenerator<X>
extends AbstractAspectGenerator<X>

Represents the security interception


Constructor Summary
SecurityGenerator(SecurityFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next, java.lang.String[] roleNames, java.lang.String runAs)
           
 
Method Summary
 void generateFinally(JavaWriter out)
          Generates the method interceptor code
 void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map)
          Generates the static class prologue
 void generatePreTry(JavaWriter out)
          Generates the method interceptor code
 
Methods inherited from class com.caucho.config.gen.AbstractAspectGenerator
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateInject, generatePostCall, generatePostConstruct, generatePostFinally, generatePreCall, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityGenerator

public SecurityGenerator(SecurityFactory<X> factory,
                         AnnotatedMethod<? super X> method,
                         AspectGenerator<X> next,
                         java.lang.String[] roleNames,
                         java.lang.String runAs)
Method Detail

generateMethodPrologue

public void generateMethodPrologue(JavaWriter out,
                                   java.util.HashMap<java.lang.String,java.lang.Object> map)
                            throws java.io.IOException
Generates the static class prologue

Specified by:
generateMethodPrologue in interface AspectGenerator<X>
Overrides:
generateMethodPrologue in class AbstractAspectGenerator<X>
Throws:
java.io.IOException

generatePreTry

public void generatePreTry(JavaWriter out)
                    throws java.io.IOException
Generates the method interceptor code

Specified by:
generatePreTry in interface AspectGenerator<X>
Overrides:
generatePreTry in class AbstractAspectGenerator<X>
Throws:
java.io.IOException

generateFinally

public void generateFinally(JavaWriter out)
                     throws java.io.IOException
Generates the method interceptor code

Specified by:
generateFinally in interface AspectGenerator<X>
Overrides:
generateFinally in class AbstractAspectGenerator<X>
Throws:
java.io.IOException