示例#1
0
 private Component wrapWithCompositeOfTypeA(int index, Component wrappee) throws Exception {
   Component wrapper = Setup.createCompositeOfTypeA("composite_a" + index);
   GCM.getContentController(wrapper).addFcSubComponent(wrappee);
   GCM.getBindingController(wrapper).bindFc("i1", wrappee.getFcInterface("i1"));
   GCM.getBindingController(wrappee).bindFc("i2", wrapper.getFcInterface("i2"));
   return wrapper;
 }
示例#2
0
 private Component wrapWithSynchronousCompositeOfTypeB(int index, Component wrappee)
     throws Exception {
   Component wrapper = Setup.createSynchronousCompositeOfTypeB("sync_composite_b" + index);
   GCM.getContentController(wrapper).addFcSubComponent(wrappee);
   GCM.getBindingController(wrapper).bindFc("i2", wrappee.getFcInterface("i2"));
   return wrapper;
 }