public class PluginConfiguration extends AbstractPluginFactory
IConfigurationProvider, i.e.
type='myclass.MyConfigurationProvider';Configuration, i.e.
factory="myclass.Any" method="getConfig".
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_FACTORY
Feature to set configuration factory class.
|
static String |
FEATURE_METHOD
Feature to set method factory name.
|
static String |
FEATURE_TYPE
Feature to set configuration provider class name.
|
static String |
SESSION_CONFIGURATION
Default configuration name.
|
factory, method, typeeval, valuescopenameFEATURE_CONDITION, FEATURE_NORMALIZED, FEATURE_NORMALIZER, FEATURE_SLEEP, FEATURE_THREADSAFE, FEATURE_TIMEOUT, FEATURE_WAITparameters| Constructor and Description |
|---|
PluginConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
changeUrl(IContext context,
org.hibernate.cfg.Configuration cfg)
Change URL if thread safe is true.
|
ENext |
doStart(IContext context,
IResultSet result) |
static org.hibernate.cfg.Configuration |
getConfiguration(IContext context,
String name)
Gets the configuration object bound to the environment with a given name.
|
void |
initialize(IContext context) |
getActionType, getFactory, getMethod, getType, setFactory, setMethod, setTypegetValue, getValue, isEval, setEval, setValuegetScope, saveGlobal, saveLocal, saveStrict, setScopegetName, setNamecopy, doEnd, getCondition, getConditionModel, getNormalized, getNormalized, getNormalizer, getParent, getSleep, getSleepModel, getThreadsafe, getTimeout, getTimeoutModel, getWait, getWaitModel, setCondition, setConditionModel, setNormalized, setNormalizer, setParent, setSleep, setSleepModel, setThreadsafe, setTimeout, setTimeoutModel, setWait, setWaitModel, toStringgetParameters, setParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetParameters, setParameterspublic static final String SESSION_CONFIGURATION
public static final String FEATURE_TYPE
public static final String FEATURE_FACTORY
public static final String FEATURE_METHOD
public void initialize(IContext context) throws PluginException
initialize in interface IPlugininitialize in class AbstractPluginPluginExceptionpublic ENext doStart(IContext context, IResultSet result) throws PluginException
doStart in interface IPlugindoStart in class AbstractPluginPluginExceptionprotected void changeUrl(IContext context, org.hibernate.cfg.Configuration cfg)
context - The context.cfg - The configuration.public static org.hibernate.cfg.Configuration getConfiguration(IContext context, String name) throws PluginException
context - The context.name - The presumed name of configuration.PluginException - On configuration lookup error.Copyright © 2017. All rights reserved.