|
Silk DI 0.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectse.jbee.inject.Name
public final class Name
A Name is used as discriminator in cases where multiple Instances are bound for
the same Type.
| Field Summary | |
|---|---|
static Name |
ANY
It is the least precise name of all. |
static Name |
DEFAULT
Used when no name is specified. |
static String |
WILDCARD
Character used as wildcard when matching names. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
boolean |
equalTo(Name other)
|
int |
hashCode()
|
boolean |
isAny()
|
boolean |
isApplicableFor(Name other)
|
boolean |
isDefault()
|
boolean |
isInternal()
|
boolean |
morePreciseThan(Name other)
|
static Name |
named(String name)
|
static Name |
namedBy(Class<? extends Annotation> annotation,
AnnotatedElement obj)
|
static Name |
namedBy(Class<? extends Annotation> annotation,
Annotation... instances)
|
static Name |
namedInternal(Enum<?> name)
|
static Name |
namedInternal(String name)
Internal names use a special prefix to avoid name clashes with 'usual' user defined names. |
String |
toString()
|
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String WILDCARD
public static final Name DEFAULT
public static final Name ANY
| Method Detail |
|---|
public static Name named(String name)
namedInternal(String)public static Name namedInternal(String name)
name - A value having the INTERNAL prefix '-' or not.
INTERNAL prefix in any case.public static Name namedInternal(Enum<?> name)
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equalTo(Name other)
public boolean equals(Object obj)
equals in class Objectpublic boolean isAny()
public boolean isDefault()
public boolean isInternal()
public boolean morePreciseThan(Name other)
morePreciseThan in interface PreciserThan<Name>Types with no common super-type do not
define one of them that is more precise.public boolean isApplicableFor(Name other)
public static Name namedBy(Class<? extends Annotation> annotation,
AnnotatedElement obj)
public static Name namedBy(Class<? extends Annotation> annotation,
Annotation... instances)
|
Silk DI 0.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||