org.beanlet.transaction
Annotation Type BeforeCompletion


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface BeforeCompletion

The BeforeCompletion method notifies a beanlet instance that a transaction is about to be committed.

Method Constraints

Only one method can be marked with this annotation. The method on which the BeforeCompletion annotation is applied MUST fulfill all of the following criteria:

XML Representation

The following xml-fragment shows how to express this annotation in xml. The italic attribute of the 'before-completion' tag is used to identify the element to which this annotation is applied.
<beanlets xmlns="http://beanlet.org/schema/beanlet"
          xmlns:tx="http://beanlet.org/schema/transaction"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://beanlet.org/schema/beanlet http://beanlet.org/schema/beanlet/beanlet_1_0.xsd
                              http://beanlet.org/schema/transaction http://beanlet.org/schema/transaction/beanlet_transaction_1_0.xsd">
  <beanlet name="foo" type="com.acme.Foo">
    <tx:before-completion method="bar"/>
  </beanlet>
</beanlets>

See Also:
TransactionSynchronization



Copyright © 2006-2012. All Rights Reserved.