HI all,
Apologies for being a week late on getting this doc
together. I had some personal issues pop up after my leg came
out of its cast that consumed most of my week last week.
There are two minor changes that I made from where we last
discussed, as when I was putting together code I found some
gaps and figured it best to fix them here than later.
1. CDIProvider does not implement AutoCloseable. Since CDI
class maintains a reference to the provider, implementing
AutoCloseable was not adding anything.
2. I added a method boolean isInitialized() so that the
caller can know if they need to start the container (or if
it's already running).
Locally, I've also modified the CDI.current() method to use
getCDIProvider() instead of internally finding the provider
since we now have a getter.
One thing I'd like to get feedback on is if calling
initialize/shutdown in a container should throw
IllegalStateException, or probably better to throw
UnsupportedOperationException when called in EE containers.
Let me know your thoughts.
John