org.beanlet
Annotation Type Lazy


@Retention(value=RUNTIME)
@Target(value={PACKAGE,TYPE})
public @interface Lazy

Beanlets marked with this annotations are not eagerly instantiated. This annotation is only supported for Stateless, Stateful and singleton Vanilla beanlets.

XML Representation

The following xml-fragment shows how to express this annotation in xml. The 'lazy' tag does not specify any element attribute, which means that this tag is applied to the beanlet's class. The 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">
    <lazy value="true"/>
  </beanlet>
</beanlets>


Optional Element Summary
 boolean value
           
 

value

public abstract boolean value
Default:
true


Copyright © 2006-2012. All Rights Reserved.