@Override public Object createResource( final HttpRequest request, final HttpResponse response, final ResteasyProviderFactory factory) { final Object resource = entry.getValue(); propertyInjector.inject(request, response, resource); return resource; }
public void add(final BeanEntry<Marked, Item> bean, final MarkedItemWatcher watcher) throws Exception { assertNull(watcher.items.put(Integer.valueOf(bean.getKey().value()), bean.getValue())); }
public void remove( final BeanEntry<javax.inject.Named, Item> bean, final NamedItemWatcher watcher) throws Exception { assertEquals(watcher.items.remove(bean.getKey().value()), bean.getValue()); }
public void add(final BeanEntry<javax.inject.Named, Item> bean, final NamedItemWatcher watcher) throws Exception { assertNull(watcher.items.put(bean.getKey().value(), bean.getValue())); }
public void remove(final BeanEntry<Annotation, Item> bean, final AnnotatedItemWatcher watcher) throws Exception { assertEquals(watcher.items.remove(bean.getKey()), bean.getValue()); }
public void add(final BeanEntry<Annotation, Item> bean, final AnnotatedItemWatcher watcher) throws Exception { assertNull(watcher.items.put(bean.getKey(), bean.getValue())); }
public void remove(final BeanEntry<Marked, Item> bean, final MarkedItemWatcher watcher) throws Exception { assertEquals(watcher.items.remove(Integer.valueOf(bean.getKey().value())), bean.getValue()); }
public void remove( final BeanEntry<Named, RepositoryTypeDescriptor> entry, final RepositoryTypeRegistry registry) { registry.unregisterRepositoryTypeDescriptors(entry.getValue()); }
public void add(final BeanEntry<Named, Filter> entry, final FilterChainManager manager) { manager.addFilter(entry.getKey().value(), entry.getValue(), true); }