|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.adapter.AdapterManager
public class AdapterManager
This class is insipired by the similar from eclipse project
Constructor Summary | |
---|---|
AdapterManager()
Constructor |
|
AdapterManager(AdapterManager parentAdapterManager)
Constructor |
Method Summary | ||
---|---|---|
|
adapt(T object,
Class<T> cls)
Adopts given object to the instance of the asked class |
|
Collection<AdapterFactory> |
getAdapterFactories()
Returns collection of adapter factories |
|
|
getAdaptingClasses(T object)
Returns list of classes to which given object can be adopted to by this adopter factory |
|
AdapterManager |
getParentAdapterManager()
Returns parent adapter manager |
|
void |
setAdapterFactories(Collection<AdapterFactory> adapterFactories)
Sets the collection of adapter factories |
|
void |
setParentAdapterManager(AdapterManager parentAdapterManager)
Sets parent adapter manager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AdapterManager()
public AdapterManager(AdapterManager parentAdapterManager)
parentAdapterManager
- parent adapter managerMethod Detail |
---|
public AdapterManager getParentAdapterManager()
public void setParentAdapterManager(AdapterManager parentAdapterManager)
parentAdapterManager
- parent adapter managerpublic Collection<AdapterFactory> getAdapterFactories()
public void setAdapterFactories(Collection<AdapterFactory> adapterFactories)
adapterFactories
- collection of adapter factoriespublic <T> T adapt(T object, Class<T> cls)
adapt
in interface AdapterFactory
object
- object to he adoptedcls
- asked class
public <T> Class<T>[] getAdaptingClasses(T object)
getAdaptingClasses
in interface AdapterFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |