|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.objectledge.container.LedgeContainer
public class LedgeContainer
LedgeContainer is a NanoContainer flawor, that uses the
FileSystem component for loading the composition file.
The composition file is parsed using Ledge XmlFrontEnd.
LedgeContainer also pre-feeds the internal PicoContainer with objects
required by various container subsystems, including a FileSystem, ClassLoader and
confiuration directory path.
| Field Summary | |
|---|---|
private static org.picocontainer.Parameter |
COMPONENT
|
static String |
COMPOSITION_FILE
Location of the container composition file. |
static String |
CONFIG_BASE_KEY
Config base path key. |
protected org.nanocontainer.integrationkit.ContainerBuilder |
containerBuilder
The embedded container builder. |
protected org.picocontainer.defaults.ObjectReference |
containerRef
The embedded container. |
static String |
FRONT_END_CLASS
Default xml front end implementation. |
| Constructor Summary | |
|---|---|
LedgeContainer(FileSystem fs,
String configBase,
ClassLoader classLoader)
Creates an instance of the LedgeContainer. |
|
| Method Summary | |
|---|---|
private static org.picocontainer.Parameter |
component(Object key)
|
private static org.picocontainer.Parameter |
constant(Object value)
|
protected static org.picocontainer.PicoContainer |
getBootContainer(FileSystem fs,
String configBase,
ClassLoader classLoader)
Returns the boot component container. |
protected static URL |
getCompositionFile(FileSystem fs,
String configBase)
Verifies and returns the composition file. |
org.picocontainer.MutablePicoContainer |
getContainer()
Returns the embedded container. |
void |
killContainer()
Kills the embedded container. |
private static org.picocontainer.Parameter[] |
params(org.picocontainer.Parameter... parameters)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String COMPOSITION_FILE
public static final String FRONT_END_CLASS
public static final String CONFIG_BASE_KEY
protected org.picocontainer.defaults.ObjectReference containerRef
protected org.nanocontainer.integrationkit.ContainerBuilder containerBuilder
private static final org.picocontainer.Parameter COMPONENT
| Constructor Detail |
|---|
public LedgeContainer(FileSystem fs,
String configBase,
ClassLoader classLoader)
throws IOException,
ClassNotFoundException,
org.nanocontainer.integrationkit.PicoCompositionException
fs - the FileSystemconfigBase - configuration directory.classLoader - the classload to load classes with.
IOException - if the composition file could not be read.
ClassNotFoundException - if the container builder class could not be instantiated.
org.nanocontainer.integrationkit.PicoCompositionException - if the composition file is invalid, or could not be
verified due to system failure.| Method Detail |
|---|
public org.picocontainer.MutablePicoContainer getContainer()
public void killContainer()
protected static URL getCompositionFile(FileSystem fs,
String configBase)
throws IOException,
org.nanocontainer.integrationkit.PicoCompositionException
fs - the FileSystem to load compositoin file from.configBase - configuration directory.
IOException - if the file could not be read.
org.nanocontainer.integrationkit.PicoCompositionException - if the composition file is invalid, or could not be
verified due to system failure.
protected static org.picocontainer.PicoContainer getBootContainer(FileSystem fs,
String configBase,
ClassLoader classLoader)
fs - the FileSystemconfigBase - configuration directory.classLoader - the classload to load classes with.
private static org.picocontainer.Parameter[] params(org.picocontainer.Parameter... parameters)
private static org.picocontainer.Parameter constant(Object value)
private static org.picocontainer.Parameter component(Object key)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||