@Override public String getServiceName() { return getServiceFactory().getServiceClass().getSimpleName(); }
@Override public String getServiceName() { return getServiceFactory().getServiceClass().getSimpleName(); }
protected Invoker createInvoker() { Class<?> cls = getServiceClass(); if (cls.isInterface()) { return null; } return new FactoryInvoker(new SingletonFactory(getServiceClass())); }
protected Invoker createInvoker() { Class<?> cls = getServiceClass(); if (cls.isInterface()) { return null; } return new FactoryInvoker(new SingletonFactory(getServiceClass())); }
@Override public String getServiceNamespace() { String ret = super.getServiceNamespace(); if (ret == null && getServiceFactory() != null && getServiceFactory().getServiceClass() != null) { ret = ServiceUtils.makeNamespaceFromClassName(getServiceFactory().getServiceClass().getName(), "http"); } return ret; }
@Override public String getServiceNamespace() { String ret = super.getServiceNamespace(); if (ret == null && getServiceFactory() != null && getServiceFactory().getServiceClass() != null) { ret = ServiceUtils.makeNamespaceFromClassName(getServiceFactory().getServiceClass().getName(), "http"); } return ret; }
private String getDefaultLocalName(OperationInfo op, Method method, int paramNumber, String prefix) { Class<?> impl = getServiceFactory().getServiceClass(); // try to grab the implementation class so we can read the debug symbols from it if (impl != null) { try { method = impl.getMethod(method.getName(), method.getParameterTypes()); } catch (Exception e) { throw new ServiceConstructionException(e); } } return DefaultServiceConfiguration.createName(method, paramNumber, op.getInput() .getMessageParts().size(), false, prefix); }
private String getDefaultLocalName(OperationInfo op, Method method, int paramNumber, String prefix) { Class<?> impl = getServiceFactory().getServiceClass(); // try to grab the implementation class so we can read the debug symbols from it if (impl != null) { try { method = impl.getMethod(method.getName(), method.getParameterTypes()); } catch (Exception e) { throw new ServiceConstructionException(e); } } return DefaultServiceConfiguration.createName(method, paramNumber, op.getInput() .getMessageParts().size(), false, prefix); }
protected InterfaceInfo createInterface(ServiceInfo serviceInfo) { QName intfName = getInterfaceName(); InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName); Method[] methods = getServiceClass().getMethods(); // The BP profile states we can't have operations of the same name // so we have to append numbers to the name. Different JVMs sort methods // differently. // We need to keep them ordered so if we have overloaded methods, the // wsdl is generated the same every time across JVMs and across // client/servers. Arrays.sort(methods, new MethodComparator()); for (Method m : methods) { if (isValidMethod(m)) { createOperation(serviceInfo, intf, m); } } sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass()); return intf; }
protected InterfaceInfo createInterface(ServiceInfo serviceInfo) { QName intfName = getInterfaceName(); InterfaceInfo intf = new InterfaceInfo(serviceInfo, intfName); Method[] methods = getServiceClass().getMethods(); // The BP profile states we can't have operations of the same name // so we have to append numbers to the name. Different JVMs sort methods // differently. // We need to keep them ordered so if we have overloaded methods, the // wsdl is generated the same every time across JVMs and across // client/servers. Arrays.sort(methods, new MethodComparator()); for (Method m : methods) { if (isValidMethod(m)) { createOperation(serviceInfo, intf, m); } } sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass()); return intf; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
public Endpoint createEndpoint(EndpointInfo ei) throws EndpointException { Endpoint ep = new EndpointImpl(getBus(), getService(), ei); sendEvent(Event.ENDPOINT_CREATED, ei, ep, getServiceClass()); return ep; }
Class<? extends DataBinding> cls = null; if (getServiceClass() != null) { org.apache.cxf.annotations.DataBinding db = getServiceClass().getAnnotation(org.apache.cxf.annotations.DataBinding.class); if (db != null) { try {
Class<? extends DataBinding> cls = null; if (getServiceClass() != null) { org.apache.cxf.annotations.DataBinding db = getServiceClass().getAnnotation(org.apache.cxf.annotations.DataBinding.class); if (db != null) { try {
sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass());
sendEvent(Event.INTERFACE_CREATED, intf, getServiceClass());
protected void initializeServiceModel() { if (isFromWsdl()) { buildServiceFromWSDL(getWsdlURL()); } else if (getServiceClass() != null) { buildServiceFromClass(); } else { throw new ServiceConstructionException(new Message("NO_WSDL_NO_SERVICE_CLASS_PROVIDED", LOG, getWsdlURL())); } if (isValidate()) { validateServiceModel(); } }
protected void initializeServiceModel() { if (isFromWsdl()) { buildServiceFromWSDL(getWsdlURL()); } else if (getServiceClass() != null) { buildServiceFromClass(); } else { throw new ServiceConstructionException(new Message("NO_WSDL_NO_SERVICE_CLASS_PROVIDED", LOG, getWsdlURL())); } if (isValidate()) { validateServiceModel(); } }
&& ("true".equals(o) || Boolean.TRUE.equals(o))) { throw new ServiceConstructionException(new Message("NO_WSDL_PROVIDED", LOG, getServiceClass().getName())); LOG.info("Creating Service " + getServiceQName() + " from class " + getServiceClass().getName()); if (Proxy.isProxyClass(this.getServiceClass())) { LOG.log(Level.WARNING, "USING_PROXY_FOR_SERVICE", getServiceClass()); sendEvent(Event.CREATE_FROM_CLASS, getServiceClass());
&& ("true".equals(o) || Boolean.TRUE.equals(o))) { throw new ServiceConstructionException(new Message("NO_WSDL_PROVIDED", LOG, getServiceClass().getName())); LOG.info("Creating Service " + getServiceQName() + " from class " + getServiceClass().getName()); if (Proxy.isProxyClass(this.getServiceClass())) { LOG.log(Level.WARNING, "USING_PROXY_FOR_SERVICE", getServiceClass()); sendEvent(Event.CREATE_FROM_CLASS, getServiceClass());