com.sap.core.connectivity.api
Interface DestinationFactory


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.


Field Summary
static String JNDI_NAME
          Constant which is used to lookup the DestinationFactory from JNDI.
 
Method Summary
<T extends Destination>
T
getDestination(String destinationName)
           
 

Field Detail

JNDI_NAME

static final String JNDI_NAME
Constant which is used to lookup the DestinationFactory from JNDI.

See Also:
Constant Field Values
Method Detail

getDestination

<T extends Destination> T getDestination(String destinationName)
                                     throws DestinationNotFoundException
Parameters:
destinationName - the name of the destination.
Returns:
a destination object, if a destination with the provided name has been configured.
Throws:
DestinationNotFoundException - if a destination with the provided name is not found.


Copyright © 2014 SAP. All Rights Reserved.