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, getDefaultConfigurationDirectory
public 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()
ServiceProvider
public Service createService(File file) throws Exception
AbstractFileServiceProvider
Implementors of this method need not to care about logging and service registration.
createService
in class AbstractFileServiceProvider
file
- a file in the configuration directoryException
- if there is a problem creating the service from the filepublic Collection<Service> additionalServices()
AbstractFileServiceProvider
Implementors need not to care about logging and service registration.
additionalServices
in class AbstractFileServiceProvider
Copyright © 2015. All rights reserved.