Class DataProtocolService
- java.lang.Object
-
- fr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
- fr.ens.biologie.genomique.eoulsan.data.protocols.DataProtocolService
-
public class DataProtocolService extends fr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
This class define a service to retrieve a DataProtocol.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
accept(Class<?> clazz)
FileDataProtocol
getDefaultProtocol()
Get the default protocol.static DataProtocolService
getInstance()
Retrieve the singleton static instance of DataProtocolService.protected String
getMethodName()
com.google.common.collect.ListMultimap<String,String>
getServiceClasses()
protected boolean
isCache()
boolean
isService(String serviceName)
DataProtocol
newService(String serviceName)
-
-
-
Method Detail
-
getInstance
public static DataProtocolService getInstance()
Retrieve the singleton static instance of DataProtocolService.- Returns:
- A DataProtocol instance
-
isCache
protected boolean isCache()
- Overrides:
isCache
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
getDefaultProtocol
public FileDataProtocol getDefaultProtocol()
Get the default protocol.- Returns:
- the default DataProtocol
-
newService
public DataProtocol newService(String serviceName)
- Overrides:
newService
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
getServiceClasses
public com.google.common.collect.ListMultimap<String,String> getServiceClasses()
- Overrides:
getServiceClasses
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
isService
public boolean isService(String serviceName)
- Overrides:
isService
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
accept
protected boolean accept(Class<?> clazz)
- Specified by:
accept
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
getMethodName
protected String getMethodName()
- Specified by:
getMethodName
in classfr.ens.biologie.genomique.kenetre.util.ServiceNameLoader<DataProtocol>
-
-