29303132333435363738
// xstream.registerConverter(new PolicyConverter()); // xstream.processAnnotations(ComponentBean.class); final ComponentBean bean = new ComponentBean(); bean.service.provideSet.add(new ProvideBean()); log.debug("\n{}", xstream.toXML(bean)); }
458459460461462463464465466467468
throw new IllegalArgumentException( "annotated service must also be implemented : " + service + " / " + type); } final ProvideBean bean = new ProvideBean(); bean.type = service.getName(); provideSet.add(bean);
484485486487488489490491492493494
final ServiceBean service = component.service; for (final Class<?> iface : ifaceArray) { final ProvideBean bean = new ProvideBean(); bean.type = iface.getName(); /** no duplicates */ if (service.provideSet.contains(bean)) { continue;
403404405406407408409410411412413
429430431432433434435436437438439