org.beanlet
Annotation Type Wiring


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

Allows members to be wired with implicitely selected objects.

A member can only be wired BY_INFO, BY_NAME or BY_TYPE if the beanlet's package, class or member is marked with the specified wiring mode. Note that the wiring modes for the member overrides the class wiring modes and logically, the class wiring modes override the package wiring modes.

Members marked with this annotation MUST also be annotated with Inject, otherwise the beanlet definition fails.

XML Representation

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

See Also:
Inject

Optional Element Summary
 WiringMode[] value
          Specifies the wiring mode to be used for the marked element.
 

value

public abstract WiringMode[] value
Specifies the wiring mode to be used for the marked element.

Default:
{}


Copyright © 2006-2012. All Rights Reserved.