@Test public void testCreateNamespace() throws Exception { for (int i = 0; i < ALL_EVENT_CLASSES.length; i++) { Event e = (Event) EventFactory.create(Class.forName(ALL_EVENT_CLASSES[i])); assertNotNull(e.createNameSpace()); } }
public static Event create(String name) throws CoreException { try { Event result = (Event) Class.forName(name).newInstance(); result.setUniqueId(uidGenerator.create(result)); result.setCreationTime(System.currentTimeMillis()); return result; } catch (Exception e) { throw new CoreException(e); } }
EventFactory { public static Event create(String name) throws CoreException { try { Event result = (Event) Class.forName(name).newInstance(); result.setUniqueId(uidGenerator.create(result)); result.setCreationTime(System.currentTimeMillis()); return result; } catch (Exception e) { throw new CoreException(e); } } }
EventFactory { public static Event create(String name) throws CoreException { try { Event result = (Event) Class.forName(name).newInstance(); result.setUniqueId(uidGenerator.create(result)); result.setCreationTime(System.currentTimeMillis()); return result; } catch (Exception e) { throw new CoreException(e); } }  }
EventFactory { public static Event create(String name) throws CoreException { try { Event result = (Event) Class.forName(name).newInstance(); result.setUniqueId(uidGenerator.create(result)); result.setCreationTime(System.currentTimeMillis()); return result; } catch (Exception e) { throw new CoreException(e); } }  static Event create(String name); static T create(Class<T> name); static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller); static Event createEvent(AdaptrisMessage msg); }
EventFactory { public static Event create(String name) throws CoreException { try { Event result = (Event) Class.forName(name).newInstance(); result.setUniqueId(uidGenerator.create(result)); result.setCreationTime(System.currentTimeMillis()); return result; } catch (Exception e) { throw new CoreException(e); } }  static Event create(String name); static T create(Class<T> name); static Event createEvent(AdaptrisMessage msg, AdaptrisMarshaller marshaller); static Event createEvent(AdaptrisMessage msg);  }