Modifier and Type | Method and Description |
---|---|
Unmanaged.UnmanagedInstance<T> |
dispose()
Dispose of the instance, doing any necessary cleanup
|
T |
get()
Get the instance
|
Unmanaged.UnmanagedInstance<T> |
inject()
Inject the instance
|
Unmanaged.UnmanagedInstance<T> |
postConstruct()
Call the @PostConstruct callback
|
Unmanaged.UnmanagedInstance<T> |
preDestroy()
Call the @PreDestroy callback
|
Unmanaged.UnmanagedInstance<T> |
produce()
Create the instance
|
public T get()
public Unmanaged.UnmanagedInstance<T> produce()
IllegalStateException
- if produce() is called on an already produced instanceIllegalStateException
- if produce() is called on an instance that has already been disposedpublic Unmanaged.UnmanagedInstance<T> inject()
IllegalStateException
- if inject() is called before produce() is calledIllegalStateException
- if inject() is called on an instance that has already been disposedpublic Unmanaged.UnmanagedInstance<T> postConstruct()
IllegalStateException
- if postConstruct() is called before produce() is calledIllegalStateException
- if postConstruct() is called on an instance that has already been disposedpublic Unmanaged.UnmanagedInstance<T> preDestroy()
IllegalStateException
- if preDestroy() is called before produce() is calledIllegalStateException
- if preDestroy() is called on an instance that has already been disposedpublic Unmanaged.UnmanagedInstance<T> dispose()
IllegalStateException
- if dispose() is called before produce() is calledIllegalStateException
- if dispose() is called on an instance that has already been disposedCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.