|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME)
@Target(value={CONSTRUCTOR,METHOD,FIELD})
public @interface StaticFactory
Applied to static methods or static fields to denote a factory.
StaticFactory annotation is applied MUST fulfill all
of the following criteria:
StaticFactory is applied MAY be public,
protected, package private or private.
StaticFactory annotation is applied MUST fulfill all
of the following criteria:
void.
StaticFactory is applied MAY be public,
protected, package private or private.
static.
final.
Factory annotation is applied MUST fulfill all
of the following criteria:
StaticFactory is applied MAY be public,
protected, package private or private.
static.
final.
<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">
<static-factory field="bar"/>
</beanlet>
</beanlets>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||