PicoContainer是一个“微核心”(micro-kernel)的容器。它利用了Inversion of Control模式和Template Method模式,提供面向组件的开发、运行环境。从名字上就可以看出,PicoContainer是“极小”的容器,只提供了最基本的特性。其他容器可以在它的基础上加入更多特性。因其小,PicoContainer也是剖析、研究的最佳对象。
————————————
The PicoContainer team is proud to announce the release of the first beta of PicoContainer 1.0.
PicoContainer is an embeddable container for type-3 Inversion of Control (IoC) components. It is delivered as a set of abstractions, a couple of instantiable containers, a few adaptors for hierarchies and (optional) lifecycle management as well as support classes. We genuinely believe this to be the logical conclusion of the IoC component model.
Components: The component model (igoring our lifecycle support) is unencumbered by obligations of API. There is nothing to extend, nothing to implement and nothing to throw. The component model forces no obligations for XML meta-data on the developer or user of PicoContainer components. The design is so simple, that for very tightly coupled deployments, a developer could cherry pick components and embed them in their application without even importing let alone using anything from the org.picocontainer codebase.
Diversity: From the abstractions, other container developers can build containers compatible and interoperable with PicoContainer. We encourage diversity of implementation as we are not building a single container. In terms of the PicoContainer deliverable, there are no external Jar dependancies, and no use of XML for component declarations. Along with the PicoContainer deliverable, there is a Technology Compatability Kit (TCK). This is in the form of the abstract JUnit test cases. A container developer can use this to ensure than their implementation of a PicoContainer is compatible with the design. Container developers may choose from-scratch designs, wrapping of existing classes, or extending existing classes.
NanoContainer: As a sister project to PicoContainer, we also have NanoContainer. Like PicoContainer, NanoContainer is more than one container. All are built to the PicoContainer design, and offer different embeddable visions. One interoperates with Nanning (the aspect framework) to provide aspect capability for arbitary components. Another retrofits JMX compatability to arbitary components. Some of the NanoContainers deliver component assembly and configuration via XML.
The Plan: The plan is to build more containers and to sell the component design further.
- The PicoContainer team.
Visit
www.picocontainer.org
分享到:
相关推荐
《PicoContainer源码学习日志》 PicoContainer是一个轻量级的依赖注入框架,主要应用于Java项目中。它的核心理念是通过组件容器来管理对象的生命周期和依赖关系,从而实现松耦合的设计。本学习日志将深入探讨...
PicoContainer 3.x is in Git at Github and Codehaus (mirrors), and is a work in progress. PicoContainer 3.x is good enough to use in production, but it is not finished yet. Goals over 2.x The major ...
**Picocontainer:Java微容器详解** Picocontainer是一个轻量级的依赖注入框架,它在Java世界中扮演着重要角色,特别是在简化应用程序组件的组装和管理方面。这个框架以其小巧、快速和易于理解的特点而受到开发者的...
AOP Alliance的存在使得不同AOP框架(如Spring、AspectJ、PicoContainer等)能够无缝集成。例如,在Spring框架中,`MethodInterceptor`被用于实现AOP代理,而`MethodInvocation`则封装了对目标方法的调用。这样,...
CucumberPicoContainer示例开发环境安装Git( ) 安装JDK 1.5+( 或 ) 安装Maven 3( )下载git clone git@github....jar target/cucumber-picocontainer-example-jar-with-dependencies.jar
【标题】"jbehave-pico-3.9-beta-4.zip" 提供的是 JBehave 的一个版本,这是基于 PicoContainer 框架的一个行为驱动开发(BDD)库。JBehave 是一种流行的 Java 测试框架,它允许开发者以自然语言的方式来编写测试...
jar包,亲测可用
jar包,官方版本,自测可用
jar包,亲测可用
PicoContainer 支持 vert.x 使用依赖注入。 用法 创建一个垂直: public class MyVerticle extends Verticle { public void start() { ApplicationContext applicationContext = ApplicationContext.create() ....
- **v1.0**:2006年秋季发布,提供了稳定的基础API。 - **v1.1**:2007年4月发布,增加了对Java 5并发原语的支持。 - **v2.0**:预计同年发布,计划简化API并提高性能。 #### 7. 应用案例 - **Apache Directory**...
Java轻量级容器,如Spring、HiveMind和PicoContainer,是为了降低系统组件间的耦合度而设计的。它们都采用了依赖注入这一核心设计模式,但在实现方式和哲学上各有不同。 **Spring Framework** 是一个功能全面的轻量...
当前版本 Guice 2.0 正处于 beta 测试阶段,并且预计将在短期内发布正式版。尽管 beta 版缺少一些最终版本将包含的功能,但它已经足够稳定并且质量上乘,甚至已经被用于 Google 的生产环境之中。因此,强烈建议...
JdonFramework是一款由国内开发者创建的开源Java企业级应用框架,它在2007年10月25日发布了v5.1 Build20071025的版本,是许多学生进行毕业设计和课程设计时的首选框架。本文将对JdonFramework的核心特性和使用方法...
在这个例子中,`B`类的实例是由PicoContainer创建的,同时它也会自动处理`B`类所需的`AInterface`实例。 ##### Spring Framework Spring 是一个广泛使用的Java企业级应用开发框架,它提供了强大的依赖注入功能。 ...
[Manning Publications] 依赖注入 实战 (英文版) [Manning Publications] Dependency Injection (E-Book) ☆ 图书概要:☆ Dependency Injection is an in-depth guide to the current best practices for using ...
5. `picocontainer-x.x.x.jar`: PicoContainer,依赖注入容器,用于管理和实例化SVNANT的任务对象。 6. `slf4j-api-x.x.x.jar` 和 `slf4j-simple-x.x.x.jar`: Simple Logging Facade for Java (SLF4J),日志框架抽象...
- **EJB层**:EJB3.0的发布标志着企业级Java应用的重大变革,引入了依赖注入(DI)和POJOs,降低了开发复杂性,这受到PicoContainer和Spring等开源框架的影响。 4. **脚本语言的加入**: - **Groovy**:作为一种...
- **PicoContainer**:PicoContainer 是一个轻量级的 IoC 容器,它的设计目标是简单易用。虽然没有 Spring 那么全面,但对于小型项目或简单的依赖管理来说已经足够。 #### 六、总结 IoC 容器和依赖注入模式是现代...