Wraps this {@link InstanceResolver} into an {@link Invoker}.
return new Invoker() {
@Override
public void start(@NotNull WSWebServiceContext wsc, @NotNull WSEndpoint endpoint) {
InstanceResolverImpl.this.start(wsc,endpoint);
}
@Override
public void dispose() {
InstanceResolverImpl.this.dispose();
}
@Override
public Object invoke(Packet p, Method m, Object... args) throws InvocationTargetException, IllegalAccessException {
return m.invoke( resolve(p), args );
}
@Override
public <T> T invokeProvider(@NotNull Packet p, T arg) {
return ((Provider<T>)resolve(p)).invoke(arg);
}
public String toString() {
return "Default Invoker over "+InstanceResolverImpl.this.toString();
}
};