Class CapabilityRegistration<C extends Capability>
java.lang.Object
org.jboss.as.controller.capability.registry.CapabilityRegistration<C>
- Type Parameters:
C- the specific type of capability associated with this registration
- All Implemented Interfaces:
Comparable<CapabilityRegistration<C>>
- Direct Known Subclasses:
RuntimeCapabilityRegistration
public class CapabilityRegistration<C extends Capability>
extends Object
implements Comparable<CapabilityRegistration<C>>
Encapsulates the registration information for a
capability.- Author:
- Brian Stansberry (c) 2014 Red Hat Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionCapabilityRegistration(C capability, CapabilityScope scope) CapabilityRegistration(C capability, CapabilityScope scope, RegistrationPoint registrationPoint) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintbooleanGets the capability.Gets the scope in which the capability is registered.Gets the registration point that been associated with the registration for the longest period.intGet all registration points associated with this registration.inthashCode()boolean
-
Constructor Details
-
CapabilityRegistration
-
CapabilityRegistration
public CapabilityRegistration(C capability, CapabilityScope scope, RegistrationPoint registrationPoint) -
CapabilityRegistration
Copy constructor.- Parameters:
toCopy- the registration to copy. Cannot benull
-
-
Method Details
-
getCapability
Gets the capability.- Returns:
- the capability. Will not return
null
-
getCapabilityScope
Gets the scope in which the capability is registered.- Returns:
- the capability scope. Will not return
null
-
getCapabilityName
-
getCapabilityId
-
equals
-
hashCode
public 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() -
compareTo
- Specified by:
compareToin interfaceComparable<C extends Capability>
-