public ServiceMode getAnnoServiceMode() { if (serviceModeAnnotation == null) { serviceModeAnnotation = composite.getServiceModeAnnot(); } return serviceModeAnnotation; }
/** * This method will be used to attach @ServiceMode annotation data to the * <code>DescriptionBuilderComposite</code> * * @param composite - <code>DescriptionBuildercomposite</code> */ private void attachServiceModeAnnotation(DescriptionBuilderComposite composite) { ServiceMode serviceMode = (ServiceMode)ConverterUtils.getAnnotation( ServiceMode.class, serviceClass); if (serviceMode != null) { // Attach @ServiceMode annotated data ServiceModeAnnot smAnnot = ServiceModeAnnot.createWebServiceAnnotImpl(); smAnnot.setValue(serviceMode.value()); composite.setServiceModeAnnot(smAnnot); } }
/** * Is it PAYLOAD or MESSAGE ?? * * @param c endpoint class * @return Service.Mode.PAYLOAD or Service.Mode.MESSAGE */ private static Service.Mode getServiceMode(Class<?> c) { ServiceMode mode = c.getAnnotation(ServiceMode.class); return (mode == null) ? Service.Mode.PAYLOAD : mode.value(); }
public ServiceMode getAnnoServiceMode();