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(List<TokenContentsJsonSerializer> typeElements)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenContentsJsonSerializer
getFormatter(String type)
protected 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(List<TokenContentsJsonSerializer> typeElements)
-
-
Method Detail
-
getId
protected String getId(TokenContentsJsonSerializer from)
- Specified by:
getId
in classTypesRegistryBase<TokenContentsJsonSerializer>
-
getFormatter
public TokenContentsJsonSerializer getFormatter(String type)
-
-