background preloader

Java

Facebook Twitter

j2ee

Guice. Analysis. Java Software Development Tutorials and Videos: Java, J2EE, Spring, Groovy, JavaFX, Eclipse, NetBeans, Hibernate. Enterprise Java Community: Dependency Injection in Java EE 6 - Part 1. This series of articles introduces Contexts and Dependency Injection for Java EE (CDI), a key part of the soon to be finalized Java EE 6 platform.

Standardized via JSR 299, CDI is the de-facto API for comprehensive next-generation type-safe dependency injection for Java EE. Led by Gavin King, JSR 299 aims to synthesize the best-of-breed dependency injection features from solutions like Seam, Guice and Spring while adding many useful innovations of its own. In this first article of the series, we are going to take a high-level look at CDI, see how it fits with Java EE overall and discuss basic dependency management as well as scoping. In the course of this series, we will cover features like component naming, stereotypes, producers, disposers, decorators, interceptors, events, the CDI API for portable extensions and many more. A Quick Glance Back The primary focus of Java EE 5 was ease-of-use via POJO programming, annotations and convention-over-configuration.

How the Pieces Fit Together. Visualvm: Home. Java theory and practice: The closures debate. Open source workflow engine. How Garbage Collection differs in the three big JVMs via reddit.com. From Java Platform Improvements to Better Teaching: A Conversation With Java Champion Cay Horstmann. Oracle Technology Network > Java Software Downloads View All Downloads Top Downloads New Downloads What's New Java in the Cloud: Rapidly develop and deploy Java business applications in the cloud. Essential Links Developer Spotlight Java EE—the Most Lightweight Enterprise Framework? Blogs Technologies Contact Us About Oracle Cloud Events Top Actions News Key Topics Oracle Integrated Cloud Applications & Platform Services. Ropes: Theory and practice. A rope data structure represents an immutable sequence of characters, much like a Java String. But ropes' highly efficient mutations make ropes — unlike Strings and their mutable StringBuffer and StringBuilder cousins — ideal for applications that do heavy string manipulation, especially in multithreaded environments.

After briefly summarizing the rope data structure, this article introduces Ropes for Java, a rope implementation for the Java platform. Then it benchmarks String, StringBuffer, and the Ropes for Java Rope class on the Java platform; investigates some special performance issues; and concludes with a discussion about when (and when not) to use ropes in your applications. Ropes: A brief overview A rope represents an immutable character sequence. Figure 1 illustrates two types of string representations. Figure 1. Rope implementations also often defer evaluation of large substring operations by introducing a substring node. Table 1. Back to top Introducing Ropes for Java Table 2.