T - the type of the runtime API object exposed by the capabilitypublic class RuntimeCapability<T> extends AbstractCapability
| Constructor and Description |
|---|
RuntimeCapability(String name,
T runtimeAPI,
Set<String> requirements)
Creates a new capability
|
RuntimeCapability(String name,
T runtimeAPI,
Set<String> requirements,
Set<String> optionalRequirements)
Creates a new capability
|
RuntimeCapability(String name,
T runtimeAPI,
String... requirements)
Creates a new capability
|
| Modifier and Type | Method and Description |
|---|---|
T |
getRuntimeAPI()
Object encapsulating the API exposed by this capability to other capabilities that require it, if it does
expose such an API.
|
equals, getName, getOptionalRequirements, getRequirements, hashCode, toStringpublic RuntimeCapability(String name, T runtimeAPI, Set<String> requirements, Set<String> optionalRequirements)
name - the name of the capability. Cannot be nullruntimeAPI - implementation of the API exposed by this capability to other capabilities. May be nullrequirements - names of other capabilities upon which this capability has a hard requirement. May be nulloptionalRequirements - names of other capabilities upon which this capability has an optional requirement. May be nullpublic RuntimeCapability(String name, T runtimeAPI, Set<String> requirements)
name - the name of the capability. Cannot be nullruntimeAPI - implementation of the API exposed by this capability to other capabilities. May be nullrequirements - names of other capabilities upon which this capability has a hard requirement. May be nullpublic RuntimeCapability(String name, T runtimeAPI, String... requirements)
name - the name of the capability. Cannot be nullruntimeAPI - implementation of the API exposed by this capability to other capabilities. May be nullrequirements - names of other capabilities upon which this capability has a hard requirement. May be nullpublic T getRuntimeAPI()
null if the capability exposes no API to other capabilitiesCopyright © 2015 JBoss by Red Hat. All rights reserved.