MCPcopy Index your code
hub / github.com/cschanck/single-file-java / Server

Method Server

src/main/java/org/sfj/ProxyMe.java:238–250  ·  view source on GitHub ↗

Create a server side path to invoke a particular invocation on an instance of the proxy class. @param proxy Proxy class @param instance Instance of proxy class.

(Class<? super T> proxy, T instance)

Source from the content-addressed store, hash-verified

236 * @param instance Instance of proxy class.
237 */
238 public Server(Class<? super T> proxy, T instance) {
239 this.proxy = proxy;
240 this.instance = instance;
241 methods = new HashMap<>();
242 for (Class<?> clz : proxy.getInterfaces()) {
243 for (Method method : clz.getDeclaredMethods()) {
244 methods.put(method.getName(), method);
245 }
246 }
247 for (Method method : proxy.getDeclaredMethods()) {
248 methods.put(method.getName(), method);
249 }
250 }
251
252 public Class<? super T> getProxy() {
253 return proxy;

Callers

nothing calls this directly

Calls 2

putMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected