2929import javax .lang .model .element .TypeElement ;
3030
3131import org .microbean .bean .BeanTypeList ;
32+ import org .microbean .bean .Creation ;
3233import org .microbean .bean .Id ;
33- import org .microbean .bean .Request ;
3434
3535import org .microbean .construct .Domain ;
3636
@@ -148,7 +148,7 @@ protected ClassLoader classLoader(final TypeElement e) {
148148 *
149149 * @param <R> the type of the contextual reference
150150 *
151- * @param r the {@link Request} necessitating this invocation ; must not be {@code null}
151+ * @param id an {@link Id} qualifying the contextual instance that will be proxied ; must not be {@code null}
152152 *
153153 * @param instanceSupplier a {@link Supplier} of contextual instances of type {@code R}; must not be {@code null}
154154 *
@@ -157,7 +157,7 @@ protected ClassLoader classLoader(final TypeElement e) {
157157 * @exception NullPointerException if any argument is {@code null}, or if the {@link #instantiate(ProxySpecification,
158158 * Supplier)} method, invoked as part of the implementation of this method, returns {@code null}
159159 *
160- * @exception IllegalArgumentException if the supplied {@link Request } is not proxiable for any reason
160+ * @exception IllegalArgumentException if the supplied {@link Id } is not proxiable for any reason
161161 *
162162 * @exception ReferenceException if the {@link #instantiate(ProxySpecification, Supplier)} method throws a checked
163163 * {@link Exception}
@@ -169,12 +169,7 @@ protected ClassLoader classLoader(final TypeElement e) {
169169 // By the time we get here, proxying is absolutely called for. (If we can't return an R, something went wrong, it's
170170 // not that the inputs were unsuitable.)
171171 @ Override // ClientProxier
172- public final <R > R clientProxy (final Request <R > r , final Supplier <? extends R > instanceSupplier ) {
173- return this .clientProxy (r .beanReduction ().bean ().id (), instanceSupplier );
174- }
175-
176- // Called only by #clientProxy(Request, Supplier).
177- private final <R > R clientProxy (final Id id , final Supplier <? extends R > instanceSupplier ) {
172+ public final <R > R clientProxy (final Id id , final Supplier <? extends R > instanceSupplier ) {
178173 return this .clientProxy (id .types (), id .attributes (), instanceSupplier );
179174 }
180175
@@ -314,7 +309,7 @@ protected T generate(final ProxySpecification ps) throws Throwable {
314309 }
315310
316311 /**
317- * Called indirectly by the {@link #clientProxy(Request , Supplier)} method when a new {@link ClientProxy
312+ * Called indirectly by the {@link #clientProxy(Id , Supplier)} method when a new {@link ClientProxy
318313 * ClientProxy<R>} instance needs to be created, creates a new instance of a {@link ClientProxy
319314 * ClientProxy<R>} that proxies contextual instances supplied by the supplied {@code instanceSupplier}, and
320315 * returns it.
0 commit comments