org.robokind.impl.motion.config
Class RobotConfigXMLStreamLoader

java.lang.Object
  extended by org.robokind.impl.motion.config.RobotConfigXMLStreamLoader
All Implemented Interfaces:
ConfigurationLoader<ServoRobotConfig,InputStream>

public class RobotConfigXMLStreamLoader
extends Object
implements ConfigurationLoader<ServoRobotConfig,InputStream>

Author:
Matthew Stevenson

Constructor Summary
RobotConfigXMLStreamLoader(org.osgi.framework.BundleContext context)
           
 
Method Summary
 Class<ServoRobotConfig> getConfigurationClass()
           
 VersionProperty getConfigurationFormat()
           
 Class<InputStream> getParameterClass()
           
 ServoRobotConfig loadConfiguration(InputStream param)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RobotConfigXMLStreamLoader

public RobotConfigXMLStreamLoader(org.osgi.framework.BundleContext context)
Method Detail

getConfigurationFormat

public VersionProperty getConfigurationFormat()
Specified by:
getConfigurationFormat in interface ConfigurationLoader<ServoRobotConfig,InputStream>

loadConfiguration

public ServoRobotConfig loadConfiguration(InputStream param)
                                   throws org.apache.commons.configuration.ConfigurationException
Specified by:
loadConfiguration in interface ConfigurationLoader<ServoRobotConfig,InputStream>
Throws:
org.apache.commons.configuration.ConfigurationException

getConfigurationClass

public Class<ServoRobotConfig> getConfigurationClass()
Specified by:
getConfigurationClass in interface ConfigurationLoader<ServoRobotConfig,InputStream>

getParameterClass

public Class<InputStream> getParameterClass()
Specified by:
getParameterClass in interface ConfigurationLoader<ServoRobotConfig,InputStream>


Copyright © 2011-2013. All Rights Reserved.