public class TransportConfigurationFactory
extends com.streamscape.sef.dispatcher.AbstractRuntimeFactory
Title: Service Event Fabric Runtime
Description:
Transport factories are managed objects that contain information required to instantiate messaging system connections within the Fabric Runtime. The transport factory is based loosley on the
Java
Messaging Service (JMS)
specification. However developers may create their own implementations that
allow to register foreign (non JMS) transport providers as well. This factory will not function without a properly
initialized RuntimeContext
. It allows users to create default or empty configuration
object so that they may be programmatically populated, and to load or save such configuration objects using the
persistence mechanism that is configured with the Runtime Context
.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONFIG_EXISTS |
static java.lang.String |
DEFAULT_CONNECTION_FACTORY |
static java.lang.String |
PROTOTYPE |
static java.lang.String |
SHOW_CONNECTION_PANEL |
DEFAULT_SERIAL_VERSION_ID
Constructor and Description |
---|
TransportConfigurationFactory(com.streamscape.repository.RepositoryContext repositoryContext) |
Modifier and Type | Method and Description |
---|---|
static TransportFactory |
createDefaultFactory(FabricComponent component,
java.lang.String factoryType,
java.lang.String className,
java.lang.String url)
Creates a new default
TransportFactory object. |
static TransportFactory |
createFactory(FabricComponent component,
java.lang.String factoryType,
java.lang.String factoryName,
java.lang.String providerClass,
java.lang.String url,
boolean isTransient) |
static TransportFactory |
createFactory(FabricComponent component,
java.lang.String factoryType,
java.lang.String factoryName,
java.lang.String providerClass,
java.lang.String url,
boolean isTransient,
boolean withLoad)
A constructor that creates a
Transport Factory Object of a specific type. |
static boolean |
existsTransportFactory(java.lang.String factoryName,
java.lang.String factoryType)
Returns
true if the transport factory exists. |
static TransportFactory |
loadFactoryObject(FabricComponent component,
java.lang.String factoryName,
java.lang.String factoryType,
boolean isTransient) |
static TransportFactory |
loadFactoryObject(FabricComponent component,
java.lang.String workingDir,
java.lang.String factoryType,
java.lang.String factoryName,
boolean isTransient)
Loads a
Transport Factory object from the file system and returns it as a public interface. |
static TransportFactory |
loadTransportFactory(FabricComponent component,
TransportFactoryPropertyValue scoParameterValue)
Loads the transport factory from persistence medium by a specific fabric component.
|
static void |
saveFactoryObject(java.lang.String workingDir,
TransportFactory tfo)
Saves the transport factory object to a working directory specified.
|
static void |
saveFactoryObject(TransportFactory tfo)
Saves the transport factory to persistence.
|
getContextType, hasContext
clone, getSerialVersionUID
public static final java.lang.String PROTOTYPE
public static final java.lang.String SHOW_CONNECTION_PANEL
public static final java.lang.String DEFAULT_CONNECTION_FACTORY
public static final java.lang.String CONFIG_EXISTS
public TransportConfigurationFactory(com.streamscape.repository.RepositoryContext repositoryContext)
public static TransportFactory createDefaultFactory(FabricComponent component, java.lang.String factoryType, java.lang.String className, java.lang.String url) throws TransportConfigurationException
TransportFactory
object.component
- FabricComponentfactoryType
- StringclassName
- Stringurl
- StringTransportConfigurationException
public static TransportFactory createFactory(FabricComponent component, java.lang.String factoryType, java.lang.String factoryName, java.lang.String providerClass, java.lang.String url, boolean isTransient, boolean withLoad) throws TransportConfigurationException
Transport Factory Object
of a specific type.factoryType
- StringfactoryName
- StringproviderClass
- Stringurl
- StringTransportFactoryConfigurationException
RuntimeContextException
TransportConfigurationException
public static TransportFactory createFactory(FabricComponent component, java.lang.String factoryType, java.lang.String factoryName, java.lang.String providerClass, java.lang.String url, boolean isTransient) throws TransportConfigurationException
TransportConfigurationException
public static boolean existsTransportFactory(java.lang.String factoryName, java.lang.String factoryType) throws RepositoryException, TransportConfigurationException
true
if the transport factory exists.factoryName
- StringfactoryType
- StringRepositoryException
TransportConfigurationException
public static TransportFactory loadFactoryObject(FabricComponent component, java.lang.String factoryName, java.lang.String factoryType, boolean isTransient) throws RepositoryException, TransportConfigurationException
public static TransportFactory loadFactoryObject(FabricComponent component, java.lang.String workingDir, java.lang.String factoryType, java.lang.String factoryName, boolean isTransient) throws TransportConfigurationException
Transport Factory
object from the file system and returns it as a public interface.
If a Class Loader
is specified it will be set on the object and used to instantiate
inner classes and perform factory related operations. If st to null
the object
will utilize the default on-thread class loader.
Typical use implements a two stage loading technique. First the package that contains all the
relevant JAR files is loaded. This may be a transport Package or a different
one (for instance a service package) and it returns the class loader that references all the
critical libraries. The resulting class loader may then be passed to the load method ensuring
that the factory can access all the necessary classes and archive members.component
- FabricComponentworkingDir
- StringfactoryType
- StringfactoryName
- StringisTransient
- booleanTransportConfigurationException
public static TransportFactory loadTransportFactory(FabricComponent component, TransportFactoryPropertyValue scoParameterValue) throws TransportConfigurationException, RuntimeContextException
component
- FabricComponentscoParameterValue
- TRANSPORT_FACTORYTransportConfigurationException
RuntimeContextException
public static void saveFactoryObject(TransportFactory tfo) throws TransportConfigurationException, RuntimeContextException
tfo
- TransportFactoryTransportConfigurationException
RuntimeContextException
public static void saveFactoryObject(java.lang.String workingDir, TransportFactory tfo) throws TransportConfigurationException, RuntimeContextException
workingDir
- Stringtfo
- TransportFactoryTransportConfigurationException
RuntimeContextException
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.