Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


com.oracle.sft.api
Class ServiceLocator

java.lang.Object
  extended by com.oracle.sft.api.ServiceLocator


public abstract class ServiceLocator
extends Object

Class to lookup CommunicationSession and CommunicationService from any Java EE Module. As a pre-requisite, at-least one SFT application should allow this Java module to access it. This can be specified using @ServiceAttributes annotation.

See Also:
ServiceAttributes

Constructor Summary
ServiceLocator()
           

 

Method Summary
static ServiceLocator get()
          Obtain an instance of the ServiceLocator.
abstract  CommunicationService getService()
          Return a CommunicationService</code?> object which is attached to the module providing access to the module from where this method is being executed.
abstract  CommunicationSession getSession()
          Return a CommunicationSession</code?> object which is attached to the module providing access to the module from where this method is being executed.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

ServiceLocator

public ServiceLocator()

Method Detail

get

public static ServiceLocator get()
Obtain an instance of the ServiceLocator. Whether the returned object is a static object or a new ServiceLocator instance is implementation dependent. Applications are not supposed to depend on that.
Returns:
An instance of ServiceLocator.

getSession

public abstract CommunicationSession getSession()
Return a CommunicationSession</code?> object which is attached to the module providing access to the module from where this method is being executed. Application code should not depend on whether this method returns a new instance of CommunicationSession</code?> or not.
Returns:
An instance of CommunicationSession object.

getService

public abstract CommunicationService getService()
Return a CommunicationService</code?> object which is attached to the module providing access to the module from where this method is being executed. Application code should not depend on whether this method returns a new instance of CommunicationService or not.
Returns:
An instance of CommunicationService object.

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.1

E36938-01


Copyright © 2012 Oracle Corporation. All Rights Reserved.