weaver 2004/05/27 12:49:18
Modified: portal/src/java/org/apache/jetspeed/container/session/impl
JetspeedNavigationalStateComponent.java
Log:
No need for start/stop lifecycle. We can parse the tokens in the constructor.
Revision Changes Path
1.8 +3 -11
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/JetspeedNavigationalStateComponent.java
Index: JetspeedNavigationalStateComponent.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/container/session/impl/JetspeedNavigationalStateComponent.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- JetspeedNavigationalStateComponent.java 8 May 2004 01:15:46 -0000 1.7
+++ JetspeedNavigationalStateComponent.java 27 May 2004 19:49:18 -0000 1.8
@@ -29,7 +29,6 @@
import org.apache.jetspeed.container.session.NavigationalStateComponent;
import org.apache.jetspeed.container.url.PortalURL;
import org.apache.jetspeed.request.RequestContext;
-import org.picocontainer.Startable;
/**
* JetspeedNavigationalStateComponent
@@ -37,7 +36,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">David Sean Taylor</a>
* @version $Id$
*/
-public class JetspeedNavigationalStateComponent implements
NavigationalStateComponent, Startable
+public class JetspeedNavigationalStateComponent implements
NavigationalStateComponent
{
static private final String PREFIX = "_";
static private final String ACTION = "ac";
@@ -75,20 +74,13 @@
this.navClassName = navClassName;
this.urlClassName = urlClassName;
this.navigationKeys = navigationKeys;
- }
-
- public void start()
- {
+
StringTokenizer tokenizer = new StringTokenizer(navigationKeys, ", ");
for (int ix = 0; tokenizer.hasMoreTokens() && ix <
NavigationalStateComponent.NAV_MAX; ix++)
{
String token = tokenizer.nextToken();
navigationKeyNames[ix] = token;
}
- }
-
- public void stop()
- {
}
public NavigationalState create(RequestContext context)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]