|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fishbolt.common.adapter.ext.Adaptable
public abstract class Adaptable
This is an abstract implementation of the adaptable object.
It contains the java.util.Map regisrty for
instances of adapters. Every instance from this
list is associated with its type in this list.
| Constructor Summary | |
|---|---|
Adaptable()
|
|
| Method Summary | ||
|---|---|---|
|
getAdapter(java.lang.Class<A> adapterType)
The method parameter sets a type of the adapter, which instance we want to get. |
|
protected abstract AdapterFactoryManager |
getAdapterFactoryManager()
Able to provide an instance of the AdapterFactoryManager class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Adaptable()
| Method Detail |
|---|
public <A extends IAdapter> A getAdapter(java.lang.Class<A> adapterType)
IAdaptableTherefore, if it is necessary to bind several objects of the same type and an adaptable object, its adapter has to "wrap up" all these the same-type objects in it and provide access to them.
getAdapter in interface IAdaptableA - type of the adapter, which instance we want to get.adapterType - type of the adapter, which instance we want to get.
IAdapterprotected abstract AdapterFactoryManager getAdapterFactoryManager()
AdapterFactoryManager.
AdapterFactoryManagerAdapterFactoryManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||