当前位置: 首页>>代码示例>>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;未经允许,请勿转载。