org.beanlet
Annotation Type Dependency


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD,FIELD,CONSTRUCTOR,PARAMETER})
public @interface Dependency

Used to specify an explicit dependency.

XML Representation

The following xml-fragment shows how to express this annotation in xml.
<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">
    <dependencies name="bar"/>
  </beanlet>
</beanlets>

Or alternatively:

<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">
    <dependencies>
      <dependency name="bar"/>
      <dependency name="cafe"/>
    </dependencies>
  </beanlet>
</beanlets>


Optional Element Summary
 String[] value
          Name of the beanlets upon which the element has a dependency.
 

value

public abstract String[] value
Name of the beanlets upon which the element has a dependency.

Default:
""


Copyright © 2006-2012. All Rights Reserved.