org.robokind.api.common.services.addon
Class DefaultAddOnDriver<AddOn,Config>

java.lang.Object
  extended by org.robokind.api.common.services.addon.DefaultAddOnDriver<AddOn,Config>
All Implemented Interfaces:
ServiceAddOnDriver<AddOn>

public class DefaultAddOnDriver<AddOn,Config>
extends Object
implements ServiceAddOnDriver<AddOn>

Author:
Matthew Stevenson

Constructor Summary
DefaultAddOnDriver(org.osgi.framework.BundleContext context, VersionProperty serviceVersion, VersionProperty configFormat, ConfigurationAdapter<AddOn,Config> configAdapter)
           
 
Method Summary
 VersionProperty getConfigurationFormat()
           
 Class<AddOn> getServiceClass()
           
 VersionProperty getServiceVersion()
           
 ServiceAddOn<AddOn> loadAddOn(File file)
           
 boolean writeServiceConfig(AddOn addon, File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAddOnDriver

public DefaultAddOnDriver(org.osgi.framework.BundleContext context,
                          VersionProperty serviceVersion,
                          VersionProperty configFormat,
                          ConfigurationAdapter<AddOn,Config> configAdapter)
Method Detail

getServiceVersion

public VersionProperty getServiceVersion()
Specified by:
getServiceVersion in interface ServiceAddOnDriver<AddOn>

getConfigurationFormat

public VersionProperty getConfigurationFormat()
Specified by:
getConfigurationFormat in interface ServiceAddOnDriver<AddOn>

getServiceClass

public Class<AddOn> getServiceClass()
Specified by:
getServiceClass in interface ServiceAddOnDriver<AddOn>

loadAddOn

public ServiceAddOn<AddOn> loadAddOn(File file)
                              throws Exception
Specified by:
loadAddOn in interface ServiceAddOnDriver<AddOn>
Throws:
Exception

writeServiceConfig

public boolean writeServiceConfig(AddOn addon,
                                  File file)
                           throws Exception
Specified by:
writeServiceConfig in interface ServiceAddOnDriver<AddOn>
Throws:
Exception


Copyright © 2011-2013. All Rights Reserved.