|
|||||
|
|||||
OverviewSamplesUser Reference DocumentationProject InformationMisc |
Container
NanoContainer OverviewNanoContainer is a script-enabled layer which builds PicoContainers. Trees of containers and components can be composed using several scripting languages: Why multiple script language support?Multiple script languages are supported because we officially stand against a single meta-data language. Of the script languages, XML is the most widely used and mature, but Groovy is most promising because of the its optional builder syntax. Uses of NanoContainerNanoContainer is primarily intended to be embedded inside other applications and frameworks. We recommend using NanoContainer when your application consists of many different components that are related to each other but you need composition driven by external scripts. Embedded ExampleInterpreted script languagesNanoContainer currently supports 4 different interpreted languages for container composition. The contract for Groovy, Beanshell, Javascript and Jython scripts is defined as follows:
Groovyor BeanshellJavascript(org.picocontainer.* and org.picocontainer.defaults.* imported by default) Jython(org.picocontainer.* and org.picocontainer.defaults.* imported by default) XMLThe above interpreted language scripts can equally be expressed in XML The DTD details the full XML syntax. Further reading |
||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||