Interface ComponentDefinition.ComponentCreator<C>

Type Parameters:
C - The type of component defined.
All Superinterfaces:
ComponentDefinition<C>
All Known Implementing Classes:
AbstractComponent, InstantiatedComponentDefinition, LazyInitializedComponentDefinition
Enclosing interface:
ComponentDefinition<C>

public static non-sealed interface ComponentDefinition.ComponentCreator<C> extends ComponentDefinition<C>
Mandatory interface to be implemented by all implementations of ComponentDefinition.

This separation will hide these methods from general use of the ComponentDefinition, while enforcing that all ComponentDefinition instances will declare this method.

  • Method Details

    • createComponent

      Component<C> createComponent()
      Create a component matching the requirements configured on this definition.

      Multiple invocations of this method should return the same instance.

      Returns:
      A component based on this definition.