|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface InstanceContent.Convertor<T,R>
Convertor postpones an instantiation of an object.
Method Summary | |
---|---|
R |
convert(T obj)
Convert obj to other object. |
java.lang.String |
displayName(T obj)
The human presentable name for the object. |
java.lang.String |
id(T obj)
Computes the ID of the resulted object. |
java.lang.Class<? extends R> |
type(T obj)
Return type of converted object. |
Method Detail |
---|
R convert(T obj)
Lookup.Item.getInstance()
method itself. However the
method can be called more than once because instance is held
just by weak reference.
obj
- the registered object
java.lang.Class<? extends R> type(T obj)
Lookup.Item.getType()
obj
- the registered object
java.lang.String id(T obj)
Lookup.Item.getId()
.
obj
- the registered object
java.lang.String displayName(T obj)
Lookup.Item.getDisplayName()
.
obj
- the registered object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |