- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
-
- org.nasdanika.emf.ComposeableAdapterFactoryImpl
-
- org.nasdanika.emf.DelegatingAdapterFactory<T>
-
- org.nasdanika.emf.InstanceAdapterFactory<T>
-
- All Implemented Interfaces:
AdapterFactory
,ComposeableAdapterFactory
public class InstanceAdapterFactory<T> extends DelegatingAdapterFactory<T>
Adapter factory delegating to a single shared adapter instance for all notifiers.- Author:
- Pavel Vlasov
-
-
Constructor Summary
Constructors Constructor Description InstanceAdapterFactory(Class<T> type, ClassLoader proxyClassLoader, T adapter)
InstanceAdapterFactory(EClass eClass, Class<T> type, ClassLoader proxyClassLoader, T adapter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
doCreateAdapter(Notifier target)
Creates adapter.-
Methods inherited from class org.nasdanika.emf.DelegatingAdapterFactory
allInterfaces, createAdapter, isFactoryForType
-
Methods inherited from class org.nasdanika.emf.ComposeableAdapterFactoryImpl
getEClasses, getRootAdapterFactory, setParentAdapterFactory
-
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adapt, adapt, adaptAllNew, adaptNew, associate, createAdapter, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.emf.common.notify.AdapterFactory
adapt, adapt, adaptAllNew, adaptNew
-
-
-
-
Constructor Detail
-
InstanceAdapterFactory
public InstanceAdapterFactory(Class<T> type, ClassLoader proxyClassLoader, T adapter)
-
InstanceAdapterFactory
public InstanceAdapterFactory(EClass eClass, Class<T> type, ClassLoader proxyClassLoader, T adapter)
-
-
Method Detail
-
doCreateAdapter
protected T doCreateAdapter(Notifier target)
Description copied from class:DelegatingAdapterFactory
Creates adapter. This adapter does not have to implementAdapter
. If it does not then a proxy will be created implementing both T and adapter.- Specified by:
doCreateAdapter
in classDelegatingAdapterFactory<T>
- Returns:
-
-