public void registryUpdated(JaxrsInterceptorRegistry registry) { this.interceptors = factory .getServerReaderInterceptorRegistry().postMatch( declaringClass, target); }
public ReaderInterceptor[] getReaderInterceptors(Class declaring, AccessibleObject target) { return providerFactory.getClientReaderInterceptorRegistry().postMatch(declaring, target); }
public ReaderInterceptor[] getReaderInterceptors(Class declaring, AccessibleObject target) { return providerFactory.getClientReaderInterceptorRegistry().postMatch(declaring, target); }
public MessageBodyParameterInjector(Class declaringClass, AccessibleObject target, Class type, Type genericType, Annotation[] annotations, ResteasyProviderFactory factory) { this.factory = factory; this.target = target; this.declaringClass = declaringClass; if (type.equals(MarshalledEntity.class)) { if (genericType == null || !(genericType instanceof ParameterizedType)) { throw new RuntimeException(Messages.MESSAGES.marshalledEntityMustHaveTypeInfo()); } isMarshalledEntity = true; ParameterizedType param = (ParameterizedType) genericType; this.genericType = param.getActualTypeArguments()[0]; this.type = Types.getRawType(this.genericType); } else { this.type = type; this.genericType = genericType; } this.annotations = annotations; this.interceptors = factory .getServerReaderInterceptorRegistry().postMatch( this.declaringClass, this.target); // this is for when an interceptor is added after the creation of the injector factory.getServerReaderInterceptorRegistry().getListeners().add(this); }
public static void applyDefaultInterceptors( ClientInterceptorRepositoryImpl repository, ResteasyProviderFactory providerFactory, Class declaring, Method method) { repository.setReaderInterceptors(providerFactory .getClientReaderInterceptorRegistry().postMatch(declaring, method)); repository.setWriterInterceptors(providerFactory .getClientWriterInterceptorRegistry().postMatch(declaring, method)); repository.setExecutionInterceptors(providerFactory .getClientExecutionInterceptorRegistry().bind(declaring, method)); }
setReaderInterceptors(providerFactory.getClientReaderInterceptorRegistry().postMatch(null, null));
setReaderInterceptors(providerFactory.getClientReaderInterceptorRegistry().postMatch(null, null));