public void registerLegacy(Class<? extends MessageBodyReaderInterceptor> decl) { register(new LegacyPerMethodInterceptorFactory(decl, precedence) { @Override public Match postMatch(Class declaring, AccessibleObject target) { Object obj = getLegacyMatch(declaring, target); if (obj == null) return null; MessageBodyReaderInterceptor interceptor = (MessageBodyReaderInterceptor)obj; return new Match(new ReaderInterceptorFacade(interceptor), order); } }); }
public void registerLegacy(Class<? extends MessageBodyReaderInterceptor> decl) { register(new LegacyPerMethodInterceptorFactory(decl, precedence) { @Override public Match postMatch(Class declaring, AccessibleObject target) { Object obj = getLegacyMatch(declaring, target); if (obj == null) return null; MessageBodyReaderInterceptor interceptor = (MessageBodyReaderInterceptor)obj; return new Match(new ReaderInterceptorFacade(interceptor), order); } }); }
public void registerLegacy(MessageBodyReaderInterceptor interceptor) { register(new LegacySingletonInterceptorFactory(interceptor.getClass(), interceptor, precedence) { @Override public Match postMatch(Class declaring, AccessibleObject target) { Object obj = getLegacyMatch(declaring, target); if (obj == null) return null; MessageBodyReaderInterceptor interceptor = (MessageBodyReaderInterceptor)obj; return new Match(new ReaderInterceptorFacade(interceptor), order); } }); } }
public void registerLegacy(MessageBodyReaderInterceptor interceptor) { register(new LegacySingletonInterceptorFactory(interceptor.getClass(), interceptor, precedence) { @Override public Match postMatch(Class declaring, AccessibleObject target) { Object obj = getLegacyMatch(declaring, target); if (obj == null) return null; MessageBodyReaderInterceptor interceptor = (MessageBodyReaderInterceptor)obj; return new Match(new ReaderInterceptorFacade(interceptor), order); } }); } }