GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing javaee.github.io — Getting Started
Getting StartedContexts and Dependency Injection (CDI) enables your objects to have their dependencies provided to them automatically, instead of creating them or receiving them as parameters. CDI also manages the lifecycle of those dependencies for you. For example, consider the following servlet:
This servlet needs an instance of an object that implements the
The servlet creates itself an instance of the following object:
Using CDI, this servlet can declare its dependency on a
The CDI runtime looks for classes that implement the
For more information on scopes, see Using Scopes. The In this example,
Copyright © 2017, Oracle and/or its affiliates. All rights reserved.
| |||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |