@Override protected boolean supportsInternal(MethodEndpoint methodEndpoint) { Method method = methodEndpoint.getMethod(); return supportsReturnType(method) && supportsParameters(method); }
private boolean supportsParameters(Method method) { if (method.getParameterTypes().length != 1) { return false; } else if (getUnmarshaller() instanceof GenericUnmarshaller) { GenericUnmarshaller genericUnmarshaller = (GenericUnmarshaller) getUnmarshaller(); return genericUnmarshaller.supports(method.getGenericParameterTypes()[0]); } else { return getUnmarshaller().supports(method.getParameterTypes()[0]); } } }
private boolean supportsReturnType(Method method) { if (Void.TYPE.equals(method.getReturnType())) { return true; } else { if (getMarshaller() instanceof GenericMarshaller) { return ((GenericMarshaller) getMarshaller()).supports(method.getGenericReturnType()); } else { return getMarshaller().supports(method.getReturnType()); } } }
private boolean supportsParameters(Method method) { if (method.getParameterTypes().length != 1) { return false; } else if (getUnmarshaller() instanceof GenericUnmarshaller) { GenericUnmarshaller genericUnmarshaller = (GenericUnmarshaller) getUnmarshaller(); return genericUnmarshaller.supports(method.getGenericParameterTypes()[0]); } else { return getUnmarshaller().supports(method.getParameterTypes()[0]); } } }
private boolean supportsReturnType(Method method) { if (Void.TYPE.equals(method.getReturnType())) { return true; } else { if (getMarshaller() instanceof GenericMarshaller) { return ((GenericMarshaller) getMarshaller()).supports(method.getGenericReturnType()); } else { return getMarshaller().supports(method.getReturnType()); } } }
@Override protected boolean supportsInternal(MethodEndpoint methodEndpoint) { Method method = methodEndpoint.getMethod(); return supportsReturnType(method) && supportsParameters(method); }
private boolean supportsParameters(Method method) { if (method.getParameterTypes().length != 1) { return false; } else if (getUnmarshaller() instanceof GenericUnmarshaller) { GenericUnmarshaller genericUnmarshaller = (GenericUnmarshaller) getUnmarshaller(); return genericUnmarshaller.supports(method.getGenericParameterTypes()[0]); } else { return getUnmarshaller().supports(method.getParameterTypes()[0]); } } }
private boolean supportsReturnType(Method method) { if (Void.TYPE.equals(method.getReturnType())) { return true; } else { if (getMarshaller() instanceof GenericMarshaller) { return ((GenericMarshaller) getMarshaller()).supports(method.getGenericReturnType()); } else { return getMarshaller().supports(method.getReturnType()); } } }
@Override protected boolean supportsInternal(MethodEndpoint methodEndpoint) { Method method = methodEndpoint.getMethod(); return supportsReturnType(method) && supportsParameters(method); }
private boolean supportsParameters(Method method) { if (method.getParameterTypes().length != 1) { return false; } else if (getUnmarshaller() instanceof GenericUnmarshaller) { GenericUnmarshaller genericUnmarshaller = (GenericUnmarshaller) getUnmarshaller(); return genericUnmarshaller.supports(method.getGenericParameterTypes()[0]); } else { return getUnmarshaller().supports(method.getParameterTypes()[0]); } } }
private boolean supportsReturnType(Method method) { if (Void.TYPE.equals(method.getReturnType())) { return true; } else { if (getMarshaller() instanceof GenericMarshaller) { return ((GenericMarshaller) getMarshaller()).supports(method.getGenericReturnType()); } else { return getMarshaller().supports(method.getReturnType()); } } }
@Override protected boolean supportsInternal(MethodEndpoint methodEndpoint) { Method method = methodEndpoint.getMethod(); return supportsReturnType(method) && supportsParameters(method); }
private boolean supportsParameters(Method method) { if (method.getParameterTypes().length != 1) { return false; } else if (getUnmarshaller() instanceof GenericUnmarshaller) { GenericUnmarshaller genericUnmarshaller = (GenericUnmarshaller) getUnmarshaller(); return genericUnmarshaller.supports(method.getGenericParameterTypes()[0]); } else { return getUnmarshaller().supports(method.getParameterTypes()[0]); } } }
private boolean supportsReturnType(Method method) { if (Void.TYPE.equals(method.getReturnType())) { return true; } else { if (getMarshaller() instanceof GenericMarshaller) { return ((GenericMarshaller) getMarshaller()).supports(method.getGenericReturnType()); } else { return getMarshaller().supports(method.getReturnType()); } } }
protected boolean supportsInternal(MethodEndpoint methodEndpoint) { Method method = methodEndpoint.getMethod(); return supportsReturnType(method) && supportsParameters(method); }