本文整理了Java中javax.enterprise.inject.Any.<init>()
方法的一些代码示例,展示了Any.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.<init>()
方法的具体详情如下:
包路径:javax.enterprise.inject.Any
类名称:Any
方法名:<init>
暂无
代码示例来源:origin: 4thline/cling
@ApplicationScoped
static class RegistryListenerAdapter implements RegistryListener {
@Inject
@Any
Event<RemoteDeviceDiscovery> remoteDeviceDiscoveryEvent;
@Inject
@Any
Event<FailedRemoteDeviceDiscovery> failedRemoteDeviceDiscoveryEvent;
@Inject
@Any
Event<LocalDeviceDiscovery> localDeviceDiscoveryEvent;
@Inject
@Any
Event<RegistryShutdown> registryShutdownEvent;
代码示例来源:origin: javaee-samples/javaee7-samples
/**
* @author Arun Gupta
*/
@Decorator
public class MyDecorator implements Greeting {
@Inject
@Delegate
@Any
Greeting greeting;
@Override
public String greet(String name) {
return greeting.greet(name + " very much!");
}
}
代码示例来源:origin: jersey/jersey
/**
* Decorator wraps the hello resource by stars.
*
* @author Petr Bouda
*/
@Decorator
public class HelloStarDecorator implements Hello {
@Inject
@Delegate
@Any
Hello account;
@Override
public String hello() {
return "***" + account.hello() + "***";
}
}
代码示例来源:origin: kingthy/TVRemoteIME
@ApplicationScoped
static class RegistryListenerAdapter implements RegistryListener {
@Inject
@Any
Event<RemoteDeviceDiscovery> remoteDeviceDiscoveryEvent;
@Inject
@Any
Event<FailedRemoteDeviceDiscovery> failedRemoteDeviceDiscoveryEvent;
@Inject
@Any
Event<LocalDeviceDiscovery> localDeviceDiscoveryEvent;
@Inject
@Any
Event<RegistryShutdown> registryShutdownEvent;
代码示例来源:origin: caelum/vraptor4
@Inject
public XStreamConverters(@Any Instance<Converter> converters, @Any Instance<SingleValueConverter> singleValueConverters) {
this.converters = converters;
this.singleValueConverters = singleValueConverters;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public ClientProfileManager(final DefinitionUtils definitionUtils,
final @Any ManagedInstance<Profile> profileInstances) {
this.definitionUtils = definitionUtils;
this.profileInstances = profileInstances;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public StunnerPreferencesRegistries(final DefinitionUtils definitionUtils,
final @Any ManagedInstance<StunnerPreferencesRegistry> preferencesRegistries) {
this.definitionUtils = definitionUtils;
this.preferencesRegistries = preferencesRegistries;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Inject
public ElementShapeGlyphRenderer(final LienzoGlyphRenderer<ShapeGlyph> lienzoShapeGlyphRenderer,
final @Any ManagedInstance<WidgetElementRendererView> viewInstances) {
super(viewInstances::get);
this.lienzoShapeGlyphRenderer = lienzoShapeGlyphRenderer;
this.viewsDestroyer = viewInstances::destroyAll;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-backend-common
@Inject
public BackendRuleManager(final CachedRuleManager ruleManager,
final @Any Instance<RuleEvaluationHandler<? extends Rule, ?>> ruleEvaluationHandlerInstances) {
this.ruleManager = ruleManager;
this.ruleEvaluationHandlerInstances = ruleEvaluationHandlerInstances;
}
代码示例来源:origin: org.kie.workbench/kie-wb-common-ala-ui-client
@Inject
public ClientProviderHandlerRegistry(final @Any Instance<ClientProviderHandler> handlerInstance) {
super(handlerInstance);
}
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public ManagedClientSessionCommands(final DefinitionUtils definitionUtils,
final @Any ManagedInstance<ClientSessionCommand> sessionCommands) {
this(definitionUtils,
sessionCommands,
EXPECTED_COMMANDS_SIZE);
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public ClientRuleManager(final CachedRuleManager ruleManager,
final @Any ManagedInstance<RuleEvaluationHandler> ruleEvaluationHandlerInstances) {
this.ruleManager = ruleManager;
this.ruleEvaluationHandlerInstances = ruleEvaluationHandlerInstances;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public StunnerPreferencesRegistryLoader(final DefinitionUtils definitionUtils,
final @Any ManagedInstance<StunnerPreferencesRegistryHolder> preferencesHolders,
final StunnerPreferences preferences,
final StunnerTextPreferences textPreferences) {
this.definitionUtils = definitionUtils;
this.preferencesHolders = preferencesHolders;
this.preferences = preferences;
this.textPreferences = textPreferences;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Inject
public BS3IconTypeGlyphRenderer(final @Any ManagedInstance<WidgetElementRendererView> viewInstances) {
this.viewInstanceSupplier = viewInstances::get;
this.viewInstancesDestroyer = viewInstances::destroyAll;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Inject
public SvgElementGlyphRenderer(final SvgDataUriGenerator svgDataUriUtil,
final @Any ManagedInstance<ImageElementRendererView> viewInstances) {
this.svgDataUriUtil = svgDataUriUtil;
this.viewInstanceSupplier = viewInstances::get;
this.viewInstancesDestroyer = viewInstances::destroyAll;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-project-client
@Inject
public StunnerProjectPreferencesRegistryLoader(final DefinitionUtils definitionUtils,
final @Any ManagedInstance<StunnerPreferencesRegistryHolder> preferencesHolders,
final StunnerPreferences preferences,
final StunnerTextPreferences textPreferences,
final StunnerProfilePreferencesLoader profilePreferencesLoader) {
super(definitionUtils, preferencesHolders, preferences, textPreferences);
this.profilePreferencesLoader = profilePreferencesLoader;
}
代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl
public class SecuritySensor {
@Inject
@Any
Event<SecurityEvent> securityEvent;
}
代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl
public class Customer {
@Inject
@Any
Drink drink;
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-client-common
@Inject
public SessionLoader(final DefinitionUtils definitionUtils,
final StunnerPreferencesRegistryLoader preferencesRegistryLoader,
final @Any ManagedInstance<SessionInitializer> beanInstances) {
this.definitionUtils = definitionUtils;
this.preferencesRegistryLoader = preferencesRegistryLoader;
this.initializerInstances = beanInstances;
this.initializers = new LinkedList<>();
}
代码示例来源:origin: org.kie.workbench.stunner/kie-wb-common-stunner-widgets
@Inject
public DOMGlyphRenderers(final @Any ManagedInstance<DOMGlyphRenderer> rendererInstances) {
this.rendererInstances = rendererInstances;
this.renderers = new ArrayList<>();
}
内容来源于网络,如有侵权,请联系作者删除!