Author: ekoneil
Date: Mon Aug 16 10:00:38 2004
New Revision: 36477

Added:
   
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalExpressionUtils.java
Log:
Add an internal Page Flow API for evaluating expressions from simple actions 
and for resource bundles.

This is used by the JPF runtime to handle expressions embedded in JSR 175 
metadata.  Right now, the API is just stubs and will be filled out with EL 
calls later in the week.

BB: self
DRT: NetUI pass
BVT: NetUI pass



Added: 
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalExpressionUtils.java
==============================================================================
--- (empty file)
+++ 
incubator/beehive/trunk/netui/src/pageflow/org/apache/beehive/netui/pageflow/internal/InternalExpressionUtils.java
  Mon Aug 16 10:00:38 2004
@@ -0,0 +1,60 @@
+/*
+ * B E A   S Y S T E M S
+ * Copyright 2002-2004  BEA Systems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$
+ */
+package org.apache.beehive.netui.pageflow.internal;
+
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.beehive.netui.util.logging.Logger;
+
+/**
+ * Internal class used to evaluate simple action expressions.
+ * 
+ * todo: need to merge this down into the expression language registration 
infrastructure
+ */
+public class InternalExpressionUtils
+{
+    private static final Logger _logger = 
Logger.getInstance(InternalExpressionUtils.class);
+
+    /* do not construct */
+    private InternalExpressionUtils() {} 
+
+    public static final boolean evaluateCondition(String expression, 
+                                                  Object actionForm,
+                                                  HttpServletRequest request, 
+                                                  HttpServletResponse 
response, 
+                                                  ServletContext 
servletContext)
+    {
+        // todo: implementation
+
+        return true;
+    }
+
+    public static final String evaluateMessage(String expression, 
+                                                Object actionForm,
+                                                HttpServletRequest request, 
+                                                HttpServletResponse response, 
+                                                ServletContext servletContext)
+    {
+        // todo: implementation
+
+        return "";
+    }
+}

Reply via email to