Package org.jboss.weld
Class SimpleCDI
java.lang.Object
jakarta.enterprise.inject.spi.CDI<T>
- All Implemented Interfaces:
jakarta.enterprise.inject.Instance<Object>,jakarta.inject.Provider<Object>,Iterable<Object>,org.jboss.weld.inject.WeldInstance<Object>
Provides convenient way to access the CDI container.
- Author:
- Jozef Hartinger
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.enterprise.inject.Instance
jakarta.enterprise.inject.Instance.Handle<T extends Object>Nested classes/interfaces inherited from interface org.jboss.weld.inject.WeldInstance
org.jboss.weld.inject.WeldInstance.Handler<T extends Object> -
Field Summary
Fields inherited from class org.jboss.weld.AbstractCDI
knownClassNamesFields inherited from class jakarta.enterprise.inject.spi.CDI
configuredProvider, discoveredProviders -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanManagerImplambiguousBeanManager(String callerClassName, Set<BeanManagerImpl> managers) Callback that allows to override the behavior when class that invoked CDI.current() is placed in multiple bean archives.voidcleanup()protected ContainertoString()protected BeanManagerImplunsatisfiedBeanManager(String callerClassName) Callback that allows to override the behavior when CDI.current() is not called from within a bean archive.Methods inherited from class org.jboss.weld.AbstractCDI
checkState, destroy, get, getCallingClassName, getHandle, getHandlePriorityComparator, getHandler, getInstance, getPriorityComparator, handlers, handles, isAmbiguous, isResolvable, isUnsatisfied, iterator, select, select, select, selectMethods inherited from class jakarta.enterprise.inject.spi.CDI
current, getBeanContainer, setCDIProviderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.enterprise.inject.Instance
handlesStream, streamMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.jboss.weld.inject.WeldInstance
handlersStream
-
Constructor Details
-
SimpleCDI
public SimpleCDI() -
SimpleCDI
-
-
Method Details
-
unsatisfiedBeanManager
Callback that allows to override the behavior when CDI.current() is not called from within a bean archive. -
ambiguousBeanManager
protected BeanManagerImpl ambiguousBeanManager(String callerClassName, Set<BeanManagerImpl> managers) Callback that allows to override the behavior when class that invoked CDI.current() is placed in multiple bean archives. -
getBeanManager
- Specified by:
getBeanManagerin classjakarta.enterprise.inject.spi.CDI<Object>
-
toString
-
getContainer
-
cleanup
public void cleanup()
-