|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sap.sl.sdk.framework.SlContext
public abstract class SlContext
This class is the entry point of the Semantic Layer SDK. It provides access to the SDK services.
Constructor Summary | |
---|---|
SlContext()
|
Method Summary | ||
---|---|---|
abstract void |
close()
Releases the resources managed by the context. |
|
static SlContext |
create()
Creates a new context. |
|
abstract
|
getService(java.lang.Class<T> service)
Retrieves an instance of a service. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlContext()
Method Detail |
---|
public static SlContext create()
The context should be closed when it is no more needed. Once closed, the context cannot be used anymore.
public abstract <T> T getService(java.lang.Class<T> service)
An exception is thrown if the service cannot be provided.
service
- The SDK service
null
.public abstract void close()
Once closed, the context cannot be used anymore.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |