@Test public void test() { final String base = "base"; EventNameDestinationResolver resolver = new EventNameDestinationResolver(base); resolver.resolveDestination(null, null); String result = resolver.resolveDestination(DummyEventImpl.class, null); assertEquals(result, "base.DummyEventImpl"); }
@Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; }
EventNameDestinationResolver implements JMSDestinationResolver<String> { @Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; } }
EventNameDestinationResolver implements JMSDestinationResolver<String> { @Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; } EventNameDestinationResolver(String destinationBase); }
EventNameDestinationResolver implements JMSDestinationResolver<String> { @Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; } EventNameDestinationResolver(String destinationBase); @Override String resolveDestination(Class<? extends Event> eventClass, Object[] args); }
EventNameDestinationResolver implements JMSDestinationResolver<String> { @Override public String resolveDestination(Class<? extends Event> eventClass, Object[] args) { if (eventClass != null) { return destinationBase + "." + eventClass.getSimpleName(); } return destinationBase; } EventNameDestinationResolver(String destinationBase); @Override String resolveDestination(Class<? extends Event> eventClass, Object[] args);  }