com.supermap.services

Interface InterfaceContext



  • public interface InterfaceContext
    

    Service interface context interface.

    Used to get the configuration information of the service interface and the constructed service component.

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      <T> java.util.List<T> getComponents(java.lang.Class<T> clz)
      Get the service component list used by the service interface according to the service component type.
      <T> T getConfig(java.lang.Class<T> clz)
      According to the configuration type of the service interface to obtain the corresponding service interface configuration information.
    • Method Detail

      • getComponents

        <T> java.util.List<T> getComponents(java.lang.Class<T> clz)
        

        Get the service component list used by the service interface according to the service component type.

        Parameters:
        clz - specific service component type.
        Returns:
        the service component list.
      • getConfig

        <T> T getConfig(java.lang.Class<T> clz)
        

        According to the configuration type of the service interface to obtain the corresponding service interface configuration information. An object mapping exception is thrown if it is not a parameter type.

        Parameters:
        clz - the service interface configuration type.
        Returns:
        the service interface configuration information.