- java.lang.Object
-
- javax.enterprise.inject.spi.Unmanaged.UnmanagedInstance<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Unmanaged.UnmanagedInstance<T>
dispose()
Dispose of the instance, doing any necessary cleanupT
get()
Get the instanceUnmanaged.UnmanagedInstance<T>
inject()
Inject the instanceUnmanaged.UnmanagedInstance<T>
postConstruct()
Call the @PostConstruct callbackUnmanaged.UnmanagedInstance<T>
preDestroy()
Call the @PreDestroy callbackUnmanaged.UnmanagedInstance<T>
produce()
Create the instance
-
-
-
Method Detail
-
get
public T get()
Get the instance
-
produce
public Unmanaged.UnmanagedInstance<T> 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
public Unmanaged.UnmanagedInstance<T> 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
public Unmanaged.UnmanagedInstance<T> 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
public Unmanaged.UnmanagedInstance<T> 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
public Unmanaged.UnmanagedInstance<T> 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
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/enterprise/inject/spi/unmanaged.unmanagedinstance.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.