|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.config.gen.NullGenerator<X>
com.caucho.config.gen.MethodTailGenerator<X>
com.caucho.ejb.gen.StatelessMethodTailGenerator<X>
@Module public class StatelessMethodTailGenerator<X>
Represents a stateless local business method
| Field Summary |
|---|
| Fields inherited from class com.caucho.config.gen.MethodTailGenerator |
|---|
_factory, _method |
| Fields inherited from class com.caucho.config.gen.NullGenerator |
|---|
NULL |
| Constructor Summary | |
|---|---|
StatelessMethodTailGenerator(StatelessMethodTailFactory<X> factory,
AnnotatedMethod<? super X> method)
|
|
| 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 |
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 AspectBeanFactory<X> |
getBeanFactory()
|
protected AnnotatedType<X> |
getBeanType()
Returns the owning bean type. |
protected AspectFactory<X> |
getFactory()
|
protected java.lang.Class<X> |
getJavaClass()
|
| Methods inherited from class com.caucho.config.gen.MethodTailGenerator |
|---|
generateCall, getMethod, isApplicationExceptionThrown |
| Methods inherited from class com.caucho.config.gen.NullGenerator |
|---|
generate, generateAsync, generateBeanConstructor, generateBeanPrologue, generateDestroy, generateEpilogue, generateInject, generateMethodPrologue, generatePostConstruct, generatePostFinally, generatePreDestroy, generateProxyConstructor, generateSystemException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatelessMethodTailGenerator(StatelessMethodTailFactory<X> factory,
AnnotatedMethod<? super X> method)
| Method Detail |
|---|
public void generatePreTry(JavaWriter out)
throws java.io.IOException
retType myMethod(...)
{
[pre-try]
try {
...
}
generatePreTry in interface AspectGenerator<X>generatePreTry in class NullGenerator<X>java.io.IOExceptionprotected AspectFactory<X> getFactory()
protected AspectBeanFactory<X> getBeanFactory()
protected AnnotatedType<X> getBeanType()
protected java.lang.Class<X> getJavaClass()
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 NullGenerator<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 NullGenerator<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 NullGenerator<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 NullGenerator<X>java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||