@Test public void testRegisterUnregisterDescriptor() throws Exception { registry.clear(); MarshallerRegistryDescriptor desc = new MarshallerRegistryDescriptor(); desc.klass = DefaultNumberReader.class; desc.enable = true; MarshallerRegistryImpl component = (MarshallerRegistryImpl) registry; assertIsEmpty(); component.registerContribution(desc, XP_MARSHALLERS, null); assertHasOne(); component.unregisterContribution(desc, XP_MARSHALLERS, null); assertIsEmpty(); }
@Override public void clear() { marshallersByType.clear(); writersByMediaType.clear(); readersByMediaType.clear(); writers.clear(); readers.clear(); }
MarshallerRegistryImpl extends DefaultComponent implements MarshallerRegistry { @Override public void clear() { marshallersByType.clear(); writersByMediaType.clear(); readersByMediaType.clear(); writers.clear(); readers.clear(); } }
MarshallerRegistryImpl extends DefaultComponent implements MarshallerRegistry { @Override public void clear() { marshallersByType.clear(); writersByMediaType.clear(); readersByMediaType.clear(); writers.clear(); readers.clear(); }  }
MarshallerRegistryImpl extends DefaultComponent implements MarshallerRegistry { @Override public void clear() { marshallersByType.clear(); writersByMediaType.clear(); readersByMediaType.clear(); writers.clear(); readers.clear(); }  @Override void deactivate(ComponentContext context); @Override void register(Class<?> marshaller); @Override void deregister(Class<?> marshaller); @Override Writer<T> getWriter(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Writer<T> getUniqueWriter(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override @SuppressWarnings("unchecked") Collection<Writer<T>> getAllWriters(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Writer<T> getWriter(RenderingContext ctx, Class<T> marshalledClazz, MediaType mediatype); @Override Reader<T> getReader(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Reader<T> getUniqueReader(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override @SuppressWarnings("unchecked") Collection<Reader<T>> getAllReaders(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Reader<T> getReader(RenderingContext ctx, Class<T> marshalledClazz, MediaType mediatype); Marshaller<T> getMarshaller(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype, Set<MarshallerInspector> customs, Set<MarshallerInspector> wildcards,
            boolean forceInstantiation); Collection<Marshaller<T>> getAllMarshallers(RenderingContext ctx, Class<T> marshalledClazz,
            Type genericType, MediaType mediatype, Set<MarshallerInspector> customs,
            Set<MarshallerInspector> wildcards); @Override T getInstance(RenderingContext ctx, Class<T> marshallerClass); @Override T getUniqueInstance(RenderingContext ctx, Class<T> marshallerClass); @Override void clear(); }
MarshallerRegistryImpl extends DefaultComponent implements MarshallerRegistry { @Override public void clear() { marshallersByType.clear(); writersByMediaType.clear(); readersByMediaType.clear(); writers.clear(); readers.clear(); }  @Override void deactivate(ComponentContext context); @Override void register(Class<?> marshaller); @Override void deregister(Class<?> marshaller); @Override Writer<T> getWriter(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Writer<T> getUniqueWriter(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override @SuppressWarnings("unchecked") Collection<Writer<T>> getAllWriters(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Writer<T> getWriter(RenderingContext ctx, Class<T> marshalledClazz, MediaType mediatype); @Override Reader<T> getReader(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Reader<T> getUniqueReader(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override @SuppressWarnings("unchecked") Collection<Reader<T>> getAllReaders(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype); @Override Reader<T> getReader(RenderingContext ctx, Class<T> marshalledClazz, MediaType mediatype); Marshaller<T> getMarshaller(RenderingContext ctx, Class<T> marshalledClazz, Type genericType,
            MediaType mediatype, Set<MarshallerInspector> customs, Set<MarshallerInspector> wildcards,
            boolean forceInstantiation); Collection<Marshaller<T>> getAllMarshallers(RenderingContext ctx, Class<T> marshalledClazz,
            Type genericType, MediaType mediatype, Set<MarshallerInspector> customs,
            Set<MarshallerInspector> wildcards); @Override T getInstance(RenderingContext ctx, Class<T> marshallerClass); @Override T getUniqueInstance(RenderingContext ctx, Class<T> marshallerClass); @Override void clear(); static final String XP_MARSHALLERS; }