usage example

This commit is contained in:
Adrian Cole 2012-06-12 09:09:44 -07:00
parent 6bd8f154fc
commit 9daee06e13
1 changed files with 4 additions and 0 deletions

View File

@ -46,6 +46,10 @@ public interface View {
* context. If the backend context is not assignable from the supplied type, * context. If the backend context is not assignable from the supplied type,
* an {@link IllegalArgumentException} is thrown. * an {@link IllegalArgumentException} is thrown.
* *
* ex.
* <pre>
* RestContext<NovaClient, NovaAsyncClient> backendApi = computeContext.unwrap(NovaApiMetadata.CONTEXT_TOKEN);
* </pre>
* @param type * @param type
* the type of the context to be returned. The backend context must * the type of the context to be returned. The backend context must
* be assignable from this type. * be assignable from this type.