Interface ResourceCapabilityReferenceRecorder<T>

    • Method Detail

      • getRequirementNameResolver

        Function<PathAddress,​String[]> getRequirementNameResolver()
        Returns the resolver of the requirement name from a path address.
        Returns:
        a requirement name resolver
      • addCapabilityRequirements

        void addCapabilityRequirements​(OperationContext context,
                                       Resource resource)
        Registers capability requirements for the specified resource.
        Parameters:
        context - the context
        resource - the resource on which requirements are gathered
      • removeCapabilityRequirements

        void removeCapabilityRequirements​(OperationContext context,
                                          Resource resource)
        Unregisters capability requirements for the specified resource.
        Parameters:
        context - the context
        resource - the resource on which requirements were gathered
      • builder

        static <T> ResourceCapabilityReferenceRecorder.Builder<T> builder​(RuntimeCapability<Void> capability,
                                                                          org.wildfly.service.descriptor.NullaryServiceDescriptor<T> requirement)
        Creates a builder for 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
      • builder

        static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder​(RuntimeCapability<Void> capability,
                                                                              org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement)
        Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the path of the current resource.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
      • builder

        static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder​(RuntimeCapability<Void> capability,
                                                                              org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement)
        Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the parent and current resources, respectively.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        requirementNameResolver - function for resolving the dynamic components of the requirement name
      • builder

        static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder​(RuntimeCapability<Void> capability,
                                                                              org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement)
        Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the grandparent, parent, and current resources, respectively.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        requirementNameResolver - function for resolving the dynamic components of the requirement name
      • builder

        static <T> ResourceCapabilityReferenceRecorder.NaryBuilder<T> builder​(RuntimeCapability<Void> capability,
                                                                              org.wildfly.service.descriptor.QuaternaryServiceDescriptor<T> requirement)
        Creates a builder for a new reference between the specified capability and the specified requirement. By default, the requirement name will resolve against the paths of the great-grandparent, grandparent, parent, and current resources, respectively.
        Parameters:
        capability - the capability referencing the specified requirement
        requirement - the requirement of the specified capability
        requirementNameResolver - function for resolving the dynamic components of the requirement name