public boolean isValid(Annotation annotation) { if (annotation == null) return false; WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); String id = null; if (wsfAnnotation != null) id = wsfAnnotation.id(); return configuratorMap.containsKey(id); }
private WebServiceFeature getWebServiceFeatureBean(Annotation a) { WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class); Class<? extends WebServiceFeature> beanClass = wsfa.bean(); WebServiceFeature bean;
private static WebServiceFeature getWebServiceFeatureBean(Annotation a) { WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class); Class<? extends WebServiceFeature> beanClass = wsfa.bean(); WebServiceFeature bean;
private static WebServiceFeature getWebServiceFeatureBean(Annotation a) { WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class); Class<? extends WebServiceFeature> beanClass = wsfa.bean(); WebServiceFeature bean;
public boolean isValid(Annotation annotation) { if (annotation == null) return false; WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); String id = null; if (wsfAnnotation != null) id = wsfAnnotation.id(); return configuratorMap.containsKey(id); }
private static WebServiceFeature getWebServiceFeatureBean(Annotation a) { WebServiceFeatureAnnotation wsfa = a.annotationType().getAnnotation(WebServiceFeatureAnnotation.class); Class<? extends WebServiceFeature> beanClass = wsfa.bean(); WebServiceFeature bean;
public void configure(EndpointDescription endpointDescription) { if(log.isDebugEnabled()){ log.debug("Start ServerFramework.conigure(EndpointDescription)"); } for (Annotation annotation : getAllAnnotations()) { WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); ServerConfigurator configurator = configuratorMap.get(wsfAnnotation.id()); if (log.isDebugEnabled()) { log.debug("Found ServerConfigurator: " + configurator.getClass().getName()); } if (log.isDebugEnabled()) { log.debug("Starting " + configurator.getClass().getName() + ".configure()"); } configurator.configure(endpointDescription); if (log.isDebugEnabled()) { log.debug("Completed " + configurator.getClass().getName() + ".configure()"); } } if(log.isDebugEnabled()){ log.debug("Exit ServerFramework.conigure(EndpointDescription)"); } }
public void configure(EndpointDescription endpointDescription) { if(log.isDebugEnabled()){ log.debug("Start ServerFramework.conigure(EndpointDescription)"); } for (Annotation annotation : getAllAnnotations()) { WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); ServerConfigurator configurator = configuratorMap.get(wsfAnnotation.id()); if (log.isDebugEnabled()) { log.debug("Found ServerConfigurator: " + configurator.getClass().getName()); } if (log.isDebugEnabled()) { log.debug("Starting " + configurator.getClass().getName() + ".configure()"); } configurator.configure(endpointDescription); if (log.isDebugEnabled()) { log.debug("Completed " + configurator.getClass().getName() + ".configure()"); } } if(log.isDebugEnabled()){ log.debug("Exit ServerFramework.conigure(EndpointDescription)"); } }
public void addAnnotation(Annotation annotation) { if (!isValid(annotation)) { throw ExceptionFactory. makeWebServiceException(Messages.getMessage("invalidWSAnnotation", annotation.toString())); } WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); annotationMap.put(wsfAnnotation.id(), annotation); }
public void addAnnotation(Annotation annotation) { if (!isValid(annotation)) { throw ExceptionFactory. makeWebServiceException(Messages.getMessage("invalidWSAnnotation", annotation.toString())); } WebServiceFeatureAnnotation wsfAnnotation = getWebServiceFeatureAnnotation(annotation); annotationMap.put(wsfAnnotation.id(), annotation); }