Re: Newbiew help required
Leo Simons <[email protected]>
| Newsgroups | gmane.comp.java.jicarilla.devel |
|---|---|
| Message-ID | <[email protected]> |
Shash Chatterjee wrote:
> Just getting started with taking a peek at Jicarilla (obviously running
> behind my initial time estimation, man proposes, God disposes!).
:D
> I have checked out the following from CVS: jicarilla-framework,
> jicarilla-platform, jicarilla-sandbox, jicarilla-maven-repository.
>
> Before I get to the problem, one question. A quick glance didn't make
> it obvious which classes make up the Fortress TCK....any hints?
It's currently all of the stuff in platform/container/tck, plus the
classes inside
platform/container/impl/src/java/org/jicarilla/container/integration/fortress
I plan to split things up later :D
> My plan
> is to just start with Main.java and walk the program flow with a
> debugger....good/bad idea?
uhm, probably bad. Main.java probably doesn't work atm, and besides its
got little to do with the container: it's a way to run my custom HTTP
Server using PicoContainer and BeanShell. Not that its not interesting,
but its prolly not what you're looking for :D. A better bet would be to
take a look at
org.jicarilla.container.test.builder.DefaultBuilderTestCase and
org.jicarilla.container.test.integration.avalon.JicarillaBasedAvalonAllInTheFamilyTestCase
org.jicarilla.container.test.integration.avalon.JicarillaBasedFortressContainerTestCase
the first one shows a convenient way to create containers, the latter
two shows that the jicarilla integration actually works. These classes
live in
platform/container/impl/src/test
by the way. Note I just refactored DefaultBuilder to be a lot cleaner
today (as usual with SF, the update of the anoncvs stuff is pending).
> Got this error:
>
> ava\org\jicarilla\framework\plumbing\SimpleScreener.java:159:
> org.jicarilla.fram
> ework.SelectorSwitch.Entry has protected access in
> org.jicarilla.framework.Selec
> torSwitch
> SelectorSwitch.Entry entry =
> ^
whoops! Seems like I did a partial commit <blush>. Fixed that now; but
with %@#& slow sourceforge CVS it'll take a while to go through. In the
meantime, you could apply the attached patch (just replaces the
"SelectorSwitch.Entry" with "Switch.Entry").
lemme know how things work out!
--
cheers,
- Leo Simons
-----------------------------------------------------------------------
Weblog -- http://leosimons.com/
IoC Component Glue -- http://jicarilla.org/
Articles & Opinions -- http://articles.leosimons.com/
-----------------------------------------------------------------------
"We started off trying to set up a small anarchist community, but
people wouldn't obey the rules."
-- Alan Bennett
patch-SimpleScreener.txt
(text/plain, 1.6 KB)
Index: framework/impl/src/java/org/jicarilla/framework/plumbing/SimpleScreener.java
===================================================================
RCS file: /cvsroot/jicarilla/jicarilla-sandbox/platform/framework/impl/src/java/org/jicarilla/framework/plumbing/SimpleScreener.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- framework/impl/src/java/org/jicarilla/framework/plumbing/SimpleScreener.java 6 Jan 2004 13:58:50 -0000 1.2
+++ framework/impl/src/java/org/jicarilla/framework/plumbing/SimpleScreener.java 19 Jan 2004 21:38:16 -0000 1.3
@@ -54,8 +54,6 @@
*/
package org.jicarilla.framework.plumbing;
-import org.jicarilla.framework.plumbing.Screener;
-import org.jicarilla.framework.plumbing.Sink;
import org.jicarilla.framework.Switch;
import org.jicarilla.framework.SelectorSwitch;
import org.jicarilla.framework.Selector;
@@ -70,7 +68,7 @@
* the sink that was added last when none of the sinks will accept a message.
*
* @author <a href="lsimons at jicarilla dot org">Leo Simons</a>
- * @version $Id: SimpleScreener.java,v 1.2 2004/01/06 13:58:50 lsimons Exp $
+ * @version $Id: SimpleScreener.java,v 1.3 2004/01/19 21:38:16 lsimons Exp $
*/
public class SimpleScreener implements Screener
{
@@ -156,8 +154,8 @@
}
List switchList = m_switch.entryList();
- SelectorSwitch.Entry entry =
- (SelectorSwitch.Entry)switchList.get( m_switch.size()-1 );
+ Switch.Entry entry =
+ (Switch.Entry)switchList.get( m_switch.size()-1 );
return (Sink)entry.getValue();
}
}