avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jörg Bauer/Denic" <ba...@denic.de>
Subject [PATCH] for making Phoenix more configurable
Date Mon, 18 Mar 2002 22:22:36 GMT
I modified Phoenix to control the Components with a configuration file

It looks like that and is in {PHOENIX.HOME}/conf/kernel.xml:

<phoenix>
        <embeddor role="org.apache.avalon.phoenix.interfaces.Embeddor"
 class="org.apache.avalon.phoenix.components.embeddor.DefaultEmbeddor">

                <component 
role="org.apache.avalon.phoenix.interfaces.Deployer"
 class="org.apache.avalon.phoenix.components.deployer.DefaultDeployer" 
                           logger="deployer" />

                <component 
role="org.apache.avalon.phoenix.interfaces.DeploymentRecorder"
 
class="org.apache.avalon.phoenix.components.deployer.DefaultDeploymentRecorder" 

                           logger="recorder" />

                <component 
role="org.apache.avalon.phoenix.interfaces.LogManager"
 class="org.apache.avalon.phoenix.components.logger.DefaultLogManager" 
                           logger="logs" />

                <component 
role="org.apache.avalon.phoenix.interfaces.Kernel"
 class="org.apache.avalon.phoenix.components.kernel.DefaultKernel" 
                           logger="kernel" />

                <component 
role="org.apache.avalon.phoenix.interfaces.SystemManager"
 class="org.apache.avalon.phoenix.components.manager.NoopSystemManager" 
                           logger="manager" />

                <component 
role="org.apache.avalon.phoenix.interfaces.ConfigurationRepository"
 
class="org.apache.avalon.phoenix.components.configuration.DefaultConfigurationRepository"

                           logger="config" />

                <component 
role="org.apache.avalon.phoenix.interfaces.ClassLoaderManager"
 
class="org.apache.avalon.phoenix.components.classloader.DefaultClassLoaderManager" 

                           logger="classes" />

                <component 
role="org.apache.avalon.phoenix.interfaces.PackageRepository"
 
class="org.apache.avalon.phoenix.components.extensions.PhoenixPackageRepository" 

                           logger="packages" />
        </embeddor>

</phoenix>

With this patch it is possible to exchange single components with other 
versions.
It is also possible to make the components configurable.
Just give some Configurations to the <component> - elements.

Nearly all static information of the DefaultEmbeddor is now in the 
configuration. 

here is the diff (hope it works):



-- 
----------------------------------+-------------------------------------------
Joerg Bauer                       | eMail : Joerg.Bauer@denic.de
DENIC eG                          | Fon   : +49 69 272 35 180 
Wiesenhuettenplatz 26             | Fax   : +49 69 272 35 235
D-60329 Frankfurt                 |
----------------------------------+-------------------------------------------
Mime
View raw message