Interface ContextComponent<T>


  • public interface ContextComponent<T>
    Defines a component that can be attached to the execution context
    • Method Detail

      • getName

        java.lang.String getName()
        name
      • getType

        java.lang.Class<T> getType()
      • getObject

        T getObject()
      • isUseOnce

        default boolean isUseOnce()
        Returns:
        true if the component should not be used more than once
      • with

        static <T> ContextComponent<T> with​(java.lang.String name,
                                            T o,
                                            java.lang.Class<T> type)
        Create a component
        Type Parameters:
        T -
        Parameters:
        name -
        o -
        type -
      • with

        static <T> ContextComponent<T> with​(java.lang.String name,
                                            T o,
                                            java.lang.Class<T> type,
                                            boolean useOnce)
        Create a component
        Type Parameters:
        T -
        Parameters:
        name -
        o -
        type -
        useOnce - true for single use component