@Test public void testCreateImageModeReturnsACompoundImageMode() { ImageMode imageMode = m_imageModeFactory.createImageMode("dummy", "dummy"); assertTrue(imageMode instanceof CompoundImageMode); }
@Nonnull public ImageMode createImageMode( @Nullable final String areaProviderDescription, @Nullable final String renderStrategyDescription) { return new CompoundImageMode( new CachedAreaProvider( getAreaProvider(areaProviderDescription)), getRenderStrategy(renderStrategyDescription)); }
ImageModeFactory { @Nonnull public ImageMode createImageMode( @Nullable final String areaProviderDescription, @Nullable final String renderStrategyDescription) { return new CompoundImageMode( new CachedAreaProvider( getAreaProvider(areaProviderDescription)), getRenderStrategy(renderStrategyDescription)); } }
ImageModeFactory { @Nonnull public ImageMode createImageMode( @Nullable final String areaProviderDescription, @Nullable final String renderStrategyDescription) { return new CompoundImageMode( new CachedAreaProvider( getAreaProvider(areaProviderDescription)), getRenderStrategy(renderStrategyDescription)); } ImageModeFactory(
      @Nonnull Map<String, Class<? extends AreaProvider>> areaProviderMapping,
      @Nonnull String fallbackAreaProvider,
      @Nonnull Map<String, Class<? extends RenderStrategy>> renderStrategyMapping,
      @Nonnull String fallbackRenderStrategyName); }
ImageModeFactory { @Nonnull public ImageMode createImageMode( @Nullable final String areaProviderDescription, @Nullable final String renderStrategyDescription) { return new CompoundImageMode( new CachedAreaProvider( getAreaProvider(areaProviderDescription)), getRenderStrategy(renderStrategyDescription)); } ImageModeFactory(
      @Nonnull Map<String, Class<? extends AreaProvider>> areaProviderMapping,
      @Nonnull String fallbackAreaProvider,
      @Nonnull Map<String, Class<? extends RenderStrategy>> renderStrategyMapping,
      @Nonnull String fallbackRenderStrategyName); @Nonnull ImageMode createImageMode(
      @Nullable final String areaProviderDescription,
      @Nullable final String renderStrategyDescription); @Nonnull synchronized static ImageModeFactory getSharedInstance(); }
ImageModeFactory { @Nonnull public ImageMode createImageMode( @Nullable final String areaProviderDescription, @Nullable final String renderStrategyDescription) { return new CompoundImageMode( new CachedAreaProvider( getAreaProvider(areaProviderDescription)), getRenderStrategy(renderStrategyDescription)); } ImageModeFactory(
      @Nonnull Map<String, Class<? extends AreaProvider>> areaProviderMapping,
      @Nonnull String fallbackAreaProvider,
      @Nonnull Map<String, Class<? extends RenderStrategy>> renderStrategyMapping,
      @Nonnull String fallbackRenderStrategyName); @Nonnull ImageMode createImageMode(
      @Nullable final String areaProviderDescription,
      @Nullable final String renderStrategyDescription); @Nonnull synchronized static ImageModeFactory getSharedInstance();  }