Class CapabilityReference

java.lang.Object
org.jboss.as.clustering.controller.AbstractCapabilityReference
org.jboss.as.clustering.controller.CapabilityReference
All Implemented Interfaces:
org.jboss.as.controller.CapabilityReferenceRecorder, org.jboss.as.controller.Feature

public class CapabilityReference extends AbstractCapabilityReference
CapabilityReferenceRecorder that delegates to Capability.resolve(org.jboss.as.controller.PathAddress) to generate the name of the dependent capability.
Author:
Paul Ferraro
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder

    org.jboss.as.controller.CapabilityReferenceRecorder.CompositeAttributeDependencyRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.ContextDependencyRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.DefaultCapabilityReferenceRecorder, org.jboss.as.controller.CapabilityReferenceRecorder.ResourceCapabilityReferenceRecorder
  • Constructor Summary

    Constructors
    Constructor
    Description
    CapabilityReference(Capability capability, BinaryRequirement requirement, Attribute parentAttribute)
    Creates a new reference between the specified capability and the specified requirement
    CapabilityReference(Capability capability, BinaryRequirement requirement, org.jboss.as.controller.PathElement path)
    Creates a new reference between the specified capability and the specified requirement
    Creates a new reference between the specified capability and the specified requirement
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... values)
     
    getRequirementPatternSegments(String name, org.jboss.as.controller.PathAddress address)
     
    void
    removeCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... values)
     

    Methods inherited from class org.jboss.as.clustering.controller.AbstractCapabilityReference

    equals, getBaseDependentName, getBaseRequirementName, getDependentName, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.as.controller.CapabilityReferenceRecorder

    isDynamicDependent

    Methods inherited from interface org.jboss.as.controller.Feature

    getStability
  • Constructor Details

    • CapabilityReference

      public CapabilityReference(Capability capability, UnaryRequirement 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
    • CapabilityReference

      public CapabilityReference(Capability capability, BinaryRequirement requirement, org.jboss.as.controller.PathElement path)
      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
    • CapabilityReference

      public CapabilityReference(Capability capability, BinaryRequirement requirement, Attribute parentAttribute)
      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
      parentAttribute - the attribute containing the value of the parent dynamic component of the requirement
  • Method Details

    • addCapabilityRequirements

      public void addCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... values)
    • removeCapabilityRequirements

      public void removeCapabilityRequirements(org.jboss.as.controller.OperationContext context, org.jboss.as.controller.registry.Resource resource, String attributeName, String... values)
    • getRequirementPatternSegments

      public String[] getRequirementPatternSegments(String name, org.jboss.as.controller.PathAddress address)