|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.gen.AbstractAspectGenerator<X>
com.caucho.config.gen.MethodHeadGenerator<X>
com.caucho.ejb.gen.StatelessMethodHeadGenerator<X>
@Module public class StatelessMethodHeadGenerator<X>
Represents a stateless local business method
Constructor Summary | |
---|---|
StatelessMethodHeadGenerator(StatelessMethodHeadFactory<X> factory,
AnnotatedMethod<? super X> method,
AspectGenerator<X> next)
|
Method Summary | |
---|---|
void |
generateApplicationException(JavaWriter out,
java.lang.Class<?> exn)
Generates code for an application (checked) exception. |
void |
generateFinally(JavaWriter out)
Generates the code in the finally block
|
void |
generateMethodPrologue(JavaWriter out,
java.util.HashMap<java.lang.String,java.lang.Object> map)
Generates the static class prologue |
void |
generatePostCall(JavaWriter out)
Generates aspect code after the invocation. |
void |
generatePreCall(JavaWriter out)
Generates code in the "try" block before the call
|
void |
generatePreTry(JavaWriter out)
Generates code before the "try" block
|
protected boolean |
isOverride()
|
Methods inherited from class com.caucho.config.gen.MethodHeadGenerator |
---|
equals, generate, getMethodName, getMethodNamePrefix, hashCode |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatelessMethodHeadGenerator(StatelessMethodHeadFactory<X> factory, AnnotatedMethod<? super X> method, AspectGenerator<X> next)
Method Detail |
---|
protected boolean isOverride()
isOverride
in class MethodHeadGenerator<X>
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
retType myMethod(...)
{
[pre-try]
try {
...
}
generatePreTry
in interface AspectGenerator<X>
generatePreTry
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePreCall(JavaWriter out) throws java.io.IOException
retType myMethod(...)
{
...
try {
[pre-call]
ret = super.myMethod(...)
...
}
generatePreCall
in interface AspectGenerator<X>
generatePreCall
in class AbstractAspectGenerator<X>
java.io.IOException
public void generatePostCall(JavaWriter out) throws java.io.IOException
retType myMethod(...)
{
...
try {
...
ret = super.myMethod(...)
[post-call]
return ret;
} finally {
...
}
}
generatePostCall
in interface AspectGenerator<X>
generatePostCall
in class AbstractAspectGenerator<X>
java.io.IOException
public void generateApplicationException(JavaWriter out, java.lang.Class<?> exn) throws java.io.IOException
generateApplicationException
in interface AspectGenerator<X>
generateApplicationException
in class AbstractAspectGenerator<X>
java.io.IOException
public void generateFinally(JavaWriter out) throws java.io.IOException
myRet myMethod(...)
{
try {
...
} finally {
[finally]
}
generateFinally
in interface AspectGenerator<X>
generateFinally
in class AbstractAspectGenerator<X>
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |