Package org.apache.fulcrum.yaafi.framework.factory

Examples of org.apache.fulcrum.yaafi.framework.factory.ServiceContainerConfiguration


     */
    public void initialize() throws Exception
    {
        this.getLogger().debug( "Initializing " + this.getClass().getName() );

        ServiceContainerConfiguration config = new ServiceContainerConfiguration();

        // intialize the Avalon container

        config.setLogger( this.getLogger() );
        config.setApplicationRootDir( this.getApplicationHome() );
        config.setTempRootDir( this.getTempHome() );
        config.loadContainerConfiguration( this.getContainerConfigValue(), "auto" );

        this.container = ServiceContainerFactory.create( config );

        // initialize shutdown hook of JVM for a server application

View Full Code Here


     */
    public void testReconfigurationService() throws Exception
    {
        // instantiate a YAAFI container

        ServiceContainerConfiguration config = new ServiceContainerConfiguration();
        config.loadContainerConfiguration( "./src/test/TestYaafiContainerConfig.xml" );
        this.container = ServiceContainerFactory.create( config );

        // the ReconfigurationService is configured to be instantiated on demand
        // get an instance to start monitoring ...

View Full Code Here

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ServiceContainerConfiguration config = new ServiceContainerConfiguration();
        config.loadContainerConfiguration( "./src/test/TestYaafiContainerConfig.xml" );
        this.container = ServiceContainerFactory.create( config );
    }
View Full Code Here

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ServiceContainerConfiguration config = new ServiceContainerConfiguration();
        config.loadContainerConfiguration( "./src/test/TestYaafiContainerConfig.xml" );
        this.container = ServiceContainerFactory.create( config );
        service = (AdviceService) this.container.lookup(AdviceService.class.getName());
    }
View Full Code Here

     * @see junit.framework.TestCase#setUp()
     */
    protected void setUp() throws Exception
    {
        super.setUp();
        ServiceContainerConfiguration config = new ServiceContainerConfiguration();
        config.loadContainerConfiguration( "./src/test/TestYaafiContainerConfig.xml" );
        this.container = ServiceContainerFactory.create( config );
        this.lifecycleManager = this.container;
    }
View Full Code Here

TOP

Related Classes of org.apache.fulcrum.yaafi.framework.factory.ServiceContainerConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.