Interface IInternalRequiredServicesFeature

  • All Known Implementing Classes:
    RequiredServicesComponentFeature

    public interface IInternalRequiredServicesFeature
    Interface for internal service access methods.
    • Method Detail

      • getServiceInfo

        RequiredServiceInfo getServiceInfo​(java.lang.String name)
        Get the required service info for a name.
        Parameters:
        name - The required service name.
      • getRawService

        <T> T getRawService​(java.lang.Class<T> type)
        Get a service raw (i.e. w/o required proxy).
      • getRawServices

        <T> java.util.Collection<T> getRawServices​(java.lang.Class<T> type)
        Get a service raw (i.e. w/o required proxy).
      • resolveService

        <T> IFuture<T> resolveService​(ServiceQuery<T> query,
                                      RequiredServiceInfo info)
        Search for matching services and provide first result.
        Parameters:
        query - The search query.
        info - Used for required service proxy configuration -> null for no proxy.
        Returns:
        Future providing the corresponding service or ServiceNotFoundException when not found.
      • resolveLocalService

        <T> T resolveLocalService​(ServiceQuery<T> query,
                                  RequiredServiceInfo info)
        Search for matching services and provide first result. Synchronous method only for locally available services.
        Parameters:
        query - The search query.
        info - Used for required service proxy configuration -> null for no proxy.
        Returns:
        Future providing the corresponding service or ServiceNotFoundException when not found.
      • resolveServices

        <T> ITerminableIntermediateFuture<T> resolveServices​(ServiceQuery<T> query,
                                                             RequiredServiceInfo info)
        Search for all matching services.
        Parameters:
        query - The search query.
        info - Used for required service proxy configuration -> null for no proxy.
        Returns:
        Future providing the corresponding services or ServiceNotFoundException when not found.
      • resolveLocalServices

        <T> java.util.Collection<T> resolveLocalServices​(ServiceQuery<T> query,
                                                         RequiredServiceInfo info)
        Search for all matching services. Synchronous method only for locally available services.
        Parameters:
        query - The search query.
        info - Used for required service proxy configuration -> null for no proxy.
        Returns:
        Future providing the corresponding services or ServiceNotFoundException when not found.
      • resolveQuery

        <T> ISubscriptionIntermediateFuture<T> resolveQuery​(ServiceQuery<T> query,
                                                            RequiredServiceInfo info)
        Query for all matching services.
        Parameters:
        query - The search query.
        info - Used for required service proxy configuration -> null for no proxy.
        Returns:
        Future providing the corresponding services.
      • getServiceInfos

        RequiredServiceInfo[] getServiceInfos()
        Get the required services.
        Returns:
        The required services.