jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type1/dna DnaAllInTheFamilyScript.java,NONE,1.1 DnaApu.java,NONE,1.1 DnaBart.java,NONE,1.1 DnaConfigurableHomer.java,NONE,1.1 DnaConfigurableHomerConfiguration.java,NONE,1.1 DnaHomer.java,NONE,1.1 DnaLisa.java,NONE,1.1 DnaMaggie.java,NONE,1.1 DnaMarge.java,NONE,1.1

Leo Simons <[email protected]>
Newsgroups gmane.comp.java.jicarilla.cvs
Message-ID <[email protected]>
Update of /cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type1/dna
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20590/container/tck/impl/src/java/org/jicarilla/container/tck/components/type1/dna

Added Files:
	DnaAllInTheFamilyScript.java DnaApu.java DnaBart.java 
	DnaConfigurableHomer.java 
	DnaConfigurableHomerConfiguration.java DnaHomer.java 
	DnaLisa.java DnaMaggie.java DnaMarge.java 
Log Message:
Initial support for dna.

--- NEW FILE: DnaMarge.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractMarge;
import org.jicarilla.container.tck.components.interfaces.Marge;

/**
 * 
 * @dna.component
 * @dna.service type="Marge"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaMarge.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaMarge extends AbstractMarge implements Marge
{
}

--- NEW FILE: DnaLisa.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractLisa;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Lisa;
import org.jcontainer.dna.Composable;
import org.jcontainer.dna.ResourceLocator;
import org.jcontainer.dna.MissingResourceException;

/**
 * 
 * @dna.component
 * @dna.service type="Lisa"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaLisa.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaLisa extends AbstractLisa implements Lisa, Composable
{
    /**
     * @avalon.dependency type="Homer"
     * @avalon.dependency type="Marge"
     */
    public void compose( ResourceLocator sm ) throws MissingResourceException
    {
        setHomer( (Homer)sm.lookup(Homer.class.getName() ) );
        setMarge( (Marge)sm.lookup(Marge.class.getName() ) );
    }
}

--- NEW FILE: DnaConfigurableHomerConfiguration.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

/**
 * 
 *
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaConfigurableHomerConfiguration.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaConfigurableHomerConfiguration
{
}

--- NEW FILE: DnaConfigurableHomer.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

/**
 * 
 *
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaConfigurableHomer.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaConfigurableHomer
{
}

--- NEW FILE: DnaApu.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractApu;
import org.jicarilla.container.tck.components.interfaces.Apu;
import org.apache.avalon.framework.activity.Initializable;

/**
 * 
 * @dna.component
 * @dna.service type="Apu"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaApu.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaApu extends AbstractApu implements Apu, Initializable
{
    public void initialize()
            throws Exception
    {
    }
}
--- NEW FILE: DnaMaggie.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractMaggie;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Maggie;
import org.jcontainer.dna.Composable;
import org.jcontainer.dna.ResourceLocator;
import org.jcontainer.dna.MissingResourceException;

/**
 * 
 * @dna.component
 * @dna.service type="Maggie"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaMaggie.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaMaggie extends AbstractMaggie implements Maggie, Composable
{
    /**
     * @avalon.dependency type="Homer"
     * @avalon.dependency type="Marge"
     */
    public void compose( ResourceLocator sm ) throws MissingResourceException
    {
        setHomer( (Homer)sm.lookup(Homer.class.getName() ) );
        setMarge( (Marge)sm.lookup(Marge.class.getName() ) );
    }
}

--- NEW FILE: DnaAllInTheFamilyScript.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.interfaces.Maggie;
import org.jicarilla.container.tck.components.interfaces.Lisa;
import org.jicarilla.container.tck.components.interfaces.Bart;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jicarilla.container.tck.components.AbstractAllInTheFamilyScript;
import org.jcontainer.dna.Composable;
import org.jcontainer.dna.ResourceLocator;
import org.jcontainer.dna.MissingResourceException;

/**
 * 
 * @dna.component
 * @dna.service type="Script"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaAllInTheFamilyScript.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaAllInTheFamilyScript extends AbstractAllInTheFamilyScript
        implements Composable
{
    public DnaAllInTheFamilyScript() {}

    /**
     * @dna.dependency type="Homer"
     * @dna.dependency type="Marge"
     * @dna.dependency type="Bart"
     * @dna.dependency type="Lisa"
     * @dna.dependency type="Maggie"
     */
    public void compose( ResourceLocator sm )
            throws MissingResourceException
    {
        setHomer( (Homer)sm.lookup(Homer.class.getName() ) );
        setMarge( (Marge)sm.lookup(Marge.class.getName() ) );
        setBart( (Bart)sm.lookup(Bart.class.getName() ) );
        setLisa( (Lisa)sm.lookup(Lisa.class.getName() ) );
        setMaggie( (Maggie)sm.lookup(Maggie.class.getName() ) );
    }
}

--- NEW FILE: DnaBart.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractBart;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Bart;
import org.jcontainer.dna.Composable;
import org.jcontainer.dna.ResourceLocator;
import org.jcontainer.dna.MissingResourceException;

/**
 * 
 * @dna.component
 * @dna.service type="Bart"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaBart.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaBart extends AbstractBart implements Bart, Composable
{
    /**
     * @avalon.dependency type="Homer"
     * @avalon.dependency type="Marge"
     */
    public void compose( ResourceLocator sm ) throws MissingResourceException
    {
        setHomer( (Homer)sm.lookup(Homer.class.getName() ) );
        setMarge( (Marge)sm.lookup(Marge.class.getName() ) );
    }
}

--- NEW FILE: DnaHomer.java ---
/* ====================================================================
The Jicarilla Software License

Copyright (c) 2003 Leo Simons.
All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
==================================================================== */
package org.jicarilla.container.tck.components.type1.dna;

import org.jicarilla.container.tck.components.AbstractHomer;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jcontainer.dna.ResourceLocator;
import org.jcontainer.dna.Composable;
import org.jcontainer.dna.MissingResourceException;

/**
 * 
 * @dna.component
 * @dna.service type="Homer"
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: DnaHomer.java,v 1.1 2004/04/03 12:09:20 lsimons Exp $
 */
public class DnaHomer extends AbstractHomer implements Homer, Composable
{
    private ResourceLocator m_locator;

    public DnaHomer()
    {
    }

    /**
     * @dna.dependency type="Marge"
     */
    public void compose( ResourceLocator sm ) throws MissingResourceException
    {
        setMarge( (Marge)sm.lookup(Marge.class.getName() ) );

        m_locator = sm;
    }

    public ResourceLocator getResourceLocator()
    {
        return m_locator;
    }
}



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.