public interface DestinationFactory
DestinationFactory
is used to access the connectivity destinations.
An instance of DestinationFactory
can be accessed using JNDI lookup using the following code snippet :
javax.naming.Context ctx = new javax.naming.InitialContext(); DestinationFactory destinationFactory = (DestinationFactory) ctx.lookup(DestinationFactory.JNDI_NAME);
DestinationFactory
is registered as an OSGi Service with interface
com.sap.core.connectivity.api.DestinationFactory
.
OSGi based components can access it from the OSGi service registry.Modifier and Type | Field and Description |
---|---|
static String |
JNDI_NAME
Constant which is used to lookup the
DestinationFactory from JNDI. |
Modifier and Type | Method and Description |
---|---|
<T extends Destination> |
getDestination(String destinationName) |
static final String JNDI_NAME
DestinationFactory
from JNDI.<T extends Destination> T getDestination(String destinationName) throws DestinationNotFoundException
destinationName
- the name of the destination.DestinationNotFoundException
- if a destination with the provided name is not found.Copyright © 2016 SAP. All Rights Reserved.