public class DriverScript extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DriverScript.Kind
Driver kind (source / drain).
|
Modifier and Type | Field and Description |
---|---|
static String |
PREFIX_DRAIN
Prefix of property keys about drain drivers.
|
static String |
PREFIX_SOURCE
Prefix of property keys about source drivers.
|
Constructor and Description |
---|
DriverScript(String resource,
Map<String,String> configuration)
Creates a new instance.
|
DriverScript(String resource,
Map<String,String> configuration,
Set<String> parameterNames)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfiguration()
Returns the configuration for this driver.
|
Set<String> |
getParameterNames()
Returns the required parameter names.
|
String |
getResourceName()
Returns the name of target resource.
|
public static final String PREFIX_SOURCE
public static final String PREFIX_DRAIN
public DriverScript(String resource, Map<String,String> configuration)
resource
- the name of target resourceconfiguration
- configurations for this driverIllegalArgumentException
- if any parameter is null
public DriverScript(String resource, Map<String,String> configuration, Set<String> parameterNames)
resource
- the name of target resourceconfiguration
- configurations for this driverparameterNames
- required parameter namesIllegalArgumentException
- if any parameter is null
public String getResourceName()
resource name
defined in profile.public Map<String,String> getConfiguration()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.