logo       

jicarilla-sandbox/platform/container/tck/impl/src/test/org/jicarilla/contai: msg#00422

Subject: jicarilla-sandbox/platform/container/tck/impl/src/test/org/jicarilla/container/tck/test/manual ManualSimpsonType3RichContainer.java,NONE,1.1 ManualSimpsonAvalonContainer.java,1.2,1.3 ManualSimpsonContainer.java,1.2,NONE
Update of 
/cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/test/org/jicarilla/container/tck/test/manual
In directory 
sc8-pr-cvs1:/tmp/cvs-serv28104/platform/container/tck/impl/src/test/org/jicarilla/container/tck/test/manual

Modified Files:
        ManualSimpsonAvalonContainer.java 
Added Files:
        ManualSimpsonType3RichContainer.java 
Removed Files:
        ManualSimpsonContainer.java 
Log Message:
unfortunately, I think interface-based proxying or interception (ie, nanning, 
aspectj 1.2, etc) is not going to work. We'd have to expose all setXXX as 
public and specify them in an interface. I don't want to do this as it would 
prohibit easy testing of (for example) whether a type 2 container can work with 
setXXX if they're not specified in an interface. And I don't want to go with 
(heavy) bytecode modification....I can imagine that interfering with what 
advanced containers themselves feel like doing with security policies, 
classloading, etc.
So the only thing I can really think of atm is 'manual' logging, for which I've 
set up the basics.

--- NEW FILE: ManualSimpsonType3RichContainer.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.test.manual;

import org.jicarilla.container.tck.components.interfaces.Apu;
import org.jicarilla.container.tck.components.interfaces.Bart;
import org.jicarilla.container.tck.components.interfaces.Homer;
import org.jicarilla.container.tck.components.interfaces.HotdogBuyer;
import org.jicarilla.container.tck.components.interfaces.Lisa;
import org.jicarilla.container.tck.components.interfaces.Maggie;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.container.tck.components.interfaces.Script;
import org.jicarilla.container.tck.components.type3.rich.AllInTheFamilyScript;
import org.jicarilla.container.tck.components.type3.rich.ApuImpl;
import org.jicarilla.container.tck.components.type3.rich.BartImpl;
import org.jicarilla.container.tck.components.type3.rich.DoubleEpisodeScript;
import org.jicarilla.container.tck.components.type3.rich.HomerAndApuScript;
import org.jicarilla.container.tck.components.type3.rich.HomerImpl;
import org.jicarilla.container.tck.components.type3.rich.LisaImpl;
import org.jicarilla.container.tck.components.type3.rich.MaggieImpl;
import org.jicarilla.container.tck.components.type3.rich.MargeImpl;

/**
 * Demonstrates a way to manually compose the provided classes
 * to correctly run all provided scripts.
 *
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: ManualSimpsonType3RichContainer.java,v 1.1 2004/01/14 22:57:05 
lsimons Exp $
 */
public class ManualSimpsonType3RichContainer implements Runnable
{
    Script m_script;

    public ManualSimpsonType3RichContainer()
    {
        Apu apu = new ApuImpl();
        Marge marge = new MargeImpl();
        Homer homer = new HomerImpl( marge );
        Bart bart = new BartImpl( homer, marge );
        Lisa lisa = new LisaImpl( homer, marge );
        Maggie maggie = new MaggieImpl( homer, marge );

        Script first = new HomerAndApuScript( (HotdogBuyer)homer, apu );
        Script second = new AllInTheFamilyScript(
                homer, marge, bart, lisa, maggie );

        Script dbl = new DoubleEpisodeScript( first, second );

        setScript( dbl );
    }

    public void run()
    {
        getScript().runEpisode();
    }

    public static void main( String[] args )
    {
        (new Thread( new ManualSimpsonType3RichContainer() )).run();
    }

    protected Script getScript()
    {
        return m_script;
    }

    protected void setScript( Script script )
    {
        m_script = script;
    }
}

Index: ManualSimpsonAvalonContainer.java
===================================================================
RCS file: 
/cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/test/org/jicarilla/container/tck/test/manual/ManualSimpsonAvalonContainer.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ManualSimpsonAvalonContainer.java   14 Jan 2004 20:58:50 -0000      1.2
+++ ManualSimpsonAvalonContainer.java   14 Jan 2004 22:57:05 -0000      1.3
@@ -92,7 +92,7 @@
 
     public static void main( String[] args )
     {
-        (new Thread( new ManualSimpsonContainer() )).run();
+        (new Thread( new ManualSimpsonType3RichContainer() )).run();
     }
 
     protected Script getScript()

--- ManualSimpsonContainer.java DELETED ---




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe