本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
});
}
示例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));
}
示例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());
}
示例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);
}
示例10: FormModelHandlerManagerImpl
import javax.enterprise.inject.Instance; //导入方法依赖的package包/类
@Inject
public FormModelHandlerManagerImpl(Instance<FormModelHandler<? extends FormModel>> instances) {
instances.forEach(handler -> handlers.put(handler.getModelType(),
handler));
}
示例11: ProviderFactory
import javax.enterprise.inject.Instance; //导入方法依赖的package包/类
@Inject
public ProviderFactory(final Instance<ProviderBuilder<?, ?>> builders) {
builders.forEach(this.builders::add);
}
示例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);
}
示例13: RuntimeManagerFactory
import javax.enterprise.inject.Instance; //导入方法依赖的package包/类
@Inject
public RuntimeManagerFactory(final Instance<RuntimeManager> managers) {
managers.forEach(this.managers::add);
}
示例14: ValidationMessageTranslatorUtils
import javax.enterprise.inject.Instance; //导入方法依赖的package包/类
@Inject
public ValidationMessageTranslatorUtils( Instance<ValidationMessageTranslator> checkTranslators ) {
checkTranslators.forEach( this.validationMessageTranslators::add );
}
示例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;
}