Class MetadataImpl<T>
- java.lang.Object
-
- org.jboss.weld.bootstrap.spi.helpers.MetadataImpl<T>
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOCATION_NOT_AVAILABLE
-
Constructor Summary
Constructors Constructor Description MetadataImpl(T value)
MetadataImpl(T value, String location)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> MetadataImpl<T>
from(T value)
String
getLocation()
The location of the metadata, used in error and log messagesT
getValue()
The metadata valueString
toString()
-
-
-
Field Detail
-
LOCATION_NOT_AVAILABLE
public static final String LOCATION_NOT_AVAILABLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MetadataImpl
public MetadataImpl(T value)
- Parameters:
value
- type of metadata that this class holds
-
-
Method Detail
-
from
public static <T> MetadataImpl<T> from(T value)
-
getLocation
public String getLocation()
Description copied from interface:Metadata
The location of the metadata, used in error and log messages- Specified by:
getLocation
in interfaceMetadata<T>
- Returns:
- location of the metadata, used in error and log messages
-
-