org.beanlet
Annotation Type Remove


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

Applied to a business method of a class. Indicates that the stateful reference is to be removed by the container after completion of the method.

XML Representation

The following xml-fragment shows how to express this annotation in xml. The italic attribute of the 'remove' tag is used to identify the element to which this annotation is applied. The other attribute can be specified optionally if the annotation specifies a default value for the particular annotation method.
<beanlets xmlns="http://beanlet.org/schema/beanlet"
          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">
  <beanlet name="foo" type="com.acme.Foo">
    <remove method="bar" retain-if-exception="false"/>
  </beanlet>
</beanlets>


Optional Element Summary
 boolean retainIfException
          If true, the reference will not be removed if an exception or error is thrown from the designated method.
 

retainIfException

public abstract boolean retainIfException
If true, the reference will not be removed if an exception or error is thrown from the designated method.

Default:
false


Copyright © 2006-2012. All Rights Reserved.