/** * Add annotated Interceptors and Features to the Endpoint * @param ep */ protected void initializeAnnotationInterceptors(Endpoint ep, Class<?> ... cls) { Class<?> seiClass = ((JaxWsServiceFactoryBean)getServiceFactory()) .getJaxWsImplementorInfo().getSEIClass(); if (seiClass != null) { boolean found = false; for (Class<?> c : cls) { if (c.equals(seiClass)) { found = true; } } if (!found) { Class<?>[] cls2 = new Class<?>[cls.length + 1]; System.arraycopy(cls, 0, cls2, 0, cls.length); cls2[cls.length] = seiClass; cls = cls2; } } AnnotationInterceptors provider = new AnnotationInterceptors(cls); initializeAnnotationInterceptors(provider, ep); }
public List<Interceptor<? extends Message>> getOutFaultInterceptors() { return getAnnotationInterceptorList(OutFaultInterceptors.class); }
public List<Feature> getFeatures() { return getAnnotationObject(Features.class, Feature.class); }
private <T> List<T> initializeAnnotationObjects(Annotation annotation, Class<T> type) { List<T> list = new ArrayList<>(); for (String cn : getAnnotationObjectNames(annotation)) { list.add(initializeAnnotationObject(cn, type)); } for (Class<? extends T> cn : getAnnotationObjectClasses(annotation, type)) { list.add(initializeAnnotationObject(cn)); } return list; }
protected boolean initializeAnnotationInterceptors(AnnotationInterceptors provider, Endpoint ep) { boolean hasAnnotation = false; if (provider.getInFaultInterceptors() != null) { ep.getInFaultInterceptors().addAll(provider.getInFaultInterceptors()); hasAnnotation = true; } if (provider.getInInterceptors() != null) { ep.getInInterceptors().addAll(provider.getInInterceptors()); hasAnnotation = true; } if (provider.getOutFaultInterceptors() != null) { ep.getOutFaultInterceptors().addAll(provider.getOutFaultInterceptors()); hasAnnotation = true; } if (provider.getOutInterceptors() != null) { ep.getOutInterceptors().addAll(provider.getOutInterceptors()); hasAnnotation = true; } if (provider.getFeatures() != null) { getFeatures().addAll(provider.getFeatures()); hasAnnotation = true; } return hasAnnotation; } }
protected boolean initializeAnnotationInterceptors(AnnotationInterceptors provider, Endpoint ep) { boolean hasAnnotation = false; if (provider.getInFaultInterceptors() != null) { ep.getInFaultInterceptors().addAll(provider.getInFaultInterceptors()); hasAnnotation = true; } if (provider.getInInterceptors() != null) { ep.getInInterceptors().addAll(provider.getInInterceptors()); hasAnnotation = true; } if (provider.getOutFaultInterceptors() != null) { ep.getOutFaultInterceptors().addAll(provider.getOutFaultInterceptors()); hasAnnotation = true; } if (provider.getOutInterceptors() != null) { ep.getOutInterceptors().addAll(provider.getOutInterceptors()); hasAnnotation = true; } if (provider.getFeatures() != null) { getFeatures().addAll(provider.getFeatures()); hasAnnotation = true; } return hasAnnotation; } }
private <T> List<T> initializeAnnotationObjects(Annotation annotation, Class<T> type) { List<T> list = new ArrayList<T>(); for (String cn : getAnnotationObjectNames(annotation)) { list.add(initializeAnnotationObject(cn, type)); } for (Class<? extends T> cn : getAnnotationObjectClasses(annotation, type)) { list.add(initializeAnnotationObject(cn)); } return list; }
protected boolean initializeAnnotationInterceptors(AnnotationInterceptors provider, Endpoint ep) { boolean hasAnnotation = false; if (provider.getInFaultInterceptors() != null) { ep.getInFaultInterceptors().addAll(provider.getInFaultInterceptors()); hasAnnotation = true; } if (provider.getInInterceptors() != null) { ep.getInInterceptors().addAll(provider.getInInterceptors()); hasAnnotation = true; } if (provider.getOutFaultInterceptors() != null) { ep.getOutFaultInterceptors().addAll(provider.getOutFaultInterceptors()); hasAnnotation = true; } if (provider.getOutInterceptors() != null) { ep.getOutInterceptors().addAll(provider.getOutInterceptors()); hasAnnotation = true; } if (provider.getFeatures() != null) { getFeatures().addAll(provider.getFeatures()); hasAnnotation = true; } return hasAnnotation; } }
private <T> List<T> initializeAnnotationObjects(Annotation annotation, Class<T> type) { List<T> list = new ArrayList<>(); for (String cn : getAnnotationObjectNames(annotation)) { list.add(initializeAnnotationObject(cn, type)); } for (Class<? extends T> cn : getAnnotationObjectClasses(annotation, type)) { list.add(initializeAnnotationObject(cn)); } return list; }
public List<Interceptor<? extends Message>> getInInterceptors() { return getAnnotationInterceptorList(InInterceptors.class); }
/** * Add annotationed Interceptors and Features to the Endpoint * @param ep */ protected void initializeAnnotationInterceptors(Endpoint ep, Class<?> ... cls) { AnnotationInterceptors provider = new AnnotationInterceptors(cls); if (initializeAnnotationInterceptors(provider, ep)) { LOG.fine("Added annotation based interceptors and features"); } }
public List<Feature> getFeatures() { return getAnnotationObject(Features.class, Feature.class); }
protected boolean initializeAnnotationInterceptors(AnnotationInterceptors provider, Endpoint ep) { boolean hasAnnotation = false; if (provider.getInFaultInterceptors() != null) { ep.getInFaultInterceptors().addAll(provider.getInFaultInterceptors()); hasAnnotation = true; } if (provider.getInInterceptors() != null) { ep.getInInterceptors().addAll(provider.getInInterceptors()); hasAnnotation = true; } if (provider.getOutFaultInterceptors() != null) { ep.getOutFaultInterceptors().addAll(provider.getOutFaultInterceptors()); hasAnnotation = true; } if (provider.getOutInterceptors() != null) { ep.getOutInterceptors().addAll(provider.getOutInterceptors()); hasAnnotation = true; } if (provider.getFeatures() != null) { getFeatures().addAll(provider.getFeatures()); hasAnnotation = true; } return hasAnnotation; } }
private <T> List<T> initializeAnnotationObjects(Annotation annotation, Class<T> type) { List<T> list = new ArrayList<T>(); for (String cn : getAnnotationObjectNames(annotation)) { list.add(initializeAnnotationObject(cn, type)); } for (Class<? extends T> cn : getAnnotationObjectClasses(annotation, type)) { list.add(initializeAnnotationObject(cn)); } return list; }
public List<Interceptor<? extends Message>> getOutFaultInterceptors() { return getAnnotationInterceptorList(OutFaultInterceptors.class); }
/** * Add annotationed Interceptors and Features to the Endpoint * @param ep */ protected void initializeAnnotationInterceptors(Endpoint ep, Class<?> ... cls) { AnnotationInterceptors provider = new AnnotationInterceptors(cls); if (initializeAnnotationInterceptors(provider, ep)) { LOG.fine("Added annotation based interceptors and features"); } }
public List<Feature> getFeatures() { return getAnnotationObject(Features.class, Feature.class); }
public List<Interceptor<? extends Message>> getInFaultInterceptors() { return getAnnotationInterceptorList(InFaultInterceptors.class); }
/** * Add annotationed Interceptors and Features to the Endpoint * @param ep */ protected void initializeAnnotationInterceptors(Endpoint ep, Class<?> ... cls) { AnnotationInterceptors provider = new AnnotationInterceptors(cls); if (initializeAnnotationInterceptors(provider, ep)) { LOG.fine("Added annotation based interceptors and features"); } }
public List<Feature> getFeatures() { return getAnnotationObject(Features.class, Feature.class); }