Package org.alfresco.traitextender
Interface ExtensionFactory<E>
- All Known Implementing Classes:
InstanceExtensionFactory,SingletonExtensionFactory
public interface ExtensionFactory<E>
Creates extension instances for given
Traits and
ExtensionPoints.- Author:
- Bogdan Horje
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanCreateExtensionFor(ExtensionPoint<?, ?> point) createExtension(T trait)
-
Method Details
-
createExtension
-
canCreateExtensionFor
- 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).
-