Class JsonFormatterFacilitiesRegistry
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.TypesRegistryBase<TokenContentsJsonSerializer>
-
- pl.edu.icm.unity.engine.api.utils.json.JsonFormatterFacilitiesRegistry
-
@Component public class JsonFormatterFacilitiesRegistry extends TypesRegistryBase<TokenContentsJsonSerializer>
Maintains a simple registry of availableTokenContentsJsonSerializer
ies.- Author:
- P. Piernik
-
-
Constructor Summary
Constructors Constructor Description JsonFormatterFacilitiesRegistry(java.util.List<TokenContentsJsonSerializer> typeElements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenContentsJsonSerializer
getFormatter(java.lang.String type)
protected java.lang.String
getId(TokenContentsJsonSerializer from)
-
Methods inherited from class pl.edu.icm.unity.engine.api.utils.TypesRegistryBase
getAll, getByName, getByNameOptional
-
-
-
-
Constructor Detail
-
JsonFormatterFacilitiesRegistry
@Autowired public JsonFormatterFacilitiesRegistry(java.util.List<TokenContentsJsonSerializer> typeElements)
-
-
Method Detail
-
getId
protected java.lang.String getId(TokenContentsJsonSerializer from)
- Specified by:
getId
in classTypesRegistryBase<TokenContentsJsonSerializer>
-
getFormatter
public TokenContentsJsonSerializer getFormatter(java.lang.String type)
-
-