public class ExecServiceProvider extends AbstractFileServiceProvider
| Constructor and Description |
|---|
ExecServiceProvider()
Creates a new factory using the default configuration directory.
|
ExecServiceProvider(File directory,
boolean includeGenericExecService)
Creates a new factory that reads from the given directory.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Service> |
additionalServices()
Creates additional services that are not read from files.
|
Service |
createService(File file)
Creates a service from the given file.
|
String |
getName()
Returns the name of the service provider.
|
createServices, getDefaultConfigurationDirectorypublic ExecServiceProvider(File directory, boolean includeGenericExecService)
If the directory does not exist, it simply returns an empty set.
directory - a directoryincludeGenericExecService - whether to include the general purpose
exec servicepublic ExecServiceProvider()
public String getName()
ServiceProviderpublic Service createService(File file) throws Exception
AbstractFileServiceProviderImplementors of this method need not to care about logging and service registration.
createService in class AbstractFileServiceProviderfile - a file in the configuration directoryException - if there is a problem creating the service from the filepublic Collection<Service> additionalServices()
AbstractFileServiceProviderImplementors need not to care about logging and service registration.
additionalServices in class AbstractFileServiceProviderCopyright © 2015. All rights reserved.