public abstract class ServletServerContainerInstantiator extends BaseContainerInstantiator implements IRemoteServiceContainerInstantiator
Modifier and Type | Field and Description |
---|---|
protected static String[] |
intents |
EMPTY_CLASS_ARRAY, EMPTY_STRING_ARRAY, NO_ADAPTERS_ARRAY
Constructor and Description |
---|
ServletServerContainerInstantiator() |
Modifier and Type | Method and Description |
---|---|
String[] |
getImportedConfigs(ContainerTypeDescription description,
String[] exporterSupportedConfigs)
Get the imported config types for a given ContainerTypeDescription for the given exporter supported config types.
|
Dictionary |
getPropertiesForImportedConfigs(ContainerTypeDescription description,
String[] importedConfigs,
Dictionary exportedProperties)
Get the properties associated with the given description, with the given importedConfigTypes, via the given exportedProperties.
|
String[] |
getSupportedIntents(ContainerTypeDescription description)
Get supported intents for the given ContainerTypeDescription.
|
createInstance, getAdaptersForClass, getIDParameterValue, getIDParameterValue, getIDParameterValue, getIntegerFromArg, getInterfacesAndAdaptersForClass, getInterfacesForClass, getInterfacesForClass, getMap, getMapParameterString, getMapParameterString, getParameterValue, getParameterValue, getParameterValue, getParameterValue, getParameterValue, getStringFromArg, getSupportedAdapterTypes, getSupportedParameterTypes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSupportedConfigs
protected static final String[] intents
public String[] getImportedConfigs(ContainerTypeDescription description, String[] exporterSupportedConfigs)
IRemoteServiceContainerInstantiator
Get the imported config types for a given ContainerTypeDescription for the given exporter supported config types. This method will be called to determine what the local container imported configs are for the given description and exporterSupportedConfigTypes. The local provider can decide which (if any) imported config types should be returned and return them.
As an example, consider the config types for the ECF generic provider. A generic server has a config type
of 'ecf.generic.server', and the client has 'ecf.generic.server'. If the generic server exports a given
service, the exportersSupportedConfigTypes will be '[ecf.generic.server]'. When this method is called
with the ecf.generic.client description (i.e. the container type description named 'ecf.generic.client'), it
should respond with a non-null, non-empty array...e.g.: [ecf.generic.client]. This indicates that the
ecf.generic.client can serve as an importer for the given exporter config type. All, other descriptions
should return null
, to indicate that they cannot import a remote service exported by the given
exporterSupportedConfigTypes.
getImportedConfigs
in interface IRemoteServiceContainerInstantiator
description
- the container type description under consideration.exporterSupportedConfigs
- the exporter supported config types under consideration.null
, unless
one or more of the exporterSupportedConfigTypes is recognized for the given description.public String[] getSupportedIntents(ContainerTypeDescription description)
IRemoteServiceContainerInstantiator
getSupportedIntents
in interface IContainerInstantiator
getSupportedIntents
in interface IRemoteServiceContainerInstantiator
getSupportedIntents
in class BaseContainerInstantiator
description
- the ContainerTypeDescription to return the supported intents for.
Will not be null
.null
may be returned if the
given description does not support any intents.public Dictionary getPropertiesForImportedConfigs(ContainerTypeDescription description, String[] importedConfigs, Dictionary exportedProperties)
IRemoteServiceContainerInstantiator
getPropertiesForImportedConfigs
in interface IRemoteServiceContainerInstantiator
description
- the container type description under consideration.importedConfigs
- the imported config types for the given properties. Will not be null
, and
should be the same values as returned from IRemoteServiceContainerInstantiator.getImportedConfigs(ContainerTypeDescription, String[])
.exportedProperties
- the properties from the exported service. Will not be null
.null
if
no properties are associated with the given description, importedConfigTypes, exportedProperties.Copyright © 2017. All rights reserved.