Package net.jini.export
Interface ServerContext.Spi
- Enclosing class:
- ServerContext
public static interface ServerContext.Spi
Defines the interface for server context providers, which are consulted by
ServerContext.getServerContext() if no server context has been explicitly associated with the
current thread via a previous call to ServerContext.doWithServerContext(java.lang.Runnable, java.util.Collection).-
Method Summary
Modifier and TypeMethodDescriptionReturns a server context collection for the current thread, ornullif provider does not contain context for the current thread.
-
Method Details
-
getServerContext
Collection getServerContext()Returns a server context collection for the current thread, ornullif provider does not contain context for the current thread.The context information available from a given element of the collection is determined by that element's type. The order of the elements is insignificant. The collection may be empty.
The caller of this method cannot assume that the returned collection is modifiable.
- Returns:
- the server context for the current thread, or
nullif none known
-