jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type2/aware/bad TypoAwar.java,NONE,1.1 TypoAwarImpl.java,NONE,1.1 HomerAndMargeAwareImpl.java,1.2,1.3 MultiparameterAwareImpl.java,1.1,1.2 NonVoidAwareImpl.java,1.2,1.3

[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/type2/aware/bad
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2730/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type2/aware/bad

Modified Files:
	HomerAndMargeAwareImpl.java MultiparameterAwareImpl.java 
	NonVoidAwareImpl.java 
Added Files:
	TypoAwar.java TypoAwarImpl.java 
Log Message:
make the bad components log every naughty little detail

--- NEW FILE: TypoAwar.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.type2.aware.bad;

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

/**
 *
 *
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: TypoAwar.java,v 1.1 2004/02/29 16:41:40 lsimons Exp $
 */
public interface TypoAwar
{
    public void setMarge( Marge marge );
}

--- NEW FILE: TypoAwarImpl.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.type2.aware.bad;

import org.jicarilla.container.tck.components.AbstractComponent;
import org.jicarilla.container.tck.components.interfaces.Marge;
import org.jicarilla.framework.CascadingRuntimeException;

import java.lang.reflect.Method;

/**
 *
 *
 * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
 * @version $Id: TypoAwarImpl.java,v 1.1 2004/02/29 16:41:40 lsimons Exp $
 */
public class TypoAwarImpl extends AbstractComponent implements TypoAwar
{
    protected Marge m_marge;

    public final static Method setMarge;
    static
    {
        try
        {
            setMarge = TypoAwarImpl.class
                .getDeclaredMethod( "setMarge", new Class[] { Marge.class } );
        }
        catch( NoSuchMethodException e )
        {
            throw new CascadingRuntimeException( e.getMessage(), e );
        }
    }

    public void setMarge( Marge marge )
    {
        super.log( setMarge, marge );
        m_marge = marge;
    }
}

Index: HomerAndMargeAwareImpl.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type2/aware/bad/HomerAndMargeAwareImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- HomerAndMargeAwareImpl.java	14 Jan 2004 20:58:49 -0000	1.2
+++ HomerAndMargeAwareImpl.java	29 Feb 2004 16:41:40 -0000	1.3
@@ -25,20 +25,50 @@
 ==================================================================== */
 package org.jicarilla.container.tck.components.type2.aware.bad;
 
+import org.jicarilla.container.tck.components.AbstractComponent;
 import org.jicarilla.container.tck.components.interfaces.Homer;
 import org.jicarilla.container.tck.components.interfaces.Marge;
+import org.jicarilla.framework.CascadingRuntimeException;
+
+import java.lang.reflect.Method;
 
 /**
  * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
  * @version $Id$
  */
-public class HomerAndMargeAwareImpl implements HomerAndMargeAware
+public class HomerAndMargeAwareImpl extends AbstractComponent
+        implements HomerAndMargeAware
 {
-    public void setHomer( Homer aHomer )
+    protected Homer m_homer;
+    protected Marge m_marge;
+
+    public final static Method setHomer;
+    public final static Method setMarge;
+    static
+    {
+        try
+        {
+            setHomer = HomerAndMargeAwareImpl.class
+                .getDeclaredMethod( "setHomer", new Class[] { Homer.class } );
+            setMarge = HomerAndMargeAwareImpl.class
+                .getDeclaredMethod( "setMarge", new Class[] { Marge.class } );
+        }
+        catch( NoSuchMethodException e )
+        {
+            throw new CascadingRuntimeException( e.getMessage(), e );
+        }
+    }
+
+    public void setMarge( Marge marge )
     {
+        super.log( setMarge, marge );
+        m_marge = marge;
     }
 
-    public void setMarge( Marge aMarge )
+
+    public void setHomer( Homer homer )
     {
+        super.log( setHomer, homer );
+        m_homer = homer;
     }
 }

Index: MultiparameterAwareImpl.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type2/aware/bad/MultiparameterAwareImpl.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- MultiparameterAwareImpl.java	14 Jan 2004 20:58:49 -0000	1.1
+++ MultiparameterAwareImpl.java	29 Feb 2004 16:41:40 -0000	1.2
@@ -25,16 +25,42 @@
 ==================================================================== */
 package org.jicarilla.container.tck.components.type2.aware.bad;
 
+import org.jicarilla.container.tck.components.AbstractComponent;
 import org.jicarilla.container.tck.components.interfaces.Homer;
 import org.jicarilla.container.tck.components.interfaces.Marge;
+import org.jicarilla.framework.CascadingRuntimeException;
+
+import java.lang.reflect.Method;
 
 /**
  * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
  * @version $Id$
  */
-public class MultiparameterAwareImpl implements MultiparameterAware
+public class MultiparameterAwareImpl extends AbstractComponent
+        implements MultiparameterAware
 {
+    protected Homer m_homer;
+    protected Marge m_marge;
+
+    public final static Method setHomerAndMarge;
+    static
+    {
+        try
+        {
+            setHomerAndMarge = MultiparameterAwareImpl.class
+                .getDeclaredMethod( "setHomerAndMarge",
+                        new Class[] { Homer.class, Marge.class } );
+        }
+        catch( NoSuchMethodException e )
+        {
+            throw new CascadingRuntimeException( e.getMessage(), e );
+        }
+    }
+
     public void setHomerAndMarge( Homer homer, Marge marge )
     {
+        super.log( setHomerAndMarge, new Object[] { homer, marge } );
+        m_homer = homer;
+        m_marge = marge;
     }
 }

Index: NonVoidAwareImpl.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/container/tck/impl/src/java/org/jicarilla/container/tck/components/type2/aware/bad/NonVoidAwareImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- NonVoidAwareImpl.java	14 Jan 2004 20:58:49 -0000	1.2
+++ NonVoidAwareImpl.java	29 Feb 2004 16:41:40 -0000	1.3
@@ -25,16 +25,38 @@
 ==================================================================== */
 package org.jicarilla.container.tck.components.type2.aware.bad;
 
+import org.jicarilla.container.tck.components.AbstractComponent;
 import org.jicarilla.container.tck.components.interfaces.Homer;
+import org.jicarilla.framework.CascadingRuntimeException;
+
+import java.lang.reflect.Method;
 
 /**
  * @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
  * @version $Id$
  */
-public class NonVoidAwareImpl implements NonVoidAware
+public class NonVoidAwareImpl extends AbstractComponent implements NonVoidAware
 {
+    protected Homer m_homer;
+
+    public final static Method setHomer;
+    static
+    {
+        try
+        {
+            setHomer = TypoAwarImpl.class
+                .getDeclaredMethod( "setHomer", new Class[] { Homer.class } );
+        }
+        catch( NoSuchMethodException e )
+        {
+            throw new CascadingRuntimeException( e.getMessage(), e );
+        }
+    }
+
     public Object setHomer( Homer homer )
     {
+        super.log( setHomer, homer );
+        m_homer = homer;
         return null;
     }
 }



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&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.