@Component public class SerializerUtil extends Object implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
SerializerUtil() |
Modifier and Type | Method and Description |
---|---|
void |
buildFedoraObjectSerializersMap()
Hook into Spring to get the list of all FedoraObjectSerializers that
were (supposedly) component scanned, and register them in our own
map.
|
Map<String,FedoraObjectSerializer> |
getFedoraObjectSerializers()
Get the whole list of FedoraObjectSerializers
|
FedoraObjectSerializer |
getSerializer(String format)
Get a Fedora Object Serializer by its key
|
Set<String> |
keySet()
Get the list of Fedora serializer keys
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public SerializerUtil()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public Set<String> keySet()
public FedoraObjectSerializer getSerializer(String format)
format
- public Map<String,FedoraObjectSerializer> getFedoraObjectSerializers()
@PostConstruct public void buildFedoraObjectSerializersMap()
Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.