|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IAdaptorFactory
a factory for creating adaptors. Factories are typically used for specific models using the
Configuration.MODEL_ADAPTOR_FACTORY
key. A factory instance, once obtained, can be used
to find adaptors for a given type.
Method Summary | |
---|---|
IAdaptor[] |
getAdaptors(Class type)
retrieves the adaptors for the given type. |
IAdaptor[] |
getAdaptors(String className)
retrieves the adaptors for the class name. |
IAdaptor[] |
getAllAdaptors(Class type)
retrieves the adaptors not only for the given type but for all types of which this class is assignable. |
void |
registerAdaptor(Class type,
IAdaptor adaptor)
registers an adaptor for the given type. |
Method Detail |
---|
void registerAdaptor(Class type, IAdaptor adaptor)
getSupportedTypes
method.
type
- - type for which adaptor is being registeredadaptor
- IAdaptor.getSupportedTypes()
IAdaptor[] getAdaptors(Class type)
registerAdaptor
method.
type
- - type for which adaptors are desired
IAdaptor[] getAdaptors(String className)
registerAdaptor
method.
className
- - class name for which adaptors are desired
IAdaptor[] getAllAdaptors(Class type)
getAdaptors
in that getAdaptors
returns those Adaptors only for that type
while this method also tries to determine whether the
class type argument is a subclass of a class type registered. For instance,
a class type of org.eclipse.swt.widgets.Composite
may not have
any adaptors registered for it but it is a subclass of org.eclipse.swt.widgets.Control
,
which may have adaptors registered for it. In any case,
all of the adaptors returned are those that were registered via the registerAdaptor
method.
type
- - type for which adaptors are desired
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |