public class JDBCServiceProvider extends AbstractFileServiceProvider
Constructor and Description |
---|
JDBCServiceProvider()
Creates a new factory that reads from the default directory.
|
JDBCServiceProvider(File directory)
Creates a new factory that reads from the given directory.
|
Modifier and Type | Method and Description |
---|---|
Service |
createService(File file)
Creates a service from the given file.
|
String |
getName()
Returns the name of the service provider.
|
additionalServices, createServices, getDefaultConfigurationDirectory
public JDBCServiceProvider(File directory)
If the directory does not exist, it creates it and returns an empty set.
directory
- a directorypublic JDBCServiceProvider()
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 String getName()
ServiceProvider
Copyright © 2015. All rights reserved.