Class AbstractComplexFactory<E,F,G,H>

java.lang.Object
org.jvnet.hk2.metadata.tests.complextypefactory.AbstractComplexFactory<E,F,G,H>
All Implemented Interfaces:
Factory<F>, InterfaceWithOneType<E>, InterfaceWithTwoTypes<H,G>
Direct Known Subclasses:
MiddleComplexFactory

public abstract class AbstractComplexFactory<E,F,G,H> extends Object implements InterfaceWithOneType<E>, InterfaceWithTwoTypes<H,G>, Factory<F>
  • Constructor Details

    • AbstractComplexFactory

      public AbstractComplexFactory()
  • Method Details

    • provide

      public F provide()
      In the end this should be returning SomeInterface
      Specified by:
      provide in interface Factory<E>
      Returns:
      The produces object
    • dispose

      public void dispose(F instance)
      Description copied from interface: Factory
      This method will dispose of objects created with this scope. This method should not be annotated, as it is naturally paired with the provide method
      Specified by:
      dispose in interface Factory<E>
      Parameters:
      instance - The instance to dispose of