javax.enterprise.inject.spi.BeanManager allows to
programmatically obtain contextual references to beans. Even though
the primary purpose is to allow a portable extension to interact
directly with the container, it can be used by any Java EE component
EE 7 SDK provides a comprehensive set of samples for different
technologies - both new and updated. They are very nicely
documented, runs using Maven + using Cargo, and demonstrate a good
usage of the different APIs.
The question I get typically asked is "how do you learn all these
APIs and technologies ?".
The SDK samples, reading specifications, and whitboarding with
specification leads is indeed a big source of my learning. But I
need to write my own code, simple "hello world" style samples that
demonstrates point usage of different APIs. I truly believe in "let
the code talk" and have given several slide-free code-driven session
on Java EE 7 around the world. The source for these talks is about
100+ samples I've written over the past few months.
They are all Maven-based projects and have no documentation at all.
However they are logically arranged by technologies and I've tried
to give intuitive names to the directories. I don't intend to write
any documentation so please don't ask for it ;-) But at least now
you've access to all the samples.
Here is the complete list of samples at this time:
Will continue to add more as I dig into other pieces. I gave a
3-hour presentation explaining some of these samples at UberConf and
captured the screen during the session. Those two-part videos are