public abstract class AbstractActionMetadataProvider extends Object implements ActionMetadataProvider
ActionMetadataProvider
register
metadata in an HashMap
.ActionMetadataProvider.MetadataKey
Constructor and Description |
---|
AbstractActionMetadataProvider() |
Modifier and Type | Method and Description |
---|---|
Object |
getValue(RestAction<?> action,
MetadataType metadataType)
Retrieve metadata for the given action and
MetadataType pair. |
protected void |
register(Class<? extends RestAction> actionClass,
MetadataType metadataType,
Object value) |
public Object getValue(RestAction<?> action, MetadataType metadataType)
ActionMetadataProvider
MetadataType
pair.getValue
in interface ActionMetadataProvider
action
- The action for which to retrieve metadata.metadataType
- The kind of metadata to retrieve.null
if there is no match.protected void register(Class<? extends RestAction> actionClass, MetadataType metadataType, Object value)
Copyright © 2010–2014 Arcbees. All rights reserved.