Class CapabilityResolutionContext.AttachmentKey<T>
- java.lang.Object
-
- org.jboss.as.controller.capability.registry.CapabilityResolutionContext.AttachmentKey<T>
-
- Type Parameters:
T
- the attachment value type
- Enclosing class:
- CapabilityResolutionContext
public static final class CapabilityResolutionContext.AttachmentKey<T> extends Object
An attachment key instance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
cast(Object value)
Cast the value to the type of this attachment key.static <T> CapabilityResolutionContext.AttachmentKey<T>
create(Class<? super T> valueClass)
Construct a new simple attachment key.
-
-
-
Method Detail
-
cast
public T cast(Object value)
Cast the value to the type of this attachment key.- Parameters:
value
- the value- Returns:
- the cast value
-
create
public static <T> CapabilityResolutionContext.AttachmentKey<T> create(Class<? super T> valueClass)
Construct a new simple attachment key.- Type Parameters:
T
- the attachment type- Parameters:
valueClass
- the value class- Returns:
- the new instance
-
-