public class InstanceExtensionFactory<I extends InstanceExtension<E,T>,T extends Trait,E> extends Object implements ExtensionFactory<E>
Constructor and Description |
---|
InstanceExtensionFactory(Class<C> extensionClass,
Class<T> traitAPI,
Class<? extends E> extensionAPI) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateExtensionFor(ExtensionPoint<?,?> point) |
<TO extends Trait> |
createExtension(TO traitObject) |
public <TO extends Trait> E createExtension(TO traitObject)
createExtension
in interface ExtensionFactory<E>
public boolean canCreateExtensionFor(ExtensionPoint<?,?> point)
canCreateExtensionFor
in interface ExtensionFactory<E>
true
if the given extensio-point API elements are
compatible with the returned extension (i.e. the given extension
API is assignable form the type of the extension created by this
factory and the Trait
accepted as aparameter in
ExtensionFactory.createExtension(Trait)
is assignable from the type of
the given trait API).Copyright © 2005–2017 Alfresco Software. All rights reserved.