|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.jee.inject.Injection<E>
public abstract class Injection<E extends InjectionInfo>
Class modelling an injected member of a JEE component.
Field Summary | |
---|---|
protected E |
info
|
protected Member |
member
|
Constructor Summary | |
---|---|
Injection(Member member,
E resourceInfo)
|
Method Summary | |
---|---|
abstract void |
apply(Object instance,
Object value)
Applies the given value on the instance according to the injection information - implementation specific. |
boolean |
containsValue()
|
protected String |
getDefaultName()
Return the default name to be used if the info does not contain one. |
E |
getInfo()
|
Member |
getMember()
|
protected abstract Class |
getMemberType()
Need to be implemented based on the member type. |
String |
getName()
|
Class |
getType()
|
Object |
getValue()
|
void |
setValue(Object value)
If this method is called, we are dealing with a literal value. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final E extends InjectionInfo info
protected final Member member
Constructor Detail |
---|
public Injection(Member member, E resourceInfo)
Method Detail |
---|
public E getInfo()
getInfo
in interface InjectionI<E extends InjectionInfo>
public Object getValue()
getValue
in interface InjectionI<E extends InjectionInfo>
public void setValue(Object value)
setValue
in interface InjectionI<E extends InjectionInfo>
value
- public boolean containsValue()
containsValue
in interface InjectionI<E extends InjectionInfo>
public String getName()
getName
in interface InjectionI<E extends InjectionInfo>
public Class getType()
getType
in interface InjectionI<E extends InjectionInfo>
public Member getMember()
getMember
in interface InjectionI<E extends InjectionInfo>
protected String getDefaultName()
public String toString()
toString
in interface InjectionI<E extends InjectionInfo>
toString
in class Object
protected abstract Class getMemberType()
public abstract void apply(Object instance, Object value)
apply
in interface InjectionI<E extends InjectionInfo>
instance
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |