|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@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.
<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>
Inject| Optional Element Summary | |
|---|---|
WiringMode[] |
value
Specifies the wiring mode to be used for the marked element. |
public abstract WiringMode[] value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||