private void registerGuiceBindingsRt() { new GuiceModuleAccess.BindingFactory() .addTypeToType(typeRef(IAtomicDerivedStateProcessorRegistry.class), typeRef(AtomicDerivedStateProcessorRegistry.class)) .addTypeToType(typeRef(IDerivedStateProcessor.class), typeRef(DerivedStateProcessor.class)) .addTypeToType(typeRef(ICDOResourceStateHandler.class), typeRef(DerivedStateProcessor.class)) .addTypeToType(typeRef(IDerivedStateComputer.class), typeRef(DefaultDerivedStateComputer.class)) .addTypeToType(typeRef(IDerivedStateComputerSorter.class), getDerivedStateElementComparatorName()) .addTypeToType(typeRef(ITransientStatusProvider.class), typeRef(DelegatingTransientStatusProvider.class)) .addTypeToType(typeRef(ITransientValueService.class), typeRef(BasicCooperateTransientValueService.class)) .addConfiguredBinding(ITransientValueService.class.getSimpleName(), new StringConcatenationClient() { @Override protected void appendTo(StringConcatenationClient.TargetStringConcatenation builder) { builder.append("binder.bind("); builder.append(org.eclipse.xtext.serializer.sequencer.ITransientValueService.class.getName()); builder.append(".class).to("); builder.append(BasicCooperateTransientValueService.class.getName()); builder.append(".class);"); } }) .addTypeToType(typeRef(XtextResource.class), typeRef(InitializingStateAwareResource.class)) .addTypeToType(typeRef(IResourceDescription.Manager.class), typeRef(DerivedStateAwareResourceDescriptionManager.class)) .contributeTo(getLanguage().getRuntimeGenModule()); Set<String> requiredBundles = getProjectConfig().getRuntime().getManifest().getRequiredBundles(); requiredBundles.add("de.cooperateproject.modeling.textual.xtext.runtime;visibility:=reexport"); requiredBundles.add("de.cooperateproject.modeling.textual.common;visibility:=reexport"); }
public Class<? extends IResourceDescription.Manager> bindIResourceDescription$Manager() { return DerivedStateAwareResourceDescriptionManager.class; }
/** * @since 2.2 */ public Class<? extends IResourceDescription.Manager> bindIResourceDescriptionManager() { return DerivedStateAwareResourceDescriptionManager.class; }