> +/**
> + * Utility methods to allow {@link Context} and {@link View} linking between
> + * contexts.
> + * <p>
> + * By using this module users can configure a context to be able to inject
> other
> + * contexts or views by their provider id.
> + */
> +public class ContextLinking {
> +
> + static final TypeLiteral<Supplier<Context>> CONTEXT_SUPPLIER = new
> TypeLiteral<Supplier<Context>>() {
> + };
> +
> + static final TypeLiteral<Supplier<View>> VIEW_SUPPLIER = new
> TypeLiteral<Supplier<View>>() {
> + };
> +
> + public static Module linkToView(final String id, final Supplier<View>
> view) {
[minor] Perhaps call this `linkView` or `linkedView` rather than `linkToView`?
If I read it, the idea that I'm "linking this view" and "linking that context"
sounds a bit closer to what's happening than "I'm linking _to_ that view"?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/960/files/d7aa6e5aff7b2858c581952ca90c8021d07cac93#r64480233