Search in sources :

Example 1 with LazyLinkingResource2

use of com.avaloq.tools.ddk.xtext.linking.LazyLinkingResource2 in project dsl-devkit by dsldevkit.

the class BuilderIntegrationFragment method getGuiceBindingsRt.

@Override
public Set<Binding> getGuiceBindingsRt(final Grammar grammar) {
    final Set<Binding> bindings = super.getGuiceBindingsRt(grammar);
    final BindFactory factory = new BindFactory();
    factory.addTypeToType(IContainer.Manager.class.getName(), "com.avaloq.tools.ddk.xtext.builder.CachingStateBasedContainerManager");
    factory.addTypeToType(LazyLinkingResource.class.getName(), LazyLinkingResource2.class.getName());
    factory.addTypeToType(LazyURIEncoder.class.getName(), FastLazyURIEncoder.class.getName());
    final Set<Binding> result = factory.getBindings();
    result.addAll(bindings);
    return result;
}
Also used : Binding(org.eclipse.xtext.generator.Binding) FastLazyURIEncoder(com.avaloq.tools.ddk.xtext.linking.FastLazyURIEncoder) LazyLinkingResource2(com.avaloq.tools.ddk.xtext.linking.LazyLinkingResource2) LazyLinkingResource(org.eclipse.xtext.linking.lazy.LazyLinkingResource) FastLazyURIEncoder(com.avaloq.tools.ddk.xtext.linking.FastLazyURIEncoder) LazyURIEncoder(org.eclipse.xtext.linking.lazy.LazyURIEncoder) BindFactory(org.eclipse.xtext.generator.BindFactory)

Aggregations

FastLazyURIEncoder (com.avaloq.tools.ddk.xtext.linking.FastLazyURIEncoder)1 LazyLinkingResource2 (com.avaloq.tools.ddk.xtext.linking.LazyLinkingResource2)1 BindFactory (org.eclipse.xtext.generator.BindFactory)1 Binding (org.eclipse.xtext.generator.Binding)1 LazyLinkingResource (org.eclipse.xtext.linking.lazy.LazyLinkingResource)1 LazyURIEncoder (org.eclipse.xtext.linking.lazy.LazyURIEncoder)1