Interface ServiceDependency<V>

    • Method Summary

      All Methods Static Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default <R> ServiceDependency<R> map​(Function<V,​R> mapper)  
      static <T> ServiceDependency<T> of​(T value)
      Returns a dependency on the service with the specified name.
      static <T> ServiceDependency<T> on​(String capabilityName, Class<T> type, String... referenceNames)
      Returns a dependency on the capability with the specified name and type, resolved against the specified references names.
      static <T> ServiceDependency<T> on​(org.jboss.msc.service.ServiceName name)
      Returns a dependency on the service with the specified name.
      static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.BinaryServiceDescriptor<T> descriptor, String parentName, String childName)
      Returns a dependency on the specified binary capability, resolved against the specified reference names.
      static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.NullaryServiceDescriptor<T> descriptor)
      Returns a dependency on the specified capability.
      static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.TernaryServiceDescriptor<T> descriptor, String ancestorName, String parentName, String childName)
      Returns a dependency on the specified ternary capability, resolved against the specified reference names.
      static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.UnaryServiceDescriptor<T> descriptor, String name)
      Returns a dependency on the specified unary capability, resolved against the specified reference name.
      • Methods inherited from interface java.util.function.Supplier

        get
    • Method Detail

      • of

        static <T> ServiceDependency<T> of​(T value)
        Returns a dependency on the service with the specified name.
        Type Parameters:
        T - the dependency type
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(org.jboss.msc.service.ServiceName name)
        Returns a dependency on the service with the specified name.
        Type Parameters:
        T - the dependency type
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(String capabilityName,
                                           Class<T> type,
                                           String... referenceNames)
        Returns a dependency on the capability with the specified name and type, resolved against the specified references names.
        Type Parameters:
        T - the dependency type
        Parameters:
        capabilityName - the name of the referenced capability
        type - the service type of the referenced capability
        referenceNames - the reference names
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.NullaryServiceDescriptor<T> descriptor)
        Returns a dependency on the specified capability.
        Type Parameters:
        T - the dependency type
        Parameters:
        descriptor - the descriptor for the required service
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.UnaryServiceDescriptor<T> descriptor,
                                           String name)
        Returns a dependency on the specified unary capability, resolved against the specified reference name.
        Type Parameters:
        T - the dependency type
        Parameters:
        descriptor - the descriptor for the required service
        name - the reference name
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.BinaryServiceDescriptor<T> descriptor,
                                           String parentName,
                                           String childName)
        Returns a dependency on the specified binary capability, resolved against the specified reference names.
        Type Parameters:
        T - the dependency type
        Parameters:
        descriptor - the descriptor for the required service
        parentName - the parent reference name
        childName - the child reference name
        Returns:
        a dependency supplier
      • on

        static <T> ServiceDependency<T> on​(org.wildfly.service.descriptor.TernaryServiceDescriptor<T> descriptor,
                                           String ancestorName,
                                           String parentName,
                                           String childName)
        Returns a dependency on the specified ternary capability, resolved against the specified reference names.
        Type Parameters:
        T - the dependency type
        Parameters:
        descriptor - the descriptor for the required service
        ancestorName - the ancestor reference name
        parentName - the parent reference name
        childName - the child reference name
        Returns:
        a dependency supplier