Package org.alfresco.traitextender
Interface ExtensionFactory<E>
-
- All Known Implementing Classes:
InstanceExtensionFactory,SingletonExtensionFactory
public interface ExtensionFactory<E>Creates extension instances for givenTraits andExtensionPoints.- Author:
- Bogdan Horje
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanCreateExtensionFor(ExtensionPoint<?,?> point)<T extends Trait>
EcreateExtension(T trait)
-
-
-
Method Detail
-
canCreateExtensionFor
boolean canCreateExtensionFor(ExtensionPoint<?,?> point)
- Parameters:
point-- Returns:
trueif 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 theTraitaccepted as aparameter increateExtension(Trait)is assignable from the type of the given trait API).
-
-