public class HttpSessionInstanceResolver<T> extends AbstractMultiInstanceResolver<T>
HttpSession
.
TODO: how do we dispose instances?clazz, owner
Constructor and Description |
---|
HttpSessionInstanceResolver(Class<T> clazz) |
Modifier and Type | Method and Description |
---|---|
T |
resolve(Packet request)
Decides which instance of 'T' serves the given request message.
|
create, dispose, prepare, start
findAnnotatedMethod, getResourceInjector, invokeMethod
createDefault, createDefault, createFromInstanceResolverAnnotation, createInvoker, createNewInstance, createSingleton, dispose, postInvoke, start
@NotNull public T resolve(Packet request)
InstanceResolver
This method is called concurrently by multiple threads. It is also on a criticail path that affects the performance. A good implementation should try to avoid any synchronization, and should minimize the amount of work as much as possible.
resolve
in class InstanceResolver<T>
request
- Always non-null. Represents the request message to be served.
The caller may not consume the Message
.Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.