public class InjectorGroupInfo
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InjectorGroupInfo.Map
Storage for injector groups
|
| Constructor and Description |
|---|
InjectorGroupInfo(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
InjectorGroupInfo |
add(InjectionInfo member)
Add a new member to this group
|
int |
getMaxAllowed() |
java.util.Collection<InjectionInfo> |
getMembers()
Get all members of this group as a read-only collection
|
int |
getMinRequired() |
java.lang.String |
getName() |
boolean |
isDefault() |
void |
setMaxAllowed(int max)
Set the required minimum value for this group.
|
void |
setMinRequired(int min)
Set the required minimum value for this group.
|
java.lang.String |
toString() |
InjectorGroupInfo |
validate()
Validate all members in this group
|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isDefault()
public java.lang.String getName()
public int getMinRequired()
public int getMaxAllowed()
public java.util.Collection<InjectionInfo> getMembers()
public void setMinRequired(int min)
Group annotation it is considered a
warning-level event if a later annotation sets a different value. The
highest value specified on all annotations is always used.min - new value for min requiredpublic void setMaxAllowed(int max)
Group annotation it is considered a
warning-level event if a later annotation sets a different value. The
highest value specified on all annotations is always used.max - new value for max allowedpublic InjectorGroupInfo add(InjectionInfo member)
member - injector to addpublic InjectorGroupInfo validate() throws InjectionValidationException
InjectionValidationException - if validation fails