Package javax.enterprise.inject.spi
Class Unmanaged.UnmanagedInstance<T>
java.lang.Object
javax.enterprise.inject.spi.Unmanaged.UnmanagedInstance<T>
Represents a non-contextual instance.
- See Also:
-
Method Details
-
get
Get the instance -
produce
Create the instance- Throws:
IllegalStateException
- if produce() is called on an already produced instanceIllegalStateException
- if produce() is called on an instance that has already been disposed
-
inject
Inject the instance- Throws:
IllegalStateException
- if inject() is called before produce() is calledIllegalStateException
- if inject() is called on an instance that has already been disposed
-
postConstruct
Call the @PostConstruct callback- Throws:
IllegalStateException
- if postConstruct() is called before produce() is calledIllegalStateException
- if postConstruct() is called on an instance that has already been disposed
-
preDestroy
Call the @PreDestroy callback- Throws:
IllegalStateException
- if preDestroy() is called before produce() is calledIllegalStateException
- if preDestroy() is called on an instance that has already been disposed
-
dispose
Dispose of the instance, doing any necessary cleanup- Throws:
IllegalStateException
- if dispose() is called before produce() is calledIllegalStateException
- if dispose() is called on an instance that has already been disposed
-