|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.javaee5.LifecycleCallbackTypeImpl<T>
public class LifecycleCallbackTypeImpl<T>
This class implements the lifecycle-callbackType
xsd type
Original Documentation:
The lifecycle-callback type specifies a method on a
class to be called when a lifecycle event occurs.
Note that each class may have only one lifecycle callback
method for any given event and that the method may not
be overloaded.
If the lifefycle-callback-class element is missing then
the class defining the callback is assumed to be the
component class in scope at the place in the descriptor
in which the callback definition appears.
Constructor Summary | |
---|---|
LifecycleCallbackTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
LifecycleCallbackTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.lang.String |
getLifecycleCallbackClass()
Returns the lifecycle-callback-class element |
java.lang.String |
getLifecycleCallbackMethod()
Returns the lifecycle-callback-method element |
LifecycleCallbackType<T> |
removeLifecycleCallbackClass()
Removes the lifecycle-callback-class element |
LifecycleCallbackType<T> |
removeLifecycleCallbackMethod()
Removes the lifecycle-callback-method element |
LifecycleCallbackType<T> |
setLifecycleCallbackClass(java.lang.String lifecycleCallbackClass)
If not already created, a new lifecycle-callback-class element with the given value will be created. |
LifecycleCallbackType<T> |
setLifecycleCallbackMethod(java.lang.String lifecycleCallbackMethod)
If not already created, a new lifecycle-callback-method element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LifecycleCallbackTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public LifecycleCallbackTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public LifecycleCallbackType<T> setLifecycleCallbackClass(java.lang.String lifecycleCallbackClass)
lifecycle-callback-class
element with the given value will be created.
Otherwise, the existing lifecycle-callback-class
element will be updated with the given value.
setLifecycleCallbackClass
in interface LifecycleCallbackType<T>
LifecycleCallbackType
public LifecycleCallbackType<T> removeLifecycleCallbackClass()
lifecycle-callback-class
element
removeLifecycleCallbackClass
in interface LifecycleCallbackType<T>
LifecycleCallbackType
public java.lang.String getLifecycleCallbackClass()
lifecycle-callback-class
element
getLifecycleCallbackClass
in interface LifecycleCallbackType<T>
lifecycle-callback-class
public LifecycleCallbackType<T> setLifecycleCallbackMethod(java.lang.String lifecycleCallbackMethod)
lifecycle-callback-method
element with the given value will be created.
Otherwise, the existing lifecycle-callback-method
element will be updated with the given value.
setLifecycleCallbackMethod
in interface LifecycleCallbackType<T>
LifecycleCallbackType
public LifecycleCallbackType<T> removeLifecycleCallbackMethod()
lifecycle-callback-method
element
removeLifecycleCallbackMethod
in interface LifecycleCallbackType<T>
LifecycleCallbackType
public java.lang.String getLifecycleCallbackMethod()
lifecycle-callback-method
element
getLifecycleCallbackMethod
in interface LifecycleCallbackType<T>
lifecycle-callback-method
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |