Interface ContextProvider

  • All Implemented Interfaces:

    
    public interface ContextProvider
    
                        

    Provides objects from the platform context for injection into action methods.

    This interface abstracts the mechanism for retrieving platform-managed objects (such as Spring beans) so that the core framework remains runtime-agnostic.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract <T extends Any> T getFromContext(Class<T> type) Retrieve an object of the specified type from the context.
      abstract Boolean hasInContext(Class<?> type) Check if an object of the specified type is available in the context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getFromContext

         abstract <T extends Any> T getFromContext(Class<T> type)

        Retrieve an object of the specified type from the context.

        Parameters:
        type - the class of the object to retrieve
        Returns:

        the object instance, or null if not available

      • hasInContext

         abstract Boolean hasInContext(Class<?> type)

        Check if an object of the specified type is available in the context.

        Parameters:
        type - the class to check for
        Returns:

        true if an object of this type can be provided