|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cuba.AbstractComponentAdapter
public abstract class AbstractComponentAdapter
Common base class for all kinds of adapters.
Field Summary | |
---|---|
protected java.lang.Object |
core
|
Constructor Summary | |
---|---|
AbstractComponentAdapter()
|
Method Summary | |
---|---|
protected abstract java.lang.Object |
_getCore()
|
protected void |
_initCore(ComponentContextI componentContext)
Runs _injectDependencies(cuba.ComponentContextI) followed by _postConstruct()
to initialize the component the EJB 3 way. |
protected void |
_injectDependencies(ComponentContextI context)
This function is used in derived adapter classes to inject dependend objects (other components and resources) in EJB 3 style. |
protected void |
_postActivate()
Derived types may override this method to invoke all methods with a @PostActivate annotation. |
protected void |
_postConstruct()
Derived types may override this method to invoke all methods with a @PostConstruct annotation. |
protected void |
_preDestroy()
Derived types may override this method to invoke all methods with a @PreDestroy annotation. |
protected void |
_prePassivate()
Derived types may override this method to invoke all methods with a @PrePassivate annotation. |
protected java.lang.Boolean |
box(boolean b)
|
protected java.lang.Byte |
box(byte b)
|
protected java.lang.Character |
box(char c)
|
protected java.lang.Double |
box(double d)
|
protected java.lang.Float |
box(float f)
|
protected java.lang.Integer |
box(int i)
|
protected java.lang.Long |
box(long l)
|
protected java.lang.Short |
box(short s)
|
protected java.lang.Object |
invoke(java.lang.reflect.Method coreMethod,
java.lang.Object[] params,
AroundInvocation commonInterceptors)
|
protected java.lang.Object |
invoke(java.lang.reflect.Method coreMethod,
java.lang.Object[] params,
AroundInvocation privateInterceptors,
AroundInvocation commonInterceptors)
|
protected void |
invokeLifecycle(java.lang.reflect.Method coreMethod,
AroundInvocation commonInterceptors)
|
protected abstract MethodInvocation |
invoker()
|
static java.lang.RuntimeException |
runtimeException(java.lang.Throwable t)
|
protected boolean |
unbox_boolean(java.lang.Object source)
|
protected byte |
unbox_byte(java.lang.Object source)
|
protected char |
unbox_char(java.lang.Object source)
|
protected double |
unbox_double(java.lang.Object source)
|
protected float |
unbox_float(java.lang.Object source)
|
protected short |
unbox_hort(java.lang.Object source)
|
protected int |
unbox_int(java.lang.Object source)
|
protected long |
unbox_long(java.lang.Object source)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.Object core
Constructor Detail |
---|
public AbstractComponentAdapter()
Method Detail |
---|
protected abstract java.lang.Object _getCore()
protected void _preDestroy()
protected void _injectDependencies(ComponentContextI context) throws ConstructionException, ReferenceException
ConstructionException
ReferenceException
protected void _postConstruct()
protected void _prePassivate()
protected void _postActivate()
protected void _initCore(ComponentContextI componentContext)
_injectDependencies(cuba.ComponentContextI)
followed by _postConstruct()
to initialize the component the EJB 3 way. If _postConstruct() throws
an exception, the function determines if it is running in a TX context
and rolls it back if existing, according to the EJB 3 specification.
{@link
- ComponentException} if anything happens :-)public static java.lang.RuntimeException runtimeException(java.lang.Throwable t)
protected java.lang.Boolean box(boolean b)
protected java.lang.Byte box(byte b)
protected java.lang.Character box(char c)
protected java.lang.Short box(short s)
protected java.lang.Integer box(int i)
protected java.lang.Long box(long l)
protected java.lang.Float box(float f)
protected java.lang.Double box(double d)
protected boolean unbox_boolean(java.lang.Object source)
protected byte unbox_byte(java.lang.Object source)
protected char unbox_char(java.lang.Object source)
protected short unbox_hort(java.lang.Object source)
protected int unbox_int(java.lang.Object source)
protected long unbox_long(java.lang.Object source)
protected float unbox_float(java.lang.Object source)
protected double unbox_double(java.lang.Object source)
protected abstract MethodInvocation invoker()
protected java.lang.Object invoke(java.lang.reflect.Method coreMethod, java.lang.Object[] params, AroundInvocation commonInterceptors) throws java.lang.Exception
java.lang.Exception
protected java.lang.Object invoke(java.lang.reflect.Method coreMethod, java.lang.Object[] params, AroundInvocation privateInterceptors, AroundInvocation commonInterceptors) throws java.lang.Exception
java.lang.Exception
protected void invokeLifecycle(java.lang.reflect.Method coreMethod, AroundInvocation commonInterceptors)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |