Interface CapabilityReferenceRecorder<T>

    • Method Detail

      • getDependent

        RuntimeCapability<Void> getDependent()
        Returns the dependent capability.
        Returns:
        a capability
      • getRequirement

        org.wildfly.service.descriptor.ServiceDescriptor<T> getRequirement()
        Returns the service descriptor required by the dependent capability.
        Returns:
        a service descriptor
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)
        Creates a new reference between the specified capability and the specified requirement.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement associated with the resource with which this attribute is referenced.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement,
                                                     Function<PathAddress,​PathElement> parentPathResolver)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement returned by the specified resolver
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        parentPathResolver - resolver of the path containing the first segment of the requirement name
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement,
                                                     AttributeDefinition parentAttribute)
        Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specified AttributeDefinition.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        parentAttribute - the attribute from which the parent segment of the requirement name is derived
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement associated with the resource with which this attribute is referenced.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement,
                                                     Function<PathAddress,​PathElement> grandparentPathResolver,
                                                     Function<PathAddress,​PathElement> parentPathResolver)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement returned by the specified resolver
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        grandparentPathResolver - resolver of the path containing the first segment of the requirement name
        parentPathResolver - resolver of the path containing the second segment of the requirement name
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement,
                                                     AttributeDefinition grandparentAttribute,
                                                     AttributeDefinition parentAttribute)
        Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specified AttributeDefinition.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        grandparentAttribute - the attribute from which the first segment of the requirement name is derived
        parentAttribute - the attribute from which the second segment of the requirement name is derived
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement associated with the resource with which this attribute is referenced.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement,
                                                     Function<PathAddress,​PathElement> greatGrandparentPathResolver,
                                                     Function<PathAddress,​PathElement> grandparentPathResolver,
                                                     Function<PathAddress,​PathElement> parentPathResolver)
        Creates a new reference between the specified capability and the specified requirement. Parent reference name is taken from the PathElement returned by the specified resolver
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        greatGrandparentPathResolver - resolver of the path containing the first segment of the requirement name
        grandparentPathResolver - resolver of the path containing the second segment of the requirement name
        parentPathResolver - resolver of the path containing the third segment of the requirement name
      • of

        static <T> CapabilityReferenceRecorder<T> of​(RuntimeCapability<Void> capability,
                                                     org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement,
                                                     AttributeDefinition greatGrandparentAttribute,
                                                     AttributeDefinition grandparentAttribute,
                                                     AttributeDefinition parentAttribute)
        Creates a new reference between the specified capability and the specified requirement Parent reference name is taken from the value of the specified AttributeDefinition.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        greatGrandparentAttribute - the attribute from which the first segment of the requirement name is derived
        grandparentAttribute - the attribute from which the second segment of the requirement name is derived
        parentAttribute - the attribute from which the third segment of the requirement name is derived