Java 类org.eclipse.xtext.service.SingletonBinding 实例源码

项目:xtext-core    文件:CrossRefTest.java   
@Override
public void setUp() throws Exception {
    super.setUp();
    with(new LangATestLanguageStandaloneSetup() {
        @Override
        public Injector createInjector() {
            return Guice.createInjector(new LangATestLanguageRuntimeModule() {
                @Override
                @SingletonBinding
                public Class<? extends ILinkingService> bindILinkingService() {
                    return CrossRefLinkingService.class;
                }
            });
        }
    });
    crossRefSerializer =  get(ICrossReferenceSerializer.class);
    grammar = (LangATestLanguageGrammarAccess) get(IGrammarAccess.class);
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends PkmntcgoValidator> bindPkmntcgoValidator() {
    return PkmntcgoValidator.class;
}
项目:pokemon-tcgo-deck-generator    文件:AbstractPkmntcgoUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:n4js    文件:N4JSStandaloneTestsModule.java   
/** */
@SingletonBinding
public Class<? extends ResourceHelper> bindResourceHelper() {
    return ResourceHelper.class;
}
项目:n4js    文件:AbstractTypesRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends TypesValidator> bindTypesValidator() {
    return TypesValidator.class;
}
项目:n4js    文件:AbstractRegularExpressionRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends RegularExpressionValidator> bindRegularExpressionValidator() {
    return RegularExpressionValidator.class;
}
项目:n4js    文件:AbstractN4JSUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:n4js    文件:AbstractRegularExpressionUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:n4js    文件:AbstractN4JSRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends N4JSValidator> bindN4JSValidator() {
    return N4JSValidator.class;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Binds to special N4JS version of CancelableDiagnostician supporting pre- and post validation phases.
 */
@Override
@SingletonBinding
public Class<? extends Diagnostician> bindDiagnostician() {
    return PrePostDiagnostician.class;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Binds a special language-independent validator checking project setups, mainly used for polyfill-clashes.
 */
@SingletonBinding(eager = true)
public Class<? extends org.eclipse.n4js.validation.validators.N4JSProjectSetupValidator> bindN4JSProjectSetupValidator() {
    return org.eclipse.n4js.validation.validators.N4JSProjectSetupValidator.class;
}
项目:n4js    文件:N4JSRuntimeModule.java   
/**
 * Bind JavaScriptVariantHelper
 */
@SingletonBinding
public Class<? extends JavaScriptVariantHelper> bindJavaScriptVariantHelper() {
    return N4JSJavaScriptVariantHelper.class;
}
项目:n4js    文件:AbstractN4MFUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:n4js    文件:AbstractN4MFRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends N4MFValidator> bindN4MFValidator() {
    return N4MFValidator.class;
}
项目:n4js    文件:AbstractTypesUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:Xtext_Xtend_HTML_Generator    文件:AbstractMyDslRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends MyDslValidator> bindMyDslValidator() {
    return MyDslValidator.class;
}
项目:bromium    文件:AbstractBromiumUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:bromium    文件:AbstractBromiumRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends BromiumValidator> bindBromiumValidator() {
    return BromiumValidator.class;
}
项目:gw4e.project    文件:AbstractDSLPoliciesUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:gw4e.project    文件:AbstractDSLPoliciesRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends DSLPoliciesValidator> bindDSLPoliciesValidator() {
    return DSLPoliciesValidator.class;
}
项目:lcdsl    文件:AbstractLcDslUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:lcdsl    文件:AbstractLcDslRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends LcDslValidator> bindLcDslValidator() {
    return LcDslValidator.class;
}
项目:gemoc-studio    文件:AbstractDslRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends DslValidator> bindDslValidator() {
    return DslValidator.class;
}
项目:gemoc-studio    文件:AbstractDslUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends RestauranteValidator> bindRestauranteValidator() {
    return RestauranteValidator.class;
}
项目:org.xtext.dsl.restaurante    文件:AbstractRestauranteUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:OCCI-Studio    文件:AbstractOCCIRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends OCCIValidator> bindOCCIValidator() {
    return OCCIValidator.class;
}
项目:OCCI-Studio    文件:AbstractOCCIUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:xtext-extras    文件:AbstractPureXbaseRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends PureXbaseValidator> bindPureXbaseValidator() {
    return PureXbaseValidator.class;
}
项目:xtext-extras    文件:AbstractXbaseRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends XbaseValidator> bindXbaseValidator() {
    return XbaseValidator.class;
}
项目:xtext-extras    文件:AbstractXbaseWithAnnotationsRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends XbaseWithAnnotationsValidator> bindXbaseWithAnnotationsValidator() {
    return XbaseWithAnnotationsValidator.class;
}
项目:xtext-extras    文件:DefaultXbaseRuntimeModule.java   
@SingletonBinding(eager = true)
public Class<? extends JvmTypeReferencesValidator> bindJvmTypeReferencesValidator() {
    return JvmTypeReferencesValidator.class;
}
项目:xtext-extras    文件:DefaultXbaseRuntimeModule.java   
@SingletonBinding(eager = true)
public Class<? extends UniqueClassNameValidator> bindUniqueClassNameValidator() {
    return UniqueClassNameValidator.class;
}
项目:xtext-extras    文件:AbstractBuilderTestLanguageRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends BuilderTestLanguageValidator> bindBuilderTestLanguageValidator() {
    return BuilderTestLanguageValidator.class;
}
项目:xtext-extras    文件:AbstractBug462047LangRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends Bug462047LangValidator> bindBug462047LangValidator() {
    return Bug462047LangValidator.class;
}
项目:xtext-extras    文件:AbstractXImportSectionTestLangRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends XImportSectionTestLangValidator> bindXImportSectionTestLangValidator() {
    return XImportSectionTestLangValidator.class;
}
项目:xtext-extras    文件:AbstractContentAssistFragmentTestLangRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends ContentAssistFragmentTestLangValidator> bindContentAssistFragmentTestLangValidator() {
    return ContentAssistFragmentTestLangValidator.class;
}
项目:M2Doc    文件:AbstractMyDslUiModule.java   
@SingletonBinding(eager=true)
public Class<? extends LanguageRegistrar> bindLanguageRegistrar() {
    return LanguageRegistrar.class;
}
项目:M2Doc    文件:AbstractMyDslRuntimeModule.java   
@SingletonBinding(eager=true)
public Class<? extends MyDslValidator> bindMyDslValidator() {
    return MyDslValidator.class;
}