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 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.Builder<T> builder​(RuntimeCapability<Void> capability,
                                                                          org.wildfly.service.descriptor.UnaryServiceDescriptor<T> requirement,
                                                                          UnaryCapabilityNameResolver requirementNameResolver)
        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
        requirementNameResolver - function for resolving the dynamic components of the requirement name
      • builder

        static <T> ResourceCapabilityReferenceRecorder.Builder<T> builder​(RuntimeCapability<Void> capability,
                                                                          org.wildfly.service.descriptor.BinaryServiceDescriptor<T> requirement,
                                                                          BinaryCapabilityNameResolver requirementNameResolver)
        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
        requirementNameResolver - function for resolving the dynamic components of the requirement name
      • builder

        static <T> ResourceCapabilityReferenceRecorder.Builder<T> builder​(RuntimeCapability<Void> capability,
                                                                          org.wildfly.service.descriptor.TernaryServiceDescriptor<T> requirement,
                                                                          TernaryCapabilityNameResolver requirementNameResolver)
        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
        requirementNameResolver - function for resolving the dynamic components of the requirement name