public class SingletonExtensionFactory<E,S extends SingletonExtension<E,T>,T extends Trait> extends Object implements ExtensionFactory<E>
Constructor and Description |
---|
SingletonExtensionFactory(S singleton,
Class<E> extensionAPI) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCreateExtensionFor(ExtensionPoint<?,?> point) |
<TO extends Trait> |
createExtension(TO traitObject) |
public SingletonExtensionFactory(S singleton, Class<E> extensionAPI) throws InvalidExtension
InvalidExtension
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.