Class MapProviderService
- java.lang.Object
-
- ch.sahits.game.openpatrician.model.server.MapProviderService
-
public class MapProviderService extends java.lang.Object
Service profiding access to map details, packed in the game an also in the plugins.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Feb 14, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private org.springframework.oxm.jaxb.Jaxb2Marshaller
mapMarshaller
private java.util.List<IMapPluginLoader>
mapPluginLoaders
-
Constructor Summary
Constructors Constructor Description MapProviderService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getMaps()
Retrieve the map data consisting of key value pairs, where the key is the text key with which the map should be represented and the value the path to the map definition XML on the classpath.private javax.xml.transform.Source
getSourceFromFile(java.lang.String fileName)
private void
verifyMapDimenstions(java.lang.String mapDefinition)
-
-
-
Field Detail
-
mapMarshaller
@Autowired @Qualifier("jaxb2XmlModelMarshallerMap") private org.springframework.oxm.jaxb.Jaxb2Marshaller mapMarshaller
-
mapPluginLoaders
@Autowired(required=false) private java.util.List<IMapPluginLoader> mapPluginLoaders
-
-
Method Detail
-
getMaps
public java.util.Map<java.lang.String,java.lang.String> getMaps()
Retrieve the map data consisting of key value pairs, where the key is the text key with which the map should be represented and the value the path to the map definition XML on the classpath.- Returns:
- map of the text key of the map and the xml map definition path.
-
verifyMapDimenstions
private void verifyMapDimenstions(java.lang.String mapDefinition)
-
getSourceFromFile
private javax.xml.transform.Source getSourceFromFile(java.lang.String fileName)
-
-