public <B, R extends ServiceReference<B>> R cast(B target) throws IllegalArgumentException { try { return (R)node.getClass().getMethod("cast", Object.class).invoke(node, target); } catch (Throwable e) { handleException(e); return null; } }
public void destroy() { try { node.getClass().getMethod("destroy").invoke(node); } catch (Throwable e) { handleException(e); } }
public void stop() { try { node.getClass().getMethod("stop").invoke(node); } catch (Throwable e) { handleException(e); } }
public <B, R extends ServiceReference<B>> R cast(B target) throws IllegalArgumentException { try { return (R)node.getClass().getMethod("cast", Object.class).invoke(node, target); } catch (Throwable e) { handleException(e); return null; } }
@Override public String getEndpointAddress(String serviceBindingName) { try { return (String)node.getClass().getMethod("getEndpointAddress", String.class) .invoke(node, serviceBindingName); } catch (Throwable e) { handleException(e); return null; } }
public <B> B getService(Class<B> businessInterface, String serviceName) { try { return (B)node.getClass().getMethod("getService", Class.class, String.class).invoke(node, businessInterface, serviceName); } catch (Throwable e) { handleException(e); return null; } }
public void destroy() { try { node.getClass().getMethod("destroy").invoke(node); } catch (Throwable e) { handleException(e); } }
@Override public String getEndpointAddress(String serviceBindingName) { try { return (String)node.getClass().getMethod("getEndpointAddress", String.class) .invoke(node, serviceBindingName); } catch (Throwable e) { handleException(e); return null; } }
public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface, String serviceName) { try { return (ServiceReference<B>)node.getClass().getMethod("getServiceReference", Class.class, String.class).invoke(node, businessInterface, serviceName); } catch (Throwable e) { handleException(e); return null; } }
public Node start() { try { return new NodeProxy(node.getClass().getMethod("start").invoke(node)); } catch (Throwable e) { handleException(e); return null; } }
public <B> B getService(Class<B> businessInterface, String serviceName) { try { return (B)node.getClass().getMethod("getService", Class.class, String.class).invoke(node, businessInterface, serviceName); } catch (Throwable e) { handleException(e); return null; } }
public Node start() { try { return new NodeProxy(node.getClass().getMethod("start").invoke(node)); } catch (Throwable e) { handleException(e); return null; } }
public void stop() { try { node.getClass().getMethod("stop").invoke(node); } catch (Throwable e) { handleException(e); } }
public <B> ServiceReference<B> getServiceReference(Class<B> businessInterface, String serviceName) { try { return (ServiceReference<B>)node.getClass().getMethod("getServiceReference", Class.class, String.class).invoke(node, businessInterface, serviceName); } catch (Throwable e) { handleException(e); return null; } }