public abstract class JCoDestinationManager extends Object
Note: A destination instance may become invalid if the destination configuration
is changed or removed. In such cases the running operation will be finished, but the further usage
of the invalidated destination will be blocked by throwing a JCoException with the key
JCO_ERROR_DESTINATION_DATA_INVALID.
The application may fetch an updated destination instance from JCoDestinationManager, if it is suitable for
the application scenario.
Modifier | Constructor and Description |
---|---|
protected |
JCoDestinationManager()
instantiated by JCo runtime only.
|
Modifier and Type | Method and Description |
---|---|
static JCoDestination |
getDestination(String destinationName)
Call this method to get an instance of a destination, on which you need to execute
a function module.
|
static JCoDestination |
getDestination(String destinationName,
String scopeType)
Call this method to get an instance of a destination, on which you need to execute
a function module.
|
protected abstract JCoDestination |
getDestinationInstance(String destinationName,
String scopeType)
Do not use this method.
|
protected JCoDestinationManager()
protected abstract JCoDestination getDestinationInstance(String destinationName, String scopeType) throws JCoException
getDestination(String)
or getDestination(String, String)
instead.destinationName
- the name of the destination for which a JCoDestination instance shall be returnedscopeType
- the name of the scope to which the destination shall belong toJCoException
- if the specified destination does not exist or could not be createdpublic static JCoDestination getDestination(String destinationName) throws JCoException
destinationName
- the name of the destination, for which a JCoDestination instance shall be returnedJCoException
- if the specified destination does not exist or could not be createdpublic static JCoDestination getDestination(String destinationName, String scopeType) throws JCoException
getDestination(String destinationName)
. If scopeTypes are supported, the valid scopeTypes
are defined by the session management of the runtime environment.destinationName
- the name of the destination for which a JCoDestination instance shall be returnedscopeType
- the name of the scope to which the destination shall belong toJCoException
- if the specified destination does not exist or could not be createdCopyright © 2020 SAP. All Rights Reserved.