|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ezmorph.MorpherRegistry
public class MorpherRegistry
Convenient class that manages Morphers.
| Constructor Summary | |
|---|---|
MorpherRegistry()
|
|
| Method Summary | |
|---|---|
void |
clear()
Deregisters all morphers. |
void |
deregisterMorpher(Morpher morpher)
Deregister the specified Morpher. |
Morpher |
getMorpherFor(java.lang.Class clazz)
Returns a morpher for clazz. |
Morpher[] |
getMorphersFor(java.lang.Class clazz)
Returns all morphers for clazz. |
java.lang.Object |
morph(java.lang.Class target,
java.lang.Object value)
Morphs and object to the specified target class. |
void |
registerMorpher(Morpher morpher)
Register a Morpher for a target Class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MorpherRegistry()
| Method Detail |
|---|
public void clear()
public void deregisterMorpher(Morpher morpher)
Class from the morphers
Map if it has no other registered morphers.
morpher - public Morpher getMorpherFor(java.lang.Class clazz)
clazz.
public Morpher[] getMorphersFor(java.lang.Class clazz)
clazz.
public java.lang.Object morph(java.lang.Class target,
java.lang.Object value)
target - value -
public void registerMorpher(Morpher morpher)
Class.
morpher -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||