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 Details

    • createExtension

      <T extends Trait> E createExtension(T trait)
    • canCreateExtensionFor

      boolean canCreateExtensionFor(ExtensionPoint<?,?> point)
      Parameters:
      point -
      Returns:
      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 createExtension(Trait) is assignable from the type of the given trait API).