public interface Resource<T>
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext() |
T |
getInterface() |
void |
setContext(Context context)
Sets the resource context.
|
T getInterface()
void setContext(Context context) throws ResourceException
context - the context for this resource.ResourceException - if the resource context provided is either insufficient, or,
if the new context (regardless of its utility) can not be used. (For example, it already
has a context and re-setting of contexts is not supported or permissible.)ContextContext getContext() throws ResourceException
ResourceException - if the resource for whatever reason can not (or will not)
return a reference to its context. (Security considerations, for example.)ContextCopyright © 2009–2021. All rights reserved.