| Modifier and Type | Class and Description |
|---|---|
class |
PropertyNotSetException
Configuration exception thrown, if a required property is not
set in the configuration.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ConfigurationManager |
ConfigurationManager.createChild(java.lang.String instanceName,
java.lang.String componentType)
Creates a new configuration manager having all fields set to the same values as this
configuration manager.
|
void |
ConfigurationManager.dumpConfiguration()
Dumps the root configuration to the log of this configuration manager with log level
Level.FINE. |
protected Configuration |
ConfigurationManager.getConfiguration(java.lang.String instanceName)
Gets a configuration for the designated instance name which is a new
Configuration-object. |
Configuration |
ConfigurationManager.getConfiguration(java.lang.String instanceName,
java.lang.String componentType)
Loads the configuration of the designated instance of the designated component type.
|
protected abstract Configuration |
ConfigurationManager.getRuntimeConfiguration(java.lang.String instanceName)
Gets a runtime configuration for the designated instance name which is a
Configuration-object that allows for storing the configuration values, for
instance as file or in a database. |
protected void |
LoggerManager.initialiseFileLogging(Configuration configuration,
java.io.File globalLogDir)
Initialises the file logging based on the designated configuration.
|
protected void |
ConfigurationPropertyProvider.initialiseProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Initialises, checks and sets the values of the global properties as well as
the substituted variables.
|
protected void |
PropertyProvider.initialiseProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Initialises, checks and sets the values of the global properties as well as
the substituted variables.
|
protected Configuration |
ConfigurationManager.initRootConfiguration(java.lang.String rootConfFileName,
boolean eager,
ConfigurationPropertyProvider provider)
Loads the root configuration from the configuration directories, initialises the logging based
on this configuration and the logger manager of this configuration manager and dumps the
configuration if desired.
|
protected Configuration |
ConfigurationManager.loadAndDump(Configuration conf,
boolean eager,
boolean debug)
Loads the designated configuration completely, that is the externally referenced configuration
files will be integrated appropriately in the designated configuration.
|
protected CompositeConfiguration |
ConfigurationManager.loadConfigurationFromFile(java.lang.String instanceName,
java.lang.String fileName,
boolean root)
Loads configuration values out of the configuration directories including the runtime and the
provided configuration in the specified order into a newly created composite configuration.
|
protected Configuration |
ConfigurationManager.loadReferencedConfigurations(Configuration rootConf)
Eagerly loads all referenced configuration files and puts them in the root configurations per
configuration directory using the appropriate prefix.
|
protected void |
ConfigurationValidator.rebuke(java.lang.String description)
Constructs a
ConfigurationException and throws it. |
protected void |
ConfigurationValidator.rebukeIllegalValue(Configuration configuration,
java.lang.String propertyName,
java.lang.String shortDescription)
Constructs a
ConfigurationException and throws it. |
protected void |
ConfigurationManager.setConfigurationDirectories(ConfigurationPropertyProvider provider)
Sets the configuration directories so that configurations are loaded in the appropriate order,
that is, configuration directories before and after the provided configuration.
|
protected abstract void |
ConfigurationValidator.validate(Configuration configuration)
Validates the configuration in the given
Configuration object. |
static Configuration |
ConfigurationDescriptionTools.validateConfiguration(Configuration instConf,
java.lang.Class<?> implementingClass,
boolean includeIfaces,
java.lang.String instanceName)
Validates the given configuration against the
ConfigurationDescription of the designated class its parent classes
and optionally also its (parent) interfaces. |
static Configuration |
ConfigurationDescriptionTools.validateConfiguration(Configuration instConf,
java.lang.Class<?> implementingClass,
java.lang.String instanceName)
Validates the given configuration against the
ConfigurationDescription of the given class. |
| Constructor and Description |
|---|
ConfigurationManager(java.lang.String rootConfFileName,
Configuration providedConfiguration,
boolean eager,
ConfigurationPropertyProvider provider,
LoggerManager loggerManager)
Creates a new configuration manager using the configuration
properties of the designated provider and either a root configuration
loaded from the designated file name, or the designated provided
configuration or a mixture of both respecting the order of the
configurations and configuration directories from the provider.
|
ConfigurationPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new
ConfigurationPropertyProvider and parses all
corresponding global properties from the designated map and/or sets the
properties appropriately. |
ConfigurationPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties,
boolean useDefaultConfDir,
boolean defaultDsForRtConf)
Creates a new
ConfigurationPropertyProvider and parses all
corresponding global properties from the designated map and/or sets the
properties appropriately. |
ConfigurationPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties,
boolean useDefaultConfDir,
java.lang.String bundleConfigSubdir,
boolean defaultDsForRtConf)
Creates a new
ConfigurationPropertyProvider and parses all corresponding global
properties from the designated map and/or sets the properties appropriately. |
ConfigurationPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String bundleConfigSubdir)
Creates a new
ConfigurationPropertyProvider and parses all corresponding global
properties from the designated map and/or sets the properties appropriately. |
ConfigurationPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String bundleConfigSubdir,
boolean defaultDsForRtConf)
Creates a new
ConfigurationPropertyProvider and parses all corresponding global
properties from the designated map and/or sets the properties appropriately. |
PropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties)
Creates a new
PropertyProvider and parses all corresponding
global properties from the designated map and/or sets the properties
appropriately. |
ServletConfigurationPropertyProvider(javax.servlet.ServletConfig config)
Creates a new
ServletConfigurationPropertyProvider and parses
all corresponding properties from the init parameter of the designated
servlet configuration and the system properties. |
ServletConfigurationPropertyProvider(javax.servlet.ServletContext context)
Creates a new
ServletConfigurationPropertyProvider and parses
all corresponding properties from the init parameter of the designated
servlet context and the system properties. |
SystemPropertyProvider()
Creates a new
SystemPropertyProvider and parses all
corresponding system properties and/or sets the properties appropriately. |
SystemPropertyProvider(boolean useDefaultConfDir)
Creates a new
SystemPropertyProvider and parses all
corresponding system properties and/or sets the properties appropriately. |
SystemPropertyProvider(boolean useDefaultConfDir,
boolean defaultDsForRtConf)
Creates a new
SystemPropertyProvider and parses all
corresponding system properties and/or sets the properties appropriately. |
SystemPropertyProvider(java.util.Map<java.lang.String,java.lang.String> overrides)
Creates a new
SystemPropertyProvider and parses the properties
from the designated map. |
SystemPropertyProvider(java.util.Map<java.lang.String,java.lang.String> properties,
boolean useDefaultConfDir,
boolean defaultDsForRtConf)
Creates a new
SystemPropertyProvider by delegating directly to
the parent provider. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PluginRegistry.ConfigurationValidator.checkAllPluginTypes(Configuration configuration)
Checks whether the designated configuration declares plugin types and if
so, whether they are configured properly, that is all declared plugin
instances have an implementation class or in case of runtime plugins, the
plugin type provides a plugin classpath and a valid anonymous instance.
|
protected void |
AbstractRegistry.checkAndStoreProvidedObject(java.lang.String instanceName,
AbstractRegistry.InstanceInformation instInf)
Checks whether the designated instance that is provided as object via
injection corresponds to its declared component interface and if so, stores
it for the classloader of this class in the singleton instances.
|
protected static Configuration |
AbstractRegistry.checkConfiguration(Configuration configuration,
java.lang.String instanceName,
java.lang.Class<?> implementationClass)
Check the configuration description of the implementation class and whether
the configuration contains the necessary values.
|
protected void |
LocalServiceRegistry.ConfigurationValidator.checkForNonExportedLocal(Configuration configuration,
java.lang.String serviceType)
Checks whether the instances of the designated service type are exported
or published in the designated properties.
|
protected void |
AbstractRegistry.checkImplementingClass(java.lang.String instanceName,
java.lang.String implementingClassName)
Checks whether the implementing class has the right interface.
|
protected java.util.List<java.lang.String> |
ServiceRegistry.ConfigurationValidator.checkLicenceManager(Configuration configuration)
Checks the designated configuration for the licence manager.
|
protected void |
PluginRegistry.ConfigurationValidator.checkPluginDeclaration(Configuration configuration,
java.lang.String pluginType,
java.lang.String pluginInstance)
Checks whether there is an implementation configured for the designated
plugin instance.
|
protected void |
PluginRegistry.ConfigurationValidator.checkPluginInstances(Configuration configuration,
java.lang.String pluginType)
Checks whether the instances of the designated plugin type are configured
properly, that is they have an implementation class or in case of runtime
plugins, the plugin type provides a plugin classpath and a valid
anonymous instance.
|
protected void |
PluginRegistry.ConfigurationValidator.checkRuntimePluginDeclaration(Configuration configuration,
java.lang.String pluginType)
Checks whether the designated plugin type declaring runtime plugins ('*')
has a classpath configured.
|
protected void |
LocalServiceRegistry.checkServiceInterface(java.lang.String serviceName,
ADEPT2Service service)
Checks whether the designated service object does fulfill the
ADEPT2Service-interface appropriately. |
protected void |
AbstractRegistry.checkSupertype(java.lang.String instanceName,
java.lang.Class<?> superType,
java.lang.Class<?> subType)
Checks, if the given
subType is an assignable form of
superType. |
UrlConfigurationManager |
UrlConfigurationManager.createChild(java.lang.String instanceName,
java.lang.String componentType) |
protected <T> T |
AbstractRegistry.createInstanceForInterface(java.lang.Class<? extends T> implClass,
java.lang.Class<T> compIface,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] paramValues)
Creates an new instance of the designated class having the designated
component interface or super class.
|
protected java.lang.String |
LocalServiceRegistry.getAndCheckRequiredService(SessionToken session,
java.lang.String usingService,
java.lang.String usedServiceTypeName)
Gets the name of the used service of the designated type and for the
designated using service.
|
protected <T> T |
AbstractRegistry.getArbitrarilyNamedObject(java.lang.String instName,
Configuration instConf,
java.lang.Class<T> componentType,
java.lang.ClassLoader classLoader,
java.lang.Class<?>[] parameterTypes,
java.lang.Object[] parameterValues,
AbstractRegistry.InstantiationMode instantiationMode)
Gets an arbitrary object for the designated component instance of the
requested component type.
|
protected <T> T |
PluginRegistry.getConfiguredPlugin(SessionToken session,
java.lang.String usingInstanceName,
java.lang.Object usingInstance,
java.lang.String pluginTypeName,
java.lang.Class<T> componentType)
Retrieves the default instance of the designated plugin type.
|
protected <T> T |
PluginRegistry.getConfiguredPlugin(SessionToken session,
java.lang.String usingInstanceName,
java.lang.Object usingInstance,
java.lang.String pluginTypeName,
java.lang.Class<T> componentType,
java.lang.String pluginInstanceName)
Retrieves the plugin with the designated name of the designated type if it
is declared by the using instance or if it is declared and found as runtime
plugin.
|
protected <T> T |
LocalServiceRegistry.getConfiguredPlugin(SessionToken session,
java.lang.String usingInstanceName,
java.lang.Object usingInstance,
java.lang.String pluginTypeName,
java.lang.Class<T> componentType,
java.lang.String pluginInstanceName,
java.lang.Class<?>[] additionalParameterTypes,
java.lang.Object[] additionalParameterValues) |
protected <T> T |
PluginRegistry.getConfiguredPlugin(SessionToken session,
java.lang.String usingInstanceName,
java.lang.Object usingInstance,
java.lang.String pluginTypeName,
java.lang.Class<T> componentType,
java.lang.String pluginInstanceName,
java.lang.Class<?>[] additionalParameterTypes,
java.lang.Object[] additionalParameterValues)
Retrieves the plugin with the designated name of the designated type if it
is declared by the using instance or if it is declared and found as runtime
plugin.
|
protected <T> java.util.Map<java.lang.String,T> |
PluginRegistry.getConfiguredPlugins(SessionToken session,
java.lang.String usingInstanceName,
java.lang.Object usingInstance,
java.lang.String pluginTypeName,
java.lang.Class<T> componentType)
Retrieves all plugin instances (pre-configured and dynamic) of the
designated plugin type.
|
protected AbstractRegistry.InstanceInformation |
AbstractRegistry.getInstanceInformation(java.lang.String instanceName)
Returns the information (component type, instantiation mode and
implementation class) for the designated component instance.
|
java.lang.Class<?> |
AbstractRegistry.getInterfaceForComponentType(java.lang.String componentType)
Returns the class object of the corresponding interface / superclass, if
the component type is declared.
|
java.lang.Class<?> |
RegistryWrapper.getInterfaceForComponentType(java.lang.String componentType) |
protected <T extends ADEPT2Service> |
LocalServiceRegistry.getLocalServiceObject(SessionToken session,
java.lang.String serviceName,
java.lang.Class<T> requestedType)
Returns an instance of the designated service and of the requested type.
|
protected <T extends ADEPT2Service> |
ServiceRegistry.getLocalServiceObject(SessionToken session,
java.lang.String serviceName,
java.lang.Class<T> requestedType)
Returns an instance of the designated service if it is local, null
otherwise.
|
protected <T> T |
AbstractRegistry.getObjectForInstanceName(java.lang.String instanceName,
java.lang.Class<T> componentType)
Gets an object for the designated instance name of the requested component
type and retrieves the instantiation mode from the corresponding
configuration.
|
protected <T> T |
AbstractRegistry.getObjectForInstanceName(java.lang.String instanceName,
java.lang.Class<T> componentType,
java.lang.Class<?>[] addParameterTypes,
java.lang.Object[] addParameterValues)
Gets an object for the designated instance name of the requested component
type and retrieves the instantiation mode from the corresponding
configuration.
|
protected <T> T |
AbstractRegistry.getObjectForInstanceName(java.lang.String instanceName,
java.lang.Class<T> componentType,
java.lang.Class<?>[] addParameterTypes,
java.lang.Object[] addParameterValues,
AbstractRegistry.InstantiationMode instantiationMode)
Gets an object for the designated instance name of the requested component
type using the designated instantiation mode from the corresponding
configuration.
|
protected Configuration |
UrlConfigurationManager.getRtConfigDsFor(java.lang.String instanceName,
java.lang.String simpleDsName)
Gets the runtime configuration based on a data base table from the designated data source.
|
protected Configuration |
UrlConfigurationManager.getRuntimeConfigDataSource(java.lang.String instanceName)
Gets the runtime configuration based on a data base table from a data source that is specified
for the designated instance in the root configuration.
|
protected Configuration |
UrlConfigurationManager.getRuntimeConfigFile(java.lang.String instanceName)
Gets the runtime configuration based on a file (or URL) specified for the designated instance
in the root configuration.
|
protected Configuration |
UrlConfigurationManager.getRuntimeConfiguration(java.lang.String instanceName)
Gets a runtime configuration for the designated instance name which is a
Configuration-object that allows for storing the configuration values, for
instance as file or in a database. |
protected ServiceInformation |
LocalServiceRegistry.getServiceInformation(java.lang.String instanceName)
Returns the information (component type, instantiation mode, implementation
class, service URI, export service instances and whether to publish the
service) for the designated service instance.
|
ADEPT2Service |
LocalServiceRegistry.ServiceNameResolution.getUnstartedLocalServiceObject(java.lang.String serviceName) |
protected java.lang.String |
InstanceToInstanceRegistry.getUsedComponentInstanceNameForInstance(java.lang.String usingInstance,
java.lang.String usedComponentType)
Returns the hierarchical name of the instance of the designated type for
usage by the designated instance (specified by its instance name).
|
protected <T> T |
InstanceToInstanceRegistry.getUsedObjectForInstance(java.lang.String usingInstance,
java.lang.String usedComponentType,
java.lang.Class<T> requestedType)
Gets an object for use by the the designated component instance which
conforms to the designated component type (
usedComponentType)
and is of the requested type. |
java.lang.String |
LocalServiceRegistry.ServiceNameResolution.getUsedServiceNameFor(java.lang.String usingServiceName,
java.lang.String usedServiceType) |
protected void |
AbstractRegistry.initialiseInstantiatedObject(java.lang.Object instance,
java.lang.String compIface,
java.lang.Class<?>[] paramTypes,
java.lang.Object[] paramValues)
Initialises the designated instance having the designated component
interface or super class.
|
protected Configuration |
UrlConfigurationManager.initRootConfiguration(java.lang.String rootConfFileName,
boolean eager,
ConfigurationPropertyProvider provider)
Loads the root configuration from the configuration directories, initialises the logging based
on this configuration and the logger manager of this configuration manager and dumps the
configuration if desired.
|
protected void |
PluginRegistry.prepareRuntimePlugin(java.lang.String typeName,
java.lang.String instanceName)
Prepares the designated runtime plugin, that is, the meta configuration
providing the implementation class and an optional classpath is loaded, the
instance information is set appropriately, the classloader for the plugin
instance is created and the normal configuration is loaded.
|
protected abstract void |
AbstractRegistry.readMetaConfiguration(Configuration registryConfiguration,
java.lang.String componentType)
Reads the available meta-configuration for components loaded at runtime.
|
protected void |
PluginRegistry.readMetaConfiguration(Configuration registryConfiguration,
java.lang.String componentType) |
protected void |
AbstractRegistry.readMetaConfiguration(Configuration registryConfiguration,
java.lang.String componentType,
java.lang.String simpleInstanceName)
Reads the meta-configuration (implementing class, instantiation mode,...)
|
protected void |
LocalServiceRegistry.readMetaConfiguration(Configuration registryConfiguration,
java.lang.String serviceType,
java.lang.String simpleInstanceName)
Reads the meta information from the registry for the designated service
instance, which is:
the implementing class or the implementing object for a local service
The instantiation mode of a service is always
AbstractRegistry.InstantiationMode.SINGLETON
If something else is set in the configuration (please note that this
property may also - and in this case should - be omitted), a warning
message is logged and SINGLETON used instead. |
protected void |
ServiceRegistry.readMetaConfiguration(Configuration registryConfiguration,
java.lang.String componentType,
java.lang.String simpleInstanceName)
Reads the meta information from the registry for the designated service
instance, which is:
the implementing class or the implementing object for a local service
service
instances for exporting for a local service
publish service
flag for an exported local service
service URI for a
private remote service
The instantiation mode of a service is always
AbstractRegistry.InstantiationMode.SINGLETON
If something else is set in the configuration (please note that this
property may also - and in this case should - be omitted), a warning
message is logged and SINGLETON used instead. |
protected void |
AbstractRegistry.renewConfiguration(Configuration conf)
Renews the configuration of this registry by creating a new configuration
manager.
|
protected void |
InstanceToInstanceRegistry.renewConfiguration(Configuration conf)
Renews the configuration of this registry by renewing via the superclass
and reading of usage relations.
|
protected void |
LocalServiceRegistry.renewConfiguration(Configuration conf) |
protected void |
PluginRegistry.renewConfiguration(Configuration conf)
Renews the configuration of this registry by renewing via the superclass
and reading of default instances as well as declared plugin types.
|
protected abstract Pair<java.lang.String,java.lang.String> |
ServiceRegistry.resolveInstanceName(Configuration conf)
Gets the cluster and the instance name for this registry from the
designated configuration.
|
protected void |
LocalServiceRegistry.ConfigurationValidator.validate(Configuration configuration)
Checks that no
JDBC_DATA_SOURCE is exported. |
protected void |
PluginRegistry.ConfigurationValidator.validate(Configuration configuration)
Checks whether the designated configuration declares plugin types and if
so, whether they are configured properly, that is all declared plugin
instances have an implementation class or in case of runtime plugins, the
plugin type provides a plugin classpath and a valid anonymous instance.
|
protected void |
ServiceRegistry.ConfigurationValidator.validate(Configuration configuration) |
| Constructor and Description |
|---|
AbstractRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new registry by setting the parent registry, the configuration
and the initial configuration manager.
|
InstanceToInstanceRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new registry supporting instance to instance relations.
|
LocalServiceRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new local service registry by calling the super constructor.
|
LocalServiceRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry,
SerialisablePair<java.lang.String,java.lang.String> release)
Constructs a new service registry by calling the super constructor.
|
PluginRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new registry supporting plugins, that is components extending
an existing component.
|
ServiceRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new service registry by calling the super constructor.
|
ServiceRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry,
SerialisablePair<java.lang.String,java.lang.String> release)
Constructs a new service registry by calling the super constructor.
|
UrlConfigurationManager(java.lang.String rootConfFileName,
Configuration providedConfiguration,
boolean eager,
ConfigurationPropertyProvider provider,
LoggerManager loggerManager)
Creates a new
UrlConfigurationManager using the configuration
properties of the designated provider and either a root configuration
loaded from the designated file name, or the designated provided
configuration or a mixture of both respecting the order of the
configurations and configuration directories from the provider. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
ServiceAccess.getInterfaceForComponentType(java.lang.String componentType)
Returns the class object of the corresponding interface / superclass, if
the component type is declared.
|
void |
ConfigurableService.setConfigurationValue(SessionToken session,
java.lang.String key,
java.lang.String value)
Sets the designated configuration value.
|
| Constructor and Description |
|---|
AbstractAuthenticatedService(Configuration conf,
Registry registry,
java.lang.Class<?> cls)
Creates an ADEPT2 service with the designated registry, a logger for this and assuming that
there are no other services required except the org model manager for non-early services.
|
AbstractAuthenticatedService(Configuration conf,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.lang.Class<?> cls)
Creates an ADEPT2 service with the designated registry, a logger for this
and the designated required services.
|
AbstractConfigurableAuthenticatedService(Configuration configuration,
Registry registry,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and assuming that there are no other
services required.
|
AbstractConfigurableAuthenticatedService(Configuration configuration,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.lang.Class<?> cls)
Creates a configurable service with the designated configuration, the
designated registry, a logger for this and the designated required
services.
|
AbstractNonPrivilegedService(Configuration conf,
Registry registry,
java.lang.Class<?> cls)
Creates an ADEPT2 service with the designated registry, a logger for this
and assuming that there are no other services required.
|
AbstractNonPrivilegedService(Configuration conf,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.lang.Class<?> cls)
Creates an ADEPT2 service with the designated registry, a logger for this
and the designated required services.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
EmbeddedServletService.ConfigurationValidator.validate(Configuration conf) |
| Constructor and Description |
|---|
EmbeddedServletService(Configuration conf,
Registry registry)
Creates a new embedded servlet service using Servlet API 3.0 for deploying
servlets.
|
EmbeddedServletService(Configuration conf,
Registry registry,
java.lang.Class<?> cls)
Creates a new embedded servlet service using Servlet API 3.0 for deploying
servlets.
|
| Constructor and Description |
|---|
DefaultProcessCheckService(Configuration configuration,
Registry registry)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
MultiplexingClientService.getInterfaceForComponentType(java.lang.String componentType)
Returns the class object of the corresponding interface / superclass, if
the component type is declared.
|
| Constructor and Description |
|---|
MultiplexingClientService(Configuration configuration,
Registry registry)
Creates a MultiplexingClientService with the designated registry, a logger
for this and the designated required services.
|
| Modifier and Type | Method and Description |
|---|---|
EventSource<? extends Event> |
EventManager.addEventSource(SessionToken session,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
Configuration configuration)
Adds an event source having the designated ID to the designated event type
and event source.
|
| Modifier and Type | Method and Description |
|---|---|
EventSource<?> |
AbstractEventManager.addEventSource(SessionToken session,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
Configuration conf) |
protected void |
AbstractEventManager.addPreregistered(Configuration conf)
Reads the event handler and sources from the configuration based on the supported event types,
registers and starts them initially and adds them afterwards.
|
protected void |
AbstractEventManager.addPreregistered(Configuration conf,
java.util.Iterator<java.lang.String> sourceTypes)
Reads the event handler and sources for the designated source types from the configuration,
registers and starts them initially and adds them afterwards.
|
java.sql.Connection |
DefaultEventManager.getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password)
Retrieves a connection to a JDBC-database using the designated information.
|
java.sql.Connection |
DefaultEventManager.getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password,
boolean readOnly)
Retrieves a connection to a JDBC-database using the designated information.
|
protected void |
AbstractSharedEventSource.parseConfiguration(Configuration conf)
Parses the designated (initial) configuration.
|
static java.lang.String |
ParamRefTools.replaceParams(java.lang.String rawString,
InputDataContext dataContext)
Replaces all parameter references in the designated string with the
corresponding input parameter values from the data context.
|
protected java.lang.String |
AbstractEventSource.replaceValueParams(java.lang.String value,
InputDataContext dataContext)
Wraps
ParamRefTools#replaceParams(String, InputDataContext) by allowing for
null and the empty string as value. |
protected void |
AbstractSharingActEventSource.setConfiguration(Configuration newConf,
boolean completed)
Adds the relevant values from the designated configuration in the own
configuration of this sharing event source overriding existing values. and
verifies the complete configuration if completed.
|
void |
AbstractEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
void |
AbstractSharedEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
void |
AbstractSharingActEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
protected void |
AbstractSharingActEventSource.verifyConfigurationValues(Configuration configuration)
Verifies that all required configuration values have been set in the designated configuration.
|
| Constructor and Description |
|---|
AbstractEventManager(Configuration conf,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents)
Creates an event manager creating event sources and combining them with the appropriate event
handlers.
|
AbstractSharingActEventSource(Configuration conf,
Registry registry,
java.lang.Class<T> eventClass,
java.lang.String eventType,
java.lang.String sharedSourceType)
Default constructor for a plugin of the
DefaultEventManager
called by a service registry. |
DefaultEventManager(Configuration conf,
Registry registry)
Creates a new service polling for DB, mail and file events and handling them appropriately.
|
DefaultEventManager(Configuration conf,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents)
Creates a new service polling for DB, mail and file events and handling them appropriately.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DBActivityEventSource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
protected void |
DBEventSource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
void |
DBEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
protected void |
DBEventSource.verifyConfigurationValues()
This method verifies whether the required configuration values and the data
context have been set yet.
|
| Constructor and Description |
|---|
DBActivityEventSource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of the
DefaultEventManager called
by a service registry. |
DBEventSource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of the
DefaultEventManager
called by a service registry. |
ReadOnlyRSEventSource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of the
DefaultEventManager
called by a service registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
FileEventActivitySource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
protected void |
FileEventSource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
void |
FileEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
protected void |
FileEventSource.verifyConfigurationValues()
This method verifies the configuration values that have been set yet.
|
| Constructor and Description |
|---|
FileEventActivitySource(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
FileEventSource(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
FileMarkHandler(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
InstanceStartEventHandler(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Creates a new handler for file events that starts instances and
stores data from the file in the instance input parameters.
|
MarkInstanceStartEventHandler(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Creates a new handler for file events that starts instances and
stores data from the file in the instance input parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
FilteredMailEventActivitySource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
protected void |
FilteredMailEventSource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
void |
MailEventActivitySource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
protected void |
MailEventSource.setConfiguration(Configuration conf,
boolean completed)
Sets the internal fields according to the values of the designated
configuration.
|
void |
MailEventSource.setConfiguration(Configuration conf,
java.lang.String id) |
protected void |
MailEventSource.verifyConfigurationValues()
This method verifies the configuration values that have been set yet.
|
| Constructor and Description |
|---|
FilteredMailEventActivitySource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
FilteredMailEventSource(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
InstanceStartEventHandler(Configuration conf,
DefaultEventManager eventManager,
Registry registry)
Creates a new handler for mail events that starts instances and
stores data from the mail in the instance input parameters.
|
MailEventActivityHandler(Configuration conf,
ActivityEventManager eventManager,
Registry registry)
Creates a new handler for mail events that starts or resumes activities and
stores data from the mail in their output data context.
|
MailEventActivitySource(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
MailEventSource(Configuration conf,
EventManager eventManager,
Registry registry)
Default constructor for a plugin of an
EventManager called by
a service registry. |
MailEventSource(Configuration conf,
EventManager eventManager,
Registry registry,
java.lang.Class<?> confDesc)
Constructor for subclasses allowing to set a separate class for the
configuration description.
|
| Modifier and Type | Method and Description |
|---|---|
protected UrlConfigurationManager |
AristaFlowPlatform.createConfigurationManager(java.lang.String rootConfFileName,
Configuration providedConfiguration,
boolean eager,
ConfigurationPropertyProvider provider,
LoggerManager loggerManager)
Gets a configuration manager having the designated file (file name without
path) as root configuration and/or the designated configuration.
|
protected Pair<java.lang.String,java.lang.String> |
BootstrapRegistry.resolveInstanceName(Configuration conf) |
| Constructor and Description |
|---|
AristaFlowPlatform(boolean eager)
Partially bootstraps AristaFlow using system properties which also provide
the configuration directories (or the default
. |
AristaFlowPlatform(boolean eager,
Configuration conf)
Partially bootstraps AristaFlow using system properties which also provide
the configuration directories (or the default
. |
AristaFlowPlatform(boolean eager,
Configuration conf,
ConfigurationPropertyProvider provider)
Partially bootstraps AristaFlow using the designated properties which also
provide the configuration directories or URLs to load the root
configuration from additionally to the designated configuration.
|
AristaFlowPlatform(boolean eager,
ConfigurationPropertyProvider provider)
Partially bootstraps AristaFlow using the designated properties which also
provide the configuration directories or URLs to load the root
configuration from.
|
AristaFlowPlatform(java.lang.String rootConfFileName,
Configuration providedConfiguration,
boolean eager,
boolean singleton,
ConfigurationPropertyProvider provider)
Initialises the global properties and logging and creates a configuration
manager.
|
| Constructor and Description |
|---|
TwoPhasePlatform(java.lang.Class<T> initialServiceCls,
java.lang.String initialServiceType,
boolean eager)
Creates a new
TwoPhasePlatform. |
TwoPhasePlatform(java.lang.Class<T> initialServiceCls,
java.lang.String initialServiceType,
boolean eager,
Configuration conf)
Creates a new
TwoPhasePlatform. |
TwoPhasePlatform(java.lang.Class<T> initialServiceCls,
java.lang.String initialServiceType,
boolean eager,
Configuration conf,
ConfigurationPropertyProvider provider)
Creates a new
TwoPhasePlatform. |
TwoPhasePlatform(java.lang.Class<T> initialServiceCls,
java.lang.String initialServiceType,
boolean eager,
ConfigurationPropertyProvider provider)
Creates a new
TwoPhasePlatform. |
TwoPhasePlatform(java.lang.Class<T> initialServiceCls,
java.lang.String initialServiceType,
java.lang.String rootConfFileName,
Configuration providedConfiguration,
boolean eager,
ConfigurationPropertyProvider provider)
Creates a new
TwoPhasePlatform. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ModelFactoryRegistry.readDeclaredModelViewerClasses(Configuration conf)
Reads all declared model viewer classes from the configuration and loads
the classes.
|
protected void |
ModelFactoryRegistry.renewConfiguration(Configuration conf)
Renews the configuration of this registry by renewing via the superclass
and reading the declared model viewer classes for plugin data.
|
| Constructor and Description |
|---|
ModelFactoryRegistry(UrlConfigurationManager confMgr,
Configuration configuration,
Registry registry)
Constructs a new model factory registry supporting factory for the creation
of model implementations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
EventSource.setConfiguration(Configuration conf,
java.lang.String id)
Sets the (additional) configuration of this event source and its ID.
|
| Constructor and Description |
|---|
EmbdServContHTTPService(Configuration configuration,
Registry registry)
Registers the HTTP-service-servlet at an embedded servlet container.
|