@Documented @Retention(value=RUNTIME) @Target(value={FIELD,PARAMETER}) @InjectionPointIndicator public @interface Configured
ConfiguredBy
annotation on the class.
The key field gives the name of the parameter to get from the java bean instance upon which the instance of this service is based. If the configuration bean is a java bean then a method name starting with "get" and having the key name (with the first letter capitalized) will be invoked to get the value. if the configuration bean is a map then the value of the key is the value of the key in the map from which to get the value
In the case of a field the key field can come from the name of the field (or can be explicitly set, which will override the name of the field). In the case of a parameter the key field must be filled in with the name of the field on the java bean to use to inject into this parameter
Modifier and Type | Fields and Description |
---|---|
static String |
BEAN_KEY
This value can be used to indicate that the injection point should be the whole bean
|
static String |
INSTANCE
This value can be used to indicate that the injection point should be given the instance name.
|
static String |
TYPE
This value can be used to indicate that the injection point should be given the type name.
|
Modifier and Type | Optional Element and Description |
---|---|
Dynamicity |
dynamicity
Describes how dynamic a configured field or parameter must be.
|
String |
value
The name of the field in the java bean or
bean-like map to use for injecting into
this field or parameter.
|
public static final String BEAN_KEY
public static final String INSTANCE
public static final String TYPE
public abstract String value
public abstract Dynamicity dynamicity
Copyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.