use of ddf.catalog.data.impl.InjectableAttributeImpl in project ddf by codice.
the class ValidationParser method parseInjections.
private List<Callable<Boolean>> parseInjections(Changeset changeset, List<Outer.Injection> injections) {
BundleContext context = getBundleContext();
return injections.stream().map(injection -> (Callable<Boolean>) () -> {
String attribute = injection.attribute;
InjectableAttribute injectableAttribute = new InjectableAttributeImpl(attribute, injection.metacardTypes);
ServiceRegistration<InjectableAttribute> injectableAttributeService = context.registerService(InjectableAttribute.class, injectableAttribute, null);
changeset.injectableAttributeServices.add(injectableAttributeService);
return true;
}).collect(toList());
}
Aggregations