|
Lima-Loa | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.limaloa.AdapterFactory
public class AdapterFactory
Factory class that allows controlled creation of adapter instances.
| Method Summary | |
|---|---|
java.lang.Object |
createAdapter(java.lang.Class sourceInterface,
java.lang.Object target,
java.util.Map methodMappings)
Creates a new adapter instance, which maps calls to it's methods to the appropriate method on the target object. |
static AdapterFactory |
getInstance()
Initialise everything and get a new factory instance. |
static AdapterFactory |
getInstance(java.util.List mappingFiles)
Initialise everything and get a new factory instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AdapterFactory getInstance()
public static AdapterFactory getInstance(java.util.List mappingFiles)
List of filenames, containing
custom Dozer mapping definitions.
mappingFiles - A List of Dozer mapping filenames to use, or null if none
public java.lang.Object createAdapter(java.lang.Class sourceInterface,
java.lang.Object target,
java.util.Map methodMappings)
throws AdapterCreationException
sourceInterface - The fully qualified interface type name that the adapter will implementtarget - The target object to map calls tomethodMappings - A Map of target method names, keyed by source method name.
Proxy instance that maps calls.
AdapterCreationException - Error creating the adapter
|
Lima-Loa | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||