@Test public void testCreatedDummyInitializableIsInitialized() { final String parameters = "foobar"; DummyParameterizable parameterizable = (DummyParameterizable) m_parameterizableFactory.create("dummy:" + parameters); assertEquals(parameters, parameterizable.getParameters()); }
@Nonnull public T create(@Nullable String objectDescription) { T object; try { object = createInternal(objectDescription); } catch (IllegalArgumentException e) { log.warning(e.getMessage() + " -> Falling back to default " + m_fallbackObjectName + "."); object = createInternal(m_fallbackObjectName); } return object; }
ParameterizedObjectFactory { @Nonnull public T create(@Nullable String objectDescription) { T object; try { object = createInternal(objectDescription); } catch (IllegalArgumentException e) { log.warning(e.getMessage() + " -> Falling back to default " + m_fallbackObjectName + "."); object = createInternal(m_fallbackObjectName); } return object; } }
ParameterizedObjectFactory { @Nonnull public T create(@Nullable String objectDescription) { T object; try { object = createInternal(objectDescription); } catch (IllegalArgumentException e) { log.warning(e.getMessage() + " -> Falling back to default " + m_fallbackObjectName + "."); object = createInternal(m_fallbackObjectName); } return object; } ParameterizedObjectFactory(
      @Nonnull final Map<String, Class<? extends T>> objectNameToClassMapping,
			@Nonnull final String fallbackObjectName); }
ParameterizedObjectFactory { @Nonnull public T create(@Nullable String objectDescription) { T object; try { object = createInternal(objectDescription); } catch (IllegalArgumentException e) { log.warning(e.getMessage() + " -> Falling back to default " + m_fallbackObjectName + "."); object = createInternal(m_fallbackObjectName); } return object; } ParameterizedObjectFactory(
      @Nonnull final Map<String, Class<? extends T>> objectNameToClassMapping,
			@Nonnull final String fallbackObjectName); @Nonnull T create(@Nullable String objectDescription); }
ParameterizedObjectFactory { @Nonnull public T create(@Nullable String objectDescription) { T object; try { object = createInternal(objectDescription); } catch (IllegalArgumentException e) { log.warning(e.getMessage() + " -> Falling back to default " + m_fallbackObjectName + "."); object = createInternal(m_fallbackObjectName); } return object; } ParameterizedObjectFactory(
      @Nonnull final Map<String, Class<? extends T>> objectNameToClassMapping,
			@Nonnull final String fallbackObjectName); @Nonnull T create(@Nullable String objectDescription);  }