當前位置: 首頁>>代碼示例>>Java>>正文


Java Instance.forEach方法代碼示例

本文整理匯總了Java中javax.enterprise.inject.Instance.forEach方法的典型用法代碼示例。如果您正苦於以下問題:Java Instance.forEach方法的具體用法?Java Instance.forEach怎麽用?Java Instance.forEach使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.enterprise.inject.Instance的用法示例。


在下文中一共展示了Instance.forEach方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: GuidedRuleEditorCopyHelper

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public GuidedRuleEditorCopyHelper(final @Named("ioStrategy") IOService ioService,
                                  final GuidedRuleDRLResourceTypeDefinition drlResourceType,
                                  final GuidedRuleDSLRResourceTypeDefinition dslrResourceType,
                                  final GuidedRuleEditorServiceUtilities utilities,
                                  final CommentedOptionFactory commentedOptionFactory,
                                  final DataModelService dataModelService,
                                  final Instance<RuleModelIActionPersistenceExtension> persistenceExtensionInstance) {
    this.ioService = ioService;
    this.drlResourceType = drlResourceType;
    this.dslrResourceType = dslrResourceType;
    this.utilities = utilities;
    this.commentedOptionFactory = commentedOptionFactory;
    this.dataModelService = dataModelService;

    persistenceExtensionInstance.forEach(persistenceExtensions::add);
}
 
開發者ID:kiegroup,項目名稱:drools-wb,代碼行數:18,代碼來源:GuidedRuleEditorCopyHelper.java

示例2: GuidedRuleEditorRenameHelper

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public GuidedRuleEditorRenameHelper(final @Named("ioStrategy") IOService ioService,
                                    final GuidedRuleDRLResourceTypeDefinition drlResourceType,
                                    final GuidedRuleDSLRResourceTypeDefinition dslrResourceType,
                                    final GuidedRuleEditorServiceUtilities utilities,
                                    final CommentedOptionFactory commentedOptionFactory,
                                    final DataModelService dataModelService,
                                    final Instance<RuleModelIActionPersistenceExtension> persistenceExtensionInstance) {
    this.ioService = ioService;
    this.drlResourceType = drlResourceType;
    this.dslrResourceType = dslrResourceType;
    this.utilities = utilities;
    this.commentedOptionFactory = commentedOptionFactory;
    this.dataModelService = dataModelService;

    persistenceExtensionInstance.forEach(persistenceExtensions::add);
}
 
開發者ID:kiegroup,項目名稱:drools-wb,代碼行數:18,代碼來源:GuidedRuleEditorRenameHelper.java

示例3: ValidationServiceImpl

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public ValidationServiceImpl(final org.uberfire.ext.editor.commons.service.ValidationService validationService,
                             final PackageNameValidator packageNameValidator,
                             final ModuleNameValidator moduleNameValidator,
                             final JavaFileNameValidator javaFileNameValidator,
                             final Instance<SaveValidator<?>> saveValidatorInstance,
                             final Instance<CopyValidator<?>> copyValidatorInstance,
                             final Instance<DeleteValidator<?>> deleteValidatorInstance) {
    this.validationService = validationService;
    this.packageNameValidator = packageNameValidator;
    this.moduleNameValidator = moduleNameValidator;
    this.javaFileNameValidator = javaFileNameValidator;

    saveValidatorInstance.forEach(saveValidators::add);
    copyValidatorInstance.forEach(copyValidators::add);
    deleteValidatorInstance.forEach(deleteValidators::add);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:18,代碼來源:ValidationServiceImpl.java

示例4: GuidedRuleEditorServiceImpl

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public GuidedRuleEditorServiceImpl(final SessionInfo sessionInfo,
                                   final Instance<RuleModelIActionPersistenceExtension> persistenceExtensionInstance) {
    this.safeSessionInfo = new SafeSessionInfo(sessionInfo);

    persistenceExtensionInstance.forEach(persistenceExtensions::add);
}
 
開發者ID:kiegroup,項目名稱:drools-wb,代碼行數:8,代碼來源:GuidedRuleEditorServiceImpl.java

示例5: BackendFormGenerator

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public BackendFormGenerator(LayoutGenerator layoutGenerator,
                            Instance<FormElementProcessor<? extends FormElement>> elementProcessors,
                            Instance<FormGenerationResourcesProvider> settingsBuilderProviders) {
    super(layoutGenerator);

    elementProcessors.forEach(formElementProcessor -> registerProcessor(formElementProcessor));
    settingsBuilderProviders.forEach(formDefinitionSettingsBuilderProvider -> {
        registerResources(formDefinitionSettingsBuilderProvider);
        settingsBuilderProviders.destroy(formDefinitionSettingsBuilderProvider);
    });
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:13,代碼來源:BackendFormGenerator.java

示例6: BackendFieldElementProcessor

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public BackendFieldElementProcessor(FieldManager fieldManager,
                                    PropertyValueExtractor propertyValueExtractor,
                                    Instance<FieldInitializer<? extends FieldDefinition>> initializers) {
    super(fieldManager,
          propertyValueExtractor);

    initializers.forEach(fieldInitializer -> registerInitializer(fieldInitializer));
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:10,代碼來源:BackendFieldElementProcessor.java

示例7: ExpressionEditorDefinitionsProducer

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public ExpressionEditorDefinitionsProducer(final Instance<ExpressionEditorDefinition> expressionEditorDefinitionBeans) {
    expressionEditorDefinitionBeans.forEach(t -> expressionEditorDefinitions.add(t));
    expressionEditorDefinitions.sort((o1, o2) -> o1.getType().ordinal() - o2.getType().ordinal());
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:6,代碼來源:ExpressionEditorDefinitionsProducer.java

示例8: FunctionSupplementaryGridEditorDefinitionsProducer

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public FunctionSupplementaryGridEditorDefinitionsProducer(final @FunctionGridSupplementaryEditor Instance<ExpressionEditorDefinition> expressionEditorDefinitionBeans) {
    expressionEditorDefinitionBeans.forEach(t -> expressionEditorDefinitions.add(t));
    expressionEditorDefinitions.sort((o1, o2) -> o1.getType().ordinal() - o2.getType().ordinal());
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:6,代碼來源:FunctionSupplementaryGridEditorDefinitionsProducer.java

示例9: BackendMetaDataEntryManager

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public BackendMetaDataEntryManager(Instance<MetaDataEntryProcessor<? extends MetaDataEntry, ?>> instance) {
    instance.forEach(this::registerProcessor);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:5,代碼來源:BackendMetaDataEntryManager.java

示例10: FormModelHandlerManagerImpl

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public FormModelHandlerManagerImpl(Instance<FormModelHandler<? extends FormModel>> instances) {
    instances.forEach(handler -> handlers.put(handler.getModelType(),
                                              handler));
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:6,代碼來源:FormModelHandlerManagerImpl.java

示例11: ProviderFactory

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public ProviderFactory(final Instance<ProviderBuilder<?, ?>> builders) {
    builders.forEach(this.builders::add);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:5,代碼來源:ProviderFactory.java

示例12: RuntimeFactory

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public RuntimeFactory(final Instance<RuntimeBuilder<?, ?>> builders,
                      final Instance<RuntimeDestroyer> destroyers) {
    builders.forEach(this.builders::add);
    destroyers.forEach(this.destroyers::add);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:7,代碼來源:RuntimeFactory.java

示例13: RuntimeManagerFactory

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public RuntimeManagerFactory(final Instance<RuntimeManager> managers) {
    managers.forEach(this.managers::add);
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:5,代碼來源:RuntimeManagerFactory.java

示例14: ValidationMessageTranslatorUtils

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
@Inject
public ValidationMessageTranslatorUtils( Instance<ValidationMessageTranslator> checkTranslators ) {
    checkTranslators.forEach( this.validationMessageTranslators::add );
}
 
開發者ID:kiegroup,項目名稱:kie-wb-common,代碼行數:5,代碼來源:ValidationMessageTranslatorUtils.java

示例15: all

import javax.enterprise.inject.Instance; //導入方法依賴的package包/類
private <T> Collection<T> all(Class<? extends T> type) {
	Instance<? extends T> instance = CDI.current().select(type);

	Collection<T> types = new ArrayList<>();

	instance.forEach(types::add);

	return types;
}
 
開發者ID:ljtfreitas,項目名稱:java-restify,代碼行數:10,代碼來源:RestifyProxyCdiBeanFactory.java


注:本文中的javax.enterprise.inject.Instance.forEach方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。