Interface IBootstrapping


public interface IBootstrapping
A feature provider may implement this interface to execute code before or immediately after the creation of the component with all features. Bootstrapping is performed in a nested way, i.e.,: * code of feature 1 before creation * code of feature 2 before creation ... * code of feature 2 after creation * code of feature 1 after creation
  • Method Summary

    Modifier and Type
    Method
    Description
    <T extends Component>
    T
    bootstrap(Class<T> type, Supplier<T> creator)
    This method is executed on all features that implement IBootstrapping.
  • Method Details

    • bootstrap

      <T extends Component> T bootstrap(Class<T> type, Supplier<T> creator)
      This method is executed on all features that implement IBootstrapping.
      Parameters:
      type - The component type is required for loading correct feature providers.
      creator - Code that creates and returns the component instance and can be called before, after, or in between your bootstrapping code.
      Returns:
      The created component instance.