@Test public void testWrappedServiceCreateName() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(""); MockMessageProducer prod = new MockMessageProducer(); Service s = create(prod); assertNotSame(StatelessServiceWrapper.class.getName(), s.createName()); assertEquals(MockMessageProducer.class.getName(), s.createName()); StatelessServiceWrapper sw = new StatelessServiceWrapper(); assertEquals(StatelessServiceWrapper.class.getName(), sw.createName()); }
@Override public String createName() { if (getService() != null) { return getService().createName(); } return super.createName(); }
StatelessServiceWrapper extends ServiceImp implements EventHandlerAware, ServiceWrapper { @Override public String createName() { if (getService() != null) { return getService().createName(); } return super.createName(); } }
StatelessServiceWrapper extends ServiceImp implements EventHandlerAware, ServiceWrapper { @Override public String createName() { if (getService() != null) { return getService().createName(); } return super.createName(); } StatelessServiceWrapper();  StatelessServiceWrapper(Service s); }
StatelessServiceWrapper extends ServiceImp implements EventHandlerAware, ServiceWrapper { @Override public String createName() { if (getService() != null) { return getService().createName(); } return super.createName(); } StatelessServiceWrapper();  StatelessServiceWrapper(Service s); @Override void stop(); @Override void start(); @Override String createName(); @Override String createQualifier(); @Override boolean isTrackingEndpoint(); @Override boolean isBranching(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); Service getService(); void setService(Service s); @Override Boolean getIsTrackingEndpoint(); @Override void setIsTrackingEndpoint(Boolean b); RestartStrategy getRestartStrategy(); void setRestartStrategy(RestartStrategy restartStrategy); @Override void registerEventHandler(EventHandler eh); @Override Service[] wrappedServices(); }
StatelessServiceWrapper extends ServiceImp implements EventHandlerAware, ServiceWrapper { @Override public String createName() { if (getService() != null) { return getService().createName(); } return super.createName(); } StatelessServiceWrapper();  StatelessServiceWrapper(Service s); @Override void stop(); @Override void start(); @Override String createName(); @Override String createQualifier(); @Override boolean isTrackingEndpoint(); @Override boolean isBranching(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); Service getService(); void setService(Service s); @Override Boolean getIsTrackingEndpoint(); @Override void setIsTrackingEndpoint(Boolean b); RestartStrategy getRestartStrategy(); void setRestartStrategy(RestartStrategy restartStrategy); @Override void registerEventHandler(EventHandler eh); @Override Service[] wrappedServices();  }