@Test public void testDoService() throws Exception { DynamicSharedService sharedService = new DynamicSharedService(getName()); Adapter adapter = createAdapterForSharedService(sharedService, new NullService(getName())); try { LifecycleHelper.initAndStart(adapter); AdaptrisMessage msg = DefaultMessageFactory.getDefaultInstance().newMessage(); sharedService.doService(msg); sharedService.doService(msg); assertEquals(1, sharedService.getCache().size()); MleMarker marker = msg.getMessageLifecycleEvent().getMleMarkers().get(0); assertEquals(NullService.class.getName(), marker.getName()); assertEquals(getName(), marker.getQualifier()); assertEquals(true, marker.getWasSuccessful()); } finally { LifecycleHelper.stopAndClose(adapter); } assertEquals(0, sharedService.getCache().size()); }
@Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); @Override boolean isBranching(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); T withMaxEntries(Integer i); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); T withExpiration(TimeInterval i); }
DynamicSharedService extends SharedServiceImpl { @Override public void doService(AdaptrisMessage msg) throws ServiceException { applyService(resolveAndStart(msg), msg); } DynamicSharedService();  DynamicSharedService(String lookupName); @Override void init(); @Override void start(); @Override void stop(); @Override void close(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); @Override boolean isBranching(); Integer getMaxEntries(); void setMaxEntries(Integer maxEntries); T withMaxEntries(Integer i); TimeInterval getExpiration(); void setExpiration(TimeInterval expiration); T withExpiration(TimeInterval i);  }