Class RequirementRegistration
java.lang.Object
org.jboss.as.controller.capability.registry.RequirementRegistration
- Direct Known Subclasses:
RuntimeRequirementRegistration
Encapsulates the registration information for a requirement for a capability.
- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext) protectedRequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext, RegistrationPoint registrationPoint) Creates a new requirement registration.protectedRequirementRegistration(String requiredName, CapabilityId dependentId) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal booleanGets the registration point that been associated with the registration for the longest period.intGet all registration points associated with this registration.final inthashCode()booleanremoveRegistrationPoint(RegistrationPoint toRemove)
-
Constructor Details
-
RequirementRegistration
public RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext) -
RequirementRegistration
-
RequirementRegistration
protected RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext, RegistrationPoint registrationPoint) Creates a new requirement registration.- Parameters:
requiredName- the name of the required capabilitydependentName- the name of the capability that requiresrequiredNamedependentContext- context in which the dependent capability existsregistrationPoint- point in the configuration model that triggered the requirement
-
RequirementRegistration
Copy constructor.- Parameters:
toCopy- the registration to copy.
-
-
Method Details
-
getRequiredName
-
getDependentName
-
getDependentContext
-
getDependentId
-
equals
-
hashCode
public final int hashCode() -
getOldestRegistrationPoint
Gets the registration point that been associated with the registration for the longest period.- Returns:
- the initial registration point, or
nullif there are no longer any registration points
-
getRegistrationPoints
Get all registration points associated with this registration.- Returns:
- all registration points. Will not be
nullbut may be empty
-
addRegistrationPoint
-
removeRegistrationPoint
-
getRegistrationPointCount
public int getRegistrationPointCount()
-