Class 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
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mapMarshaller

        @Autowired
        @Qualifier("jaxb2XmlModelMarshallerMap")
        private org.springframework.oxm.jaxb.Jaxb2Marshaller mapMarshaller
      • mapPluginLoaders

        @Autowired(required=false)
        private java.util.List<IMapPluginLoader> mapPluginLoaders
    • Constructor Detail

      • MapProviderService

        public MapProviderService()
    • 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)