public class BaseConnector<T extends PushConnector<T>> extends Object implements PushConnector<T>
| Modifier and Type | Field and Description |
|---|---|
protected Prepared |
params |
protected static String |
PREFIX |
protected Set<String> |
required |
| Constructor and Description |
|---|
BaseConnector(OutputType<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
exists(String paramName)
Check if a param has already been set with the given name
|
static PushConnector |
fromMap(OutputType<PushConnector> ptype,
Map<String,Object> params) |
Prepared |
parameters()
Every push connector has a set of output parameters used to configure the destination.
|
protected T |
putAll(Map<String,Object> params) |
protected T |
setParam(String paramName,
String value) |
protected void |
setup(T ref,
String... requiredParams)
To make it convenient for all sub-types to just return the results of setParam
the sub type should call setup passing it's this reference
|
OutputType<T> |
type() |
protected static final String PREFIX
protected final Prepared params
public BaseConnector(OutputType<T> type)
public static PushConnector fromMap(OutputType<PushConnector> ptype, Map<String,Object> params)
protected void setup(T ref, String... requiredParams)
ref - "this" in any sub typeprotected boolean exists(String paramName)
paramName - the name to check forpublic Prepared parameters()
PushConnectorparameters in interface PushConnector<T extends PushConnector<T>>public OutputType<T> type()
type in interface PushConnector<T extends PushConnector<T>>Copyright © 2015. All Rights Reserved.