|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jersey.server.impl.application.CloseableServiceFactory
public class CloseableServiceFactory
Constructor Summary | |
---|---|
CloseableServiceFactory(HttpContext context)
|
Method Summary | |
---|---|
void |
add(Closeable c)
Add an instance of Closeable that is to be closed when the
request goes out of scope. |
void |
close(HttpContext context)
|
Injectable |
getInjectable(ComponentContext ic,
Context a,
Type c)
Get an injectable. |
ComponentScope |
getScope()
Get the scope of the injectable provider. |
CloseableService |
getValue()
Get the injectable value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CloseableServiceFactory(@Context HttpContext context)
Method Detail |
---|
public ComponentScope getScope()
InjectableProvider
getScope
in interface InjectableProvider<Context,Type>
public Injectable getInjectable(ComponentContext ic, Context a, Type c)
InjectableProvider
getInjectable
in interface InjectableProvider<Context,Type>
ic
- the injectable contexta
- the annotation instancec
- the context instance
public CloseableService getValue()
Injectable
getValue
in interface Injectable<CloseableService>
public void add(Closeable c)
CloseableService
Closeable
that is to be closed when the
request goes out of scope.
add
in interface CloseableService
c
- the instance of Closeable
.public void close(HttpContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |