예제 #1
0
 public LifecycleStoreCreator addEmptyStartHandler() {
   TestLifecycleHandler h = new TestLifecycleHandler(LifecycleHandlerType.START);
   LifecycleHandler hh = createProxy(h, LifecycleHandlerType.START.getTypeClass());
   builder.setHandler(hh, LifecycleHandlerType.START);
   addToMapping(LifecycleHandlerType.START, h);
   return this;
 }
예제 #2
0
 public LifecycleStoreCreator addDefaultStartDetector(int i) {
   TestLifecycleHandler h = new TestLifecycleHandler(DetectorType.START, i, false);
   StartDetector hh = createProxy(h, StartDetector.class);
   builder.setStartDetector(hh);
   addToMapping(DetectorType.START, h);
   return this;
 }
예제 #3
0
 public LifecycleStoreCreator addLifecycleHandler(
     LifecycleHandlerType type, boolean throwsException) {
   TestLifecycleHandler h = new TestLifecycleHandler(type, throwsException);
   LifecycleHandler hh = createProxy(h, type.getTypeClass());
   builder.setHandler(hh, type);
   addToMapping(type, h);
   return this;
 }
예제 #4
0
 public LifecycleStore build() {
   return builder.build();
 }