public interface CloseableService
Closeable
that
are required to be closed.
This interface may be injected onto server-side components using
the Context
annotation.
The service may be used within the scope of a request to add instances
of Closeable
that are to be closed when the request goes out
of scope, more specifically after the request has been processed and the
response has been returned.
Modifier and Type | Method and Description |
---|---|
void |
add(java.io.Closeable c)
Add an instance of
Closeable that is to be closed when the
request goes out of scope. |
Copyright © 2016 Oracle Corporation. All Rights Reserved.