@NoInstantiate public final class LoaderDescriber extends Object
ExtensionModel
,
ClassLoader
and any other descriptor that may arise in a future of ArtifactPluginDescriptor
.
Each LoaderDescriber
will have an ID that will be used to discover any loader that's responsible of working
with the current set of attributes. It's up to each loader to validate the types, size and all that matters around
the attributes.Constructor and Description |
---|
LoaderDescriber(String id)
Creates an immutable implementation of
LoaderDescriber |
Modifier and Type | Method and Description |
---|---|
void |
addAttributes(Map<String,Object> attributes)
Stores all the entries of
attributes under in the attributes internal state. |
Map<String,Object> |
getAttributes() |
String |
getId() |
public LoaderDescriber(String id)
LoaderDescriber
id
- ID of the descriptor. Not blank nor null.public String getId()
public Map<String,Object> getAttributes()
getId()
, where it's up to the loader's
responsibilities to determine if the current structure of the values (Object
) does match with the expected
types.
That implies each loader must evaluate on the attributes' values to be 100% sure it were formed correctly.Copyright © 2018. All rights reserved.