Class MetadataImpl<T>
java.lang.Object
org.jboss.weld.bootstrap.spi.helpers.MetadataImpl<T>
- Type Parameters:
T- the type of metadata
- All Implemented Interfaces:
Metadata<T>
Basic implementation of
Metadata-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant used to declare that the metadata location is not available -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> MetadataImpl<T>from(T value) ConstructsMetadatafrom given value.The location of the metadata, used in error and log messagesgetValue()The metadata valuetoString()
-
Field Details
-
LOCATION_NOT_AVAILABLE
Constant used to declare that the metadata location is not available- See Also:
-
-
Constructor Details
-
MetadataImpl
- Parameters:
value- type of metadata that this class holds
-
MetadataImpl
- Parameters:
value- type of metadata that this class holdslocation- String representation of where is this metadata stored
-
-
Method Details
-
from
ConstructsMetadatafrom given value. Metadata location is set toLOCATION_NOT_AVAILABLE- Type Parameters:
T- metadata type- Parameters:
value- metadata value- Returns:
- instance of metadata
-
getLocation
Description copied from interface:MetadataThe location of the metadata, used in error and log messages- Specified by:
getLocationin interfaceMetadata<T>- Returns:
- location of the metadata, used in error and log messages
-
getValue
Description copied from interface:MetadataThe metadata value -
toString
-