public class PVARPCServiceProvider extends AbstractFileServiceProvider
Constructor and Description |
---|
PVARPCServiceProvider()
Creates a new provider that reads from the default configuration directory.
|
PVARPCServiceProvider(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 PVARPCServiceProvider(File directory)
If the directory does not exist, it simply returns an empty set.
directory
- a directorypublic PVARPCServiceProvider()
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 fileCopyright © 2015. All rights reserved.