|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lonniepryor.blues.Session
Represents a binding of an Engine to a Thread. An instance of Engine can be bound to the current Thread by creating an instance of this class. The Thread will be bound until dispose() is called on the Session instance. Instances of this class should NEVER be shared between Threads.
Constructor Summary | |
Session(Engine engine)
Creates a new Session object. |
Method Summary | |
void |
dispose()
Destroys this Session and releases the current Thread. |
java.lang.Object |
lookupDispatcher(java.lang.Class dispatcherInterface)
Looks up the specified service in this Session. |
java.lang.Object |
lookupService(java.lang.String fullName)
Looks up the specified service in this Session. |
java.lang.Object |
lookupSingleton(java.lang.Class singletonInterface)
Looks up the specified singleton in this Session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Session(Engine engine)
engine
- The Engine to bind to.Method Detail |
public java.lang.Object lookupSingleton(java.lang.Class singletonInterface)
singletonInterface
- The type of the singleton instance.
public java.lang.Object lookupService(java.lang.String fullName)
fullName
- The name of the service instance.
public java.lang.Object lookupDispatcher(java.lang.Class dispatcherInterface)
dispatcherInterface
- The name of the service instance.
public void dispose()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |