public class BeanHelper extends Object
Bean
into CDI BeanManager
.Modifier and Type | Method and Description |
---|---|
static <T> org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType<T> |
createEnhancedAnnotatedType(org.jboss.weld.injection.producer.BasicInjectionTarget<T> it) |
static <T> void |
registerBean(org.glassfish.jersey.internal.inject.ClassBinding<T> binding,
javax.enterprise.inject.spi.AfterBeanDiscovery abd,
Collection<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers,
javax.enterprise.inject.spi.BeanManager beanManager)
Registers a class as
JerseyBean into BeanManager . |
static <T> void |
registerBean(org.glassfish.jersey.internal.inject.InstanceBinding<T> binding,
javax.enterprise.inject.spi.AfterBeanDiscovery abd,
List<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers)
Registers an instance as
JerseyBean into BeanManager . |
static <T> void |
registerSupplier(org.glassfish.jersey.internal.inject.SupplierClassBinding<T> binding,
javax.enterprise.inject.spi.AfterBeanDiscovery abd,
Collection<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers,
javax.enterprise.inject.spi.BeanManager beanManager)
Registers a class supplier and its provided value as
JerseyBean s into BeanManager . |
static <T> void |
registerSupplier(org.glassfish.jersey.internal.inject.SupplierInstanceBinding<T> binding,
javax.enterprise.inject.spi.AfterBeanDiscovery abd,
javax.enterprise.inject.spi.BeanManager beanManager)
Registers an instance supplier and its provided value as
JerseyBean s into BeanManager . |
public static <T> void registerBean(org.glassfish.jersey.internal.inject.InstanceBinding<T> binding, javax.enterprise.inject.spi.AfterBeanDiscovery abd, List<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers)
JerseyBean
into BeanManager
.T
- type of the instance which is registered.binding
- object containing BeanAttributes
information.abd
- AfterBeanDiscovery
event.resolvers
- all registered injection resolvers.public static <T> void registerBean(org.glassfish.jersey.internal.inject.ClassBinding<T> binding, javax.enterprise.inject.spi.AfterBeanDiscovery abd, Collection<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers, javax.enterprise.inject.spi.BeanManager beanManager)
JerseyBean
into BeanManager
.T
- type of the class which is registered.binding
- object containing BeanAttributes
information.abd
- AfterBeanDiscovery
event.resolvers
- all registered injection resolvers.beanManager
- currently used bean manager.public static <T> void registerSupplier(org.glassfish.jersey.internal.inject.SupplierInstanceBinding<T> binding, javax.enterprise.inject.spi.AfterBeanDiscovery abd, javax.enterprise.inject.spi.BeanManager beanManager)
JerseyBean
s into BeanManager
.T
- type of the instance which is registered.binding
- object containing BeanAttributes
information.abd
- AfterBeanDiscovery
event.public static <T> void registerSupplier(org.glassfish.jersey.internal.inject.SupplierClassBinding<T> binding, javax.enterprise.inject.spi.AfterBeanDiscovery abd, Collection<org.glassfish.jersey.internal.inject.InjectionResolver> resolvers, javax.enterprise.inject.spi.BeanManager beanManager)
JerseyBean
s into BeanManager
.T
- type of the class which is registered.binding
- object containing BeanAttributes
information.abd
- AfterBeanDiscovery
event.resolvers
- all registered injection resolvers.beanManager
- currently used bean manager.public static <T> org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType<T> createEnhancedAnnotatedType(org.jboss.weld.injection.producer.BasicInjectionTarget<T> it)
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.