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. |
<xsd:complexType name="lifecycle-callbackType"> <xsd:annotation> <xsd: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.</xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="lifecycle-callback-class" type="javaee:fully-qualified-classType" minOccurs="0"/> <xsd:element name="lifecycle-callback-method" type="javaee:java-identifierType"/> </xsd:sequence> </xsd:complexType> |