本文整理匯總了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;
}