@Module public class LockGenerator<X> extends AbstractAspectGenerator<X>
Constructor and Description |
---|
LockGenerator(LockFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next,
LockType lockType,
long lockTimeout,
java.util.concurrent.TimeUnit lockTimeoutUnit) |
Modifier and Type | Method and Description |
---|---|
void |
generateMethodPrologue(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates the class prologue.
|
void |
generatePostFinally(JavaWriter out)
Generates the method interception code.
|
void |
generatePreTry(JavaWriter out)
Generates the method interception code.
|
generate, generateApplicationException, generateAsync, generateBeanConstructor, generateBeanPrologue, generateCall, generateContent, generateDestroy, generateEpilogue, generateFinally, generateInject, generatePostCall, generatePostConstruct, generatePreCall, generatePreDestroy, generateProxyConstructor, generateSystemException, getAnnotation, getAnnotation, getAnnotation, getBeanFactory, getBeanType, getFactory, getInstanceName, getJavaClass, getJavaMethod, getMethod, getThrowsExceptions, getTypeVariables, isApplicationExceptionThrown, toString
public LockGenerator(LockFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next, LockType lockType, long lockTimeout, java.util.concurrent.TimeUnit lockTimeoutUnit)
public void generateMethodPrologue(JavaWriter out, java.util.HashMap<java.lang.String,java.lang.Object> map) throws java.io.IOException
generateMethodPrologue
in interface AspectGenerator<X>
generateMethodPrologue
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePreTry(JavaWriter out) throws java.io.IOException
generatePreTry
in interface AspectGenerator<X>
generatePreTry
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePostFinally(JavaWriter out) throws java.io.IOException
generatePostFinally
in interface AspectGenerator<X>
generatePostFinally
in class AbstractAspectGenerator<X>
java.io.IOException