You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/08/31 21:38:44 UTC

svn commit: r265562 [3/4] - in /beehive/trunk/netui: src/core/org/apache/beehive/netui/core/factory/ src/pageflow/org/apache/beehive/netui/pageflow/ src/pageflow/org/apache/beehive/netui/pageflow/config/ src/pageflow/org/apache/beehive/netui/pageflow/h...

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/HandlerConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/HandlerConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/HandlerConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/HandlerConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class HandlerConfig {
+
+    private String _handlerClass;
+    private CustomPropertyConfig[] _customProperties;
+
+    public HandlerConfig(String handlerClass, CustomPropertyConfig[] customProperties) {
+        _handlerClass = handlerClass;
+        _customProperties = customProperties;
+    }
+
+    public String getHandlerClass() {
+        return _handlerClass;
+    }
+
+    public CustomPropertyConfig[] getCustomProperties() {
+        return _customProperties;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/HandlerConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IdJavascript.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IdJavascript.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IdJavascript.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IdJavascript.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,97 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public final class IdJavascript
+    implements java.io.Serializable {
+
+    public static final int INT_DEFAULT = 0;
+    public static final int INT_LEGACY = 1;
+    public static final int INT_LEGACY_ONLY = 2;
+
+    /**
+     */
+    public static final IdJavascript DEFAULT = new IdJavascript(INT_DEFAULT);
+
+    /**
+     */
+    public static final IdJavascript LEGACY = new IdJavascript(INT_LEGACY);
+
+    /**
+     */
+    public static final IdJavascript LEGACY_ONLY = new IdJavascript(INT_LEGACY_ONLY);
+
+    private int _val;
+
+    private IdJavascript(int val) {
+        _val = val;
+    }
+
+    /**
+     * Convert this id javascript to a readable String.
+     * @return the readable id javascript name
+     */
+    public String toString() {
+        switch(_val) {
+            case INT_DEFAULT:
+                return "default";
+            case INT_LEGACY:
+                return "legacy";
+            case INT_LEGACY_ONLY:
+                return "legacyOnly";
+        }
+
+        String message = "Encountered an unknown id javascript with value \"" + _val + "\"";
+        assert false : message;
+        throw new IllegalStateException(message);
+    }
+
+    /**
+     * Equals method.
+     * @param value value to check
+     * @return <code>true</code> if this id javascript matches the <code>value</code>; <code>false</code> otherwise.
+     */
+    public boolean equals(Object value) {
+        if(value == this)
+            return true;
+        if(value == null || !(value instanceof IdJavascript))
+            return false;
+
+        return ((IdJavascript)value)._val == _val;
+    }
+
+    /**
+     * Hash code.
+     * @return the hash code
+     */
+    public int hashCode() {
+        return _val;
+    }
+
+    /**
+     * The id javascript's int value.
+     *
+     * @return the id javascript's value
+     */
+    public int getValue() {
+        return _val;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IdJavascript.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/InterceptorConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/InterceptorConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/InterceptorConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/InterceptorConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class InterceptorConfig {
+
+    private String _interceptorClass;
+    private CustomPropertyConfig[] _customProperties;
+
+    public InterceptorConfig(String interceptorClass, CustomPropertyConfig[] customProperties) {
+        _interceptorClass = interceptorClass;
+        _customProperties = customProperties;
+    }
+
+    public String getInterceptorClass() {
+        return _interceptorClass;
+    }
+
+    public CustomPropertyConfig[] getCustomProperties() {
+        return _customProperties;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/InterceptorConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IteratorFactoryConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IteratorFactoryConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IteratorFactoryConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IteratorFactoryConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class IteratorFactoryConfig {
+
+    private String _name;
+    private String _factoryClass;
+
+    public IteratorFactoryConfig(String name, String factoryClass) {
+        _name = name;
+        _factoryClass = factoryClass;
+    }
+
+    public String getName() {
+        return _name;
+    }
+
+    public String getFactoryClass() {
+        return _factoryClass;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/IteratorFactoryConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/JspTagConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/JspTagConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/JspTagConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/JspTagConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,60 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class JspTagConfig {
+
+    private static final DocType DEFAULT_DOC_TYPE = DocType.HTML4_LOOSE_QUIRKS;
+    private static final IdJavascript DEFAULT_ID_JAVASCRIPT = IdJavascript.DEFAULT;
+
+    private DocType _docType;
+    private IdJavascript _idJavascript;
+    private String _treeImageLocation;
+
+    public JspTagConfig() {
+        _docType = DEFAULT_DOC_TYPE;
+        _idJavascript = DEFAULT_ID_JAVASCRIPT;
+    }
+
+    public JspTagConfig(DocType docType, IdJavascript idJavascript, String treeImageLocation) {
+        this();
+
+        if(docType != null)
+            _docType = docType;
+        if(_idJavascript != null)
+            _idJavascript = idJavascript;
+
+        _treeImageLocation = treeImageLocation;
+    }
+
+    public DocType getDocType() {
+        return _docType;
+    }
+
+    public IdJavascript getIdJavascript() {
+        return _idJavascript;
+    }
+
+    public String getTreeImageLocation() {
+        return _treeImageLocation;
+    }
+
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/JspTagConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/ModuleConfigLocatorConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/ModuleConfigLocatorConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/ModuleConfigLocatorConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/ModuleConfigLocatorConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class ModuleConfigLocatorConfig {
+
+    private String _locatorClass;
+    private String _description;
+
+    public ModuleConfigLocatorConfig(String locatorClass, String description) {
+        _locatorClass = locatorClass;
+        _description = description;
+    }
+
+    public String getLocatorClass() {
+        return _locatorClass;
+    }
+
+    public String getDescription() {
+        return _description;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/ModuleConfigLocatorConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/MultipartHandler.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/MultipartHandler.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/MultipartHandler.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/MultipartHandler.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,97 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public final class MultipartHandler
+    implements java.io.Serializable {
+
+    public static final int INT_DISABLED = 0;
+    public static final int INT_MEMORY = 1;
+    public static final int INT_DISK = 2;
+
+    /**
+     */
+    public static final MultipartHandler DISABLED = new MultipartHandler(INT_DISABLED);
+
+    /**
+     */
+    public static final MultipartHandler MEMORY = new MultipartHandler(INT_MEMORY);
+
+    /**
+     */
+    public static final MultipartHandler DISK = new MultipartHandler(INT_DISK);
+
+    private int _val;
+
+    private MultipartHandler(int val) {
+        _val = val;
+    }
+
+    /**
+     * Convert this multipart handler to a readable String.
+     * @return the readable multipart handler name
+     */
+    public String toString() {
+        switch(_val) {
+            case INT_DISABLED:
+                return "disabled";
+            case INT_MEMORY:
+                return "memory";
+            case INT_DISK:
+                return "disk";
+        }
+
+        String message = "Encountered an unknown multipart handler with value \"" + _val + "\"";
+        assert false : message;
+        throw new IllegalStateException(message);
+    }
+
+    /**
+     * Equals method.
+     * @param value value to check
+     * @return <code>true</code> if this multipart handler matches the <code>value</code>; <code>false</code> otherwise.
+     */
+    public boolean equals(Object value) {
+        if(value == this)
+            return true;
+        if(value == null || !(value instanceof MultipartHandler))
+            return false;
+
+        return ((MultipartHandler)value)._val == _val;
+    }
+
+    /**
+     * Hash code.
+     * @return the hash code
+     */
+    public int hashCode() {
+        return _val;
+    }
+
+    /**
+     * The multipart handler's int value.
+     *
+     * @return the multipart handler's value
+     */
+    public int getValue() {
+        return _val;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/MultipartHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/NetUIConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/NetUIConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/NetUIConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/NetUIConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,111 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class NetUIConfig {
+
+    private PageFlowActionInterceptorsConfig _pageFlowActionInterceptors;
+    private PageFlowHandlersConfig _pageFlowHandlers;
+    private PageFlowConfig _pageFlowConfig;
+    private PageFlowFactoriesConfig _pageFlowFactories;
+    private SharedFlowRefConfig[] _sharedFlowRef;
+    private RequestInterceptorsConfig _requestInterceptors;
+    private JspTagConfig _jspTagConfig;
+    private PrefixHandlerConfig[] _prefixHandlers;
+    private ExpressionLanguagesConfig _expressionLanguages;
+    private IteratorFactoryConfig[] _iteratorFactories;
+    private TypeConverterConfig[] _typeConverters;
+    private UrlConfig _urlConfig;
+
+    public NetUIConfig(PageFlowActionInterceptorsConfig pageFlowActionInterceptors,
+                       PageFlowHandlersConfig pageFlowHandlers,
+                       PageFlowConfig pageFlowConfig,
+                       PageFlowFactoriesConfig pageFlowFactories,
+                       SharedFlowRefConfig[] sharedFlowRef,
+                       RequestInterceptorsConfig requestInterceptors,
+                       JspTagConfig jspTagConfig,
+                       PrefixHandlerConfig[] prefixHandlers,
+                       ExpressionLanguagesConfig expressionLanguages,
+                       IteratorFactoryConfig[] iteratorFactories,
+                       TypeConverterConfig[] typeConverters,
+                       UrlConfig urlConfig) {
+        _pageFlowActionInterceptors = pageFlowActionInterceptors;
+        _pageFlowHandlers = pageFlowHandlers;
+        _pageFlowConfig = pageFlowConfig;
+        _pageFlowFactories = pageFlowFactories;
+        _sharedFlowRef = sharedFlowRef;
+        _requestInterceptors = requestInterceptors;
+        _jspTagConfig = jspTagConfig;
+        _prefixHandlers = prefixHandlers;
+        _expressionLanguages = expressionLanguages;
+        _iteratorFactories = iteratorFactories;
+        _typeConverters = typeConverters;
+        _urlConfig = urlConfig;
+    }
+
+    public PageFlowActionInterceptorsConfig getPageFlowActionInterceptors() {
+        return _pageFlowActionInterceptors;
+    }
+
+    public PageFlowHandlersConfig getPageFlowHandlers() {
+        return _pageFlowHandlers;
+    }
+
+    public PageFlowConfig getPageFlowConfig() {
+        return _pageFlowConfig;
+    }
+
+    public PageFlowFactoriesConfig getPageFlowFactories() {
+        return _pageFlowFactories;
+    }
+
+    public SharedFlowRefConfig[] getSharedFlowRef() {
+        return _sharedFlowRef;
+    }
+
+    public RequestInterceptorsConfig getRequestInterceptors() {
+        return _requestInterceptors;
+    }
+
+    public JspTagConfig getJspTagConfig() {
+        return _jspTagConfig;
+    }
+
+    public PrefixHandlerConfig[] getPrefixHandlers() {
+        return _prefixHandlers;
+    }
+
+    public ExpressionLanguagesConfig getExpressionLanguages() {
+        return _expressionLanguages;
+    }
+
+    public IteratorFactoryConfig[] getIteratorFactories() {
+        return _iteratorFactories;
+    }
+
+    public TypeConverterConfig[] getTypeConverters() {
+        return _typeConverters;
+    }
+
+    public UrlConfig getUrlConfig() {
+        return _urlConfig;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/NetUIConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowActionInterceptorsConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowActionInterceptorsConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowActionInterceptorsConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowActionInterceptorsConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,41 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PageFlowActionInterceptorsConfig {
+
+    private GlobalPageFlowActionInterceptorConfig _globalPageFlowActionInterceptors;
+    private PerPageFlowActionInterceptorConfig[] _perPageFlowActionInterceptors;
+
+    public PageFlowActionInterceptorsConfig(GlobalPageFlowActionInterceptorConfig globalPageFlowActionInterceptors,
+                                            PerPageFlowActionInterceptorConfig[] perPageFlowActionInterceptors) {
+        _globalPageFlowActionInterceptors = globalPageFlowActionInterceptors;
+        _perPageFlowActionInterceptors = perPageFlowActionInterceptors;
+    }
+
+    public GlobalPageFlowActionInterceptorConfig getGlobalPageFlowActionInterceptors() {
+        return _globalPageFlowActionInterceptors;
+    }
+
+    public PerPageFlowActionInterceptorConfig[] getPerPageFlowActionInterceptors() {
+        return _perPageFlowActionInterceptors;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowActionInterceptorsConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,113 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PageFlowConfig {
+
+    private static final boolean DEFAULT_ENABLE_SELF_NESTING = false;
+    private static final int DEFAULT_MAX_FORWARDS_PER_REQUEST = 25;
+    private static final int DEFAULT_MAX_NESTING_STACK_DEPTH = 10;
+    private static final boolean DEFAULT_ENSURE_SECURE_FORWARDS = false;
+    private static final boolean DEFAULT_THROW_SESSION_EXPIRED_EXCEPTION = true;
+    private static final MultipartHandler DEFAULT_MULTIPART_HANDLER = MultipartHandler.DISABLED;
+    private static final PreventCache DEFAULT_PREVENT_CACHE = PreventCache.DEFAULT;
+
+    private boolean _enableSelfNesting;
+    private boolean _ensureSecureForwards;
+    private boolean _throwSessionExpiredException;
+    private int _maxForwardsPerRequest;
+    private int _maxNestingStackDepth;
+    private MultipartHandler _multipartHandler;
+    private PreventCache _preventCache;
+    private ModuleConfigLocatorConfig[] _moduleConfigLocators;
+
+    public PageFlowConfig() {
+        _enableSelfNesting = DEFAULT_ENABLE_SELF_NESTING;
+        _ensureSecureForwards = DEFAULT_ENSURE_SECURE_FORWARDS;
+        _throwSessionExpiredException = DEFAULT_THROW_SESSION_EXPIRED_EXCEPTION;
+        _maxForwardsPerRequest = DEFAULT_MAX_NESTING_STACK_DEPTH;
+        _maxNestingStackDepth = DEFAULT_MAX_FORWARDS_PER_REQUEST;
+        _multipartHandler = DEFAULT_MULTIPART_HANDLER;
+        _preventCache = DEFAULT_PREVENT_CACHE;
+    }
+
+    public PageFlowConfig(Boolean enableSelfNesting,
+                          Boolean ensureSecureForwards,
+                          Boolean throwSessionExpiredException,
+                          Integer maxForwardsPerRequest,
+                          Integer maxNestingStackDepth,
+                          MultipartHandler multipartHandler,
+                          PreventCache preventCache,
+                          ModuleConfigLocatorConfig[] moduleConfigLocators) {
+
+        /* initialize the defaults */
+        this();
+
+        if(enableSelfNesting != null)
+            _enableSelfNesting = enableSelfNesting.booleanValue();
+        if(ensureSecureForwards != null)
+            _ensureSecureForwards = ensureSecureForwards.booleanValue();
+        if(throwSessionExpiredException != null)
+            _throwSessionExpiredException = throwSessionExpiredException.booleanValue();
+        if(maxForwardsPerRequest != null)
+            _maxForwardsPerRequest = maxForwardsPerRequest.intValue();
+        if(maxNestingStackDepth != null)
+            _maxForwardsPerRequest = maxNestingStackDepth.intValue();
+        if(multipartHandler != null)
+            _multipartHandler = multipartHandler;
+        if(preventCache != null)
+            _preventCache = preventCache;
+
+        _moduleConfigLocators = moduleConfigLocators;
+    }
+
+    public boolean isEnableSelfNesting() {
+        return _enableSelfNesting;
+    }
+
+    public boolean isEnsureSecureForwards() {
+        return _ensureSecureForwards;
+    }
+
+    public boolean isThrowSessionExpiredException() {
+        return _throwSessionExpiredException;
+    }
+
+    public int getMaxForwardsPerRequest() {
+        return _maxForwardsPerRequest;
+    }
+
+    public int getMaxNestingStackDepth() {
+        return _maxNestingStackDepth;
+    }
+
+    public MultipartHandler getMultipartHandler() {
+        return _multipartHandler;
+    }
+
+    public PreventCache getPreventCache() {
+        return _preventCache;
+    }
+
+    public ModuleConfigLocatorConfig[] getModuleConfigLocators() {
+        return _moduleConfigLocators;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoriesConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoriesConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoriesConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoriesConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PageFlowFactoriesConfig {
+    private PageFlowFactoryConfig _pageFlowFactory;
+    private PageFlowFactoryConfig _facesBackingBeanFactory;
+
+    public PageFlowFactoriesConfig(PageFlowFactoryConfig pageFlowFactory, PageFlowFactoryConfig facesBackingBeanFactory) {
+        _pageFlowFactory = pageFlowFactory;
+        _facesBackingBeanFactory = facesBackingBeanFactory;
+    }
+
+    public PageFlowFactoryConfig getPageFlowFactory() {
+        return _pageFlowFactory;
+    }
+
+    public PageFlowFactoryConfig getFacesBackingBeanFactory() {
+        return _facesBackingBeanFactory;
+    }
+}
+

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoriesConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoryConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoryConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoryConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoryConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,39 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PageFlowFactoryConfig {
+    private String _factoryClass;
+    private CustomPropertyConfig[] _customProperties;
+
+    public PageFlowFactoryConfig(String factoryClass, CustomPropertyConfig[] customProperties) {
+        _factoryClass = factoryClass;
+        _customProperties = customProperties;
+    }
+
+    public String getFactoryClass() {
+        return _factoryClass;
+    }
+
+    public CustomPropertyConfig[] getCustomProperties() {
+        return _customProperties;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowFactoryConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowHandlersConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowHandlersConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowHandlersConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowHandlersConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,69 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PageFlowHandlersConfig {
+
+    private HandlerConfig[] _actionForwardHandlers;
+    private HandlerConfig[] _exceptionsHandler;
+    private HandlerConfig[] _forwardRedirectHandler;
+    private HandlerConfig[] _loginHandler;
+    private HandlerConfig[] _storageHandler;
+    private HandlerConfig[] _reloadableClassHandler;
+
+    public PageFlowHandlersConfig(HandlerConfig[] actionForwardHandlers,
+                                  HandlerConfig[] exceptionsHandler,
+                                  HandlerConfig[] forwardRedirectHandler,
+                                  HandlerConfig[] loginHandler,
+                                  HandlerConfig[] storageHandler,
+                                  HandlerConfig[] reloadableClassHandler) {
+        _actionForwardHandlers = actionForwardHandlers;
+        _exceptionsHandler = exceptionsHandler;
+        _forwardRedirectHandler = forwardRedirectHandler;
+        _loginHandler = loginHandler;
+        _storageHandler = storageHandler;
+        _reloadableClassHandler = reloadableClassHandler;
+    }
+
+    public HandlerConfig[] getActionForwardHandlers() {
+        return _actionForwardHandlers;
+    }
+
+    public HandlerConfig[] getExceptionsHandler() {
+        return _exceptionsHandler;
+    }
+
+    public HandlerConfig[] getForwardRedirectHandler() {
+        return _forwardRedirectHandler;
+    }
+
+    public HandlerConfig[] getLoginHandler() {
+        return _loginHandler;
+    }
+
+    public HandlerConfig[] getStorageHandler() {
+        return _storageHandler;
+    }
+
+    public HandlerConfig[] getReloadableClassHandler() {
+        return _reloadableClassHandler;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PageFlowHandlersConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerActionInterceptorConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerActionInterceptorConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerActionInterceptorConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerActionInterceptorConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,48 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PerActionInterceptorConfig {
+
+    private String _actionName;
+    private SimpleActionInterceptorConfig[] _simpleActionInterceptor;
+    private InterceptorConfig[] _actionInterceptor;
+
+    public PerActionInterceptorConfig(String actionName,
+                                      SimpleActionInterceptorConfig[] simpleActionInterceptor,
+                                      InterceptorConfig[] actionInterceptor) {
+        _actionName = actionName;
+        _simpleActionInterceptor = simpleActionInterceptor;
+        _actionInterceptor = actionInterceptor;
+    }
+
+    public String getActionName() {
+        return _actionName;
+    }
+
+    public SimpleActionInterceptorConfig[] getSimpleActionInterceptor() {
+        return _simpleActionInterceptor;
+    }
+
+    public InterceptorConfig[] getActionInterceptor() {
+        return _actionInterceptor;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerActionInterceptorConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerPageFlowActionInterceptorConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerPageFlowActionInterceptorConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerPageFlowActionInterceptorConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerPageFlowActionInterceptorConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,55 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PerPageFlowActionInterceptorConfig {
+
+    private String _pageflowUri;
+    private SimpleActionInterceptorConfig[] _simpleActionInterceptors;
+    private InterceptorConfig[] _actionInterceptors;
+    private PerActionInterceptorConfig[] _perActionInterceptors;
+
+    public PerPageFlowActionInterceptorConfig(String pageflowUri,
+                                              SimpleActionInterceptorConfig[] simpleActionInterceptors,
+                                              InterceptorConfig[] actionInterceptors,
+                                              PerActionInterceptorConfig[] perActionInterceptors) {
+        _pageflowUri = pageflowUri;
+        _simpleActionInterceptors = simpleActionInterceptors;
+        _actionInterceptors = actionInterceptors;
+        _perActionInterceptors = perActionInterceptors;
+    }
+
+    public String getPageflowUri() {
+        return _pageflowUri;
+    }
+
+    public SimpleActionInterceptorConfig[] getSimpleActionInterceptors() {
+        return _simpleActionInterceptors;
+    }
+
+    public InterceptorConfig[] getActionInterceptors() {
+        return _actionInterceptors;
+    }
+
+    public PerActionInterceptorConfig[] getPerActionInterceptors() {
+        return _perActionInterceptors;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PerPageFlowActionInterceptorConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PrefixHandlerConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PrefixHandlerConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PrefixHandlerConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PrefixHandlerConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,39 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class PrefixHandlerConfig {
+    private String _name;
+    private String _handlerClass;
+
+    public PrefixHandlerConfig(String name, String handlerClass) {
+        _name = name;
+        _handlerClass = handlerClass;
+    }
+
+    public String getName() {
+        return _name;
+    }
+
+    public String getHandlerClass() {
+        return _handlerClass;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PrefixHandlerConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PreventCache.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PreventCache.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PreventCache.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PreventCache.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,97 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public final class PreventCache
+    implements java.io.Serializable {
+
+    public static final int INT_DEFAULT = 0;
+    public static final int INT_ALWAYS = 1;
+    public static final int INT_IN_DEV_MODE = 2;
+
+    /**
+     */
+    public static final PreventCache DEFAULT = new PreventCache(INT_DEFAULT);
+
+    /**
+     */
+    public static final PreventCache ALWAYS = new PreventCache(INT_ALWAYS);
+
+    /**
+     */
+    public static final PreventCache IN_DEV_MODE = new PreventCache(INT_IN_DEV_MODE);
+
+    private int _val;
+
+    private PreventCache(int val) {
+        _val = val;
+    }
+
+    /**
+     * Convert this prevent cache to a readable String.
+     * @return the readable multipart handler name
+     */
+    public String toString() {
+        switch(_val) {
+            case INT_DEFAULT:
+                return "default";
+            case INT_ALWAYS:
+                return "always";
+            case INT_IN_DEV_MODE:
+                return "inDevMode";
+        }
+
+        String message = "Encountered an unknown prevent cache with value \"" + _val + "\"";
+        assert false : message;
+        throw new IllegalStateException(message);
+    }
+
+    /**
+     * Equals method.
+     * @param value value to check
+     * @return <code>true</code> if this prevent cache matches the <code>value</code>; <code>false</code> otherwise.
+     */
+    public boolean equals(Object value) {
+        if(value == this)
+            return true;
+        if(value == null || !(value instanceof PreventCache))
+            return false;
+
+        return ((PreventCache)value)._val == _val;
+    }
+
+    /**
+     * Hash code.
+     * @return the hash code
+     */
+    public int hashCode() {
+        return _val;
+    }
+
+    /**
+     * The multipart handler's int value.
+     *
+     * @return the multipart handler's value
+     */
+    public int getValue() {
+        return _val;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/PreventCache.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/RequestInterceptorsConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/RequestInterceptorsConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/RequestInterceptorsConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/RequestInterceptorsConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,34 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class RequestInterceptorsConfig {
+
+    private InterceptorConfig[] _globalRequestInterceptors;
+
+    public RequestInterceptorsConfig(InterceptorConfig[] globalRequestInterceptors) {
+        _globalRequestInterceptors = globalRequestInterceptors;
+    }
+
+    public InterceptorConfig[] getGlobalRequestInterceptors() {
+        return _globalRequestInterceptors;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/RequestInterceptorsConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SharedFlowRefConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SharedFlowRefConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SharedFlowRefConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SharedFlowRefConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,22 @@
+package org.apache.beehive.netui.util.config.bean;
+
+/**
+ *
+ */
+public class SharedFlowRefConfig {
+    private String _name;
+    private String _type;
+
+    public SharedFlowRefConfig(String name, String type) {
+        _name = name;
+        _type = type;
+    }
+
+    public String getName() {
+        return _name;
+    }
+
+    public String getType() {
+        return _type;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SharedFlowRefConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SimpleActionInterceptorConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SimpleActionInterceptorConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SimpleActionInterceptorConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SimpleActionInterceptorConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,49 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ */
+public class SimpleActionInterceptorConfig {
+
+    private static final boolean DEFAULT_AFTER_ACTION = false;
+
+    private boolean _afterAction;
+    private String _interceptPath;
+
+    public SimpleActionInterceptorConfig() {
+        _afterAction = DEFAULT_AFTER_ACTION;
+    }
+
+    public SimpleActionInterceptorConfig(Boolean afterAction, String interceptPath) {
+        this();
+        
+        if(afterAction != null)
+            _afterAction = afterAction.booleanValue();
+
+        _interceptPath = interceptPath;
+    }
+
+    public boolean getAfterAction() {
+        return _afterAction;
+    }
+
+    public String getInterceptPath() {
+        return _interceptPath;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/SimpleActionInterceptorConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/TypeConverterConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/TypeConverterConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/TypeConverterConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/TypeConverterConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,40 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class TypeConverterConfig {
+
+    private String _type;
+    private String _converterClass;
+
+    public TypeConverterConfig(String type, String converterClass) {
+        _type = type;
+        _converterClass = converterClass;
+    }
+
+    public String getType() {
+        return _type;
+    }
+
+    public String getConverterClass() {
+        return _converterClass;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/TypeConverterConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/UrlConfig.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/UrlConfig.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/UrlConfig.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/UrlConfig.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,64 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.bean;
+
+/**
+ *
+ */
+public class UrlConfig {
+
+    private static final boolean DEFAULT_URL_ENCODE_URLS = true;
+    private static final boolean DEFAULT_HTML_AMP_ENTITY = true;
+    private static final String DEFAULT_TEMPLATED_URL_FORMATTER_CLASS =
+        "org.apache.beehive.netui.core.urls.DefaultTemplatedURLFormatter";
+    
+    private boolean _urlEncodeUrls;
+    private boolean _htmlAmpEntity = DEFAULT_HTML_AMP_ENTITY;
+    private String _templatedUrlFormatterClass;
+
+    public UrlConfig() {
+        _urlEncodeUrls = DEFAULT_URL_ENCODE_URLS;
+        _htmlAmpEntity = DEFAULT_HTML_AMP_ENTITY;
+        _templatedUrlFormatterClass = DEFAULT_TEMPLATED_URL_FORMATTER_CLASS;
+    }
+
+    public UrlConfig(Boolean urlEncodeUrls, Boolean htmlAmpEntity, String templatedUrlFormatterClass) {
+        this();
+
+        if(urlEncodeUrls != null)
+        _urlEncodeUrls = urlEncodeUrls.booleanValue();
+
+        if(htmlAmpEntity != null)
+            _htmlAmpEntity = htmlAmpEntity.booleanValue();
+
+        if(templatedUrlFormatterClass != null)
+            _templatedUrlFormatterClass = templatedUrlFormatterClass;
+    }
+
+    public boolean isUrlEncodeUrls() {
+        return _urlEncodeUrls;
+    }
+
+    public boolean isHtmlAmpEntity() {
+        return _htmlAmpEntity;
+    }
+
+    public String isTemplatedUrlFormatterClass() {
+        return _templatedUrlFormatterClass;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/bean/UrlConfig.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/internal/XmlBeanConfigFactory.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/internal/XmlBeanConfigFactory.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/internal/XmlBeanConfigFactory.java (added)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/internal/XmlBeanConfigFactory.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,444 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.util.config.internal;
+
+import java.io.InputStream;
+import java.io.IOException;
+import java.util.ArrayList;
+
+import org.apache.xmlbeans.XmlOptions;
+import org.apache.xmlbeans.XmlException;
+import org.apache.xmlbeans.XmlError;
+
+import org.apache.beehive.netui.util.config.bean.*;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.NetuiConfigDocument;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.Interceptor;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.CustomProperty;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowFactory;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.Handler;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.SimpleActionInterceptor;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowActionInterceptors;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.ExpressionLanguages;
+import org.apache.beehive.netui.util.config.ConfigInitializationException;
+import org.apache.beehive.netui.util.config.ConfigFactory;
+import org.apache.beehive.netui.util.internal.InternalStringBuilder;
+import org.apache.beehive.netui.util.logging.Logger;
+
+/**
+ *
+ */
+public final class XmlBeanConfigFactory
+    extends ConfigFactory {
+
+    private static final Logger LOGGER = Logger.getInstance(XmlBeanConfigFactory.class);
+
+    private static final String DEFAULT_CONFIG = "org/apache/beehive/netui/util/config/beehive-netui-config-default.xml";
+
+    public NetuiConfigDocument.NetuiConfig getConfig(InputStream is)
+        throws ConfigInitializationException {
+
+        NetuiConfigDocument config = null;
+        // when initialized with a null InputStream, revert to using a default, barebones config file
+        if(is == null) {
+            ClassLoader cl = Thread.currentThread().getContextClassLoader();
+            is = cl.getResourceAsStream(DEFAULT_CONFIG);
+
+            if(is == null)
+                throw new ConfigInitializationException("The NetUI runtime could not find the default config file.  " +
+                    "The webapp may not function properly.");
+
+            if(LOGGER.isInfoEnabled())
+                LOGGER.info("Loading the default NetUI config file.  The runtime will be configured " +
+                    "with a set of minimum parameters.");
+        }
+
+        config = parse(is);
+
+        /* todo: convert XMLBean config document into a NetUIConfig object */
+        return config.getNetuiConfig();
+    }
+
+    public NetUIConfig getNewConfig(NetuiConfigDocument.NetuiConfig config) {
+        return convert(config);
+    }
+
+    private NetuiConfigDocument parse(InputStream is) {
+
+        NetuiConfigDocument config = null;
+        try {
+            XmlOptions loadOptions = new XmlOptions();
+            loadOptions.setLoadLineNumbers();
+            config = NetuiConfigDocument.Factory.parse(is, loadOptions);
+        }
+        // XmlException | IOException
+        catch(Exception ex) {
+            assert ex instanceof XmlException || ex instanceof IOException;
+            throw new ConfigInitializationException("Unable load the NetUI config file.  Cause: " + ex, ex);
+        }
+
+        assert config != null;
+
+        // Validate the document.
+        XmlOptions validateOptions = new XmlOptions();
+        ArrayList errorList = new ArrayList();
+        validateOptions.setErrorListener(errorList);
+        boolean isValid = config.validate(validateOptions);
+
+        // Throw an exception if the XML is invalid.
+        if(!isValid) {
+            InternalStringBuilder msg = new InternalStringBuilder("Invalid NetUI configuration file.");
+
+            for(int i = 0; i < errorList.size(); i++) {
+                XmlError error = (XmlError)errorList.get(i);
+                msg.append("\n    line ");
+                msg.append(error.getLine());
+                msg.append(": ");
+                msg.append(error.getMessage());
+                msg.append(" (");
+                msg.append(error.getCursorLocation().toString());
+                msg.append(")");
+            }
+
+            throw new ConfigInitializationException(msg.toString());
+        }
+        else return config;
+    }
+
+    private NetUIConfig convert(NetuiConfigDocument.NetuiConfig xmlbean) {
+        NetUIConfig netuiConfig;
+
+        /* PFActionInterceptorsConfig */
+        PerPageFlowActionInterceptorConfig[] perPageFlowActionInterceptorConfig = null;
+        GlobalPageFlowActionInterceptorConfig globalPageFlowActionInterceptorConfig = null;
+        PageflowActionInterceptors xPfActionInterceptors = xmlbean.getPageflowActionInterceptors();
+        if(xPfActionInterceptors != null) {
+            if(xPfActionInterceptors.getPerPageflowArray() != null) {
+                perPageFlowActionInterceptorConfig =
+                    new PerPageFlowActionInterceptorConfig[xmlbean.getPageflowActionInterceptors().getPerPageflowArray().length];
+                for(int i = 0; i < perPageFlowActionInterceptorConfig.length; i++) {
+                    perPageFlowActionInterceptorConfig[i] = new PerPageFlowActionInterceptorConfig(
+                        xmlbean.getPageflowActionInterceptors().getPerPageflowArray(i).getPageflowUri(),
+                        parseSimpleActionInterceptorConfig(xmlbean.getPageflowActionInterceptors().getPerPageflowArray(i).getSimpleActionInterceptorArray()),
+                        parseInterceptorConfig(xmlbean.getPageflowActionInterceptors().getPerPageflowArray(i).getActionInterceptorArray()),
+                        parsePerActionActionInterceptorConfig(xmlbean.getPageflowActionInterceptors().getPerPageflowArray(i).getPerActionArray())
+                    );
+                }
+            }
+
+            SimpleActionInterceptorConfig[] simpleActionInterceptorConfig = null;
+            InterceptorConfig[] interceptorConfigs = null;
+            if(xPfActionInterceptors.getGlobal() != null) {
+                if(xPfActionInterceptors.getGlobal().sizeOfSimpleActionInterceptorArray() > 0)
+                    simpleActionInterceptorConfig = parseSimpleActionInterceptorConfig(xPfActionInterceptors.getGlobal().getSimpleActionInterceptorArray());
+                if(xPfActionInterceptors.getGlobal().sizeOfActionInterceptorArray() > 0)
+                    interceptorConfigs = parseInterceptorConfig(xPfActionInterceptors.getGlobal().getActionInterceptorArray());
+            }
+
+            globalPageFlowActionInterceptorConfig =
+                new GlobalPageFlowActionInterceptorConfig(simpleActionInterceptorConfig, interceptorConfigs);
+        }
+
+        PageFlowActionInterceptorsConfig pfActionInterceptorsConfig =
+            new PageFlowActionInterceptorsConfig(globalPageFlowActionInterceptorConfig, perPageFlowActionInterceptorConfig);
+
+        /* PFHandlersConfig */
+        PageFlowHandlersConfig pfHandlersConfig = null;
+        if(xmlbean.getPageflowHandlers() != null) {
+            pfHandlersConfig =
+                new PageFlowHandlersConfig(
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getActionForwardHandlerArray()),
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getExceptionsHandlerArray()),
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getForwardRedirectHandlerArray()),
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getLoginHandlerArray()),
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getReloadableClassHandlerArray()),
+                    parseHandlerConfig(xmlbean.getPageflowHandlers().getStorageHandlerArray())
+                );
+        }
+
+        /* PFConfig */
+        ModuleConfigLocatorConfig[] moduleConfigLocators = null;
+        if(xmlbean.getPageflowConfig() != null && xmlbean.getPageflowConfig().getModuleConfigLocators() != null) {
+            moduleConfigLocators =
+                new ModuleConfigLocatorConfig[xmlbean.getPageflowConfig().getModuleConfigLocators().getModuleConfigLocatorArray().length];
+            for(int i = 0; i < moduleConfigLocators.length; i++) {
+                moduleConfigLocators[i] = new ModuleConfigLocatorConfig(
+                    xmlbean.getPageflowConfig().getModuleConfigLocators().getModuleConfigLocatorArray(i).getLocatorClass(),
+                    xmlbean.getPageflowConfig().getModuleConfigLocators().getModuleConfigLocatorArray(i).getDescription()
+                );
+            }
+        }
+
+        PageFlowConfig pfConfig = null;
+        if(xmlbean.getPageflowConfig() != null) {
+            pfConfig = new PageFlowConfig(
+                xmlbean.getPageflowConfig().isSetEnableSelfNesting() ? new Boolean(xmlbean.getPageflowConfig().getEnableSelfNesting()) : null,
+                xmlbean.getPageflowConfig().isSetEnsureSecureForwards() ? new Boolean(xmlbean.getPageflowConfig().getEnsureSecureForwards()) : null,
+                xmlbean.getPageflowConfig().isSetThrowSessionExpiredException() ? new Boolean(xmlbean.getPageflowConfig().getThrowSessionExpiredException()) : null,
+                xmlbean.getPageflowConfig().isSetMaxForwardsPerRequest() ? new Integer(xmlbean.getPageflowConfig().getMaxForwardsPerRequest()) : null,
+                xmlbean.getPageflowConfig().isSetMaxNestingStackDepth() ? new Integer(xmlbean.getPageflowConfig().getMaxNestingStackDepth()) : null,
+                xmlbean.getPageflowConfig().isSetMultipartHandler() ? parseMultipartHandler(xmlbean.getPageflowConfig().getMultipartHandler()) : null,
+                xmlbean.getPageflowConfig().isSetPreventCache() ? parsePreventCache(xmlbean.getPageflowConfig().getPreventCache()) : null,
+                moduleConfigLocators
+            );
+        }
+        else pfConfig = new PageFlowConfig();
+
+        /* PFFactoriesConfig */
+        PageFlowFactoriesConfig pfFactoriesConfig = null;
+        if(xmlbean.getPageflowFactories() != null) {
+            pfFactoriesConfig = new PageFlowFactoriesConfig(
+                parsePageFlowFactoryConfig(xmlbean.getPageflowFactories().getFlowcontrollerFactory()),
+                parsePageFlowFactoryConfig(xmlbean.getPageflowFactories().getFacesBackingBeanFactory())
+            );
+        }
+
+        /* SharedFlowRefConfig */
+        SharedFlowRefConfig[] sharedFlowRefConfigs = null;
+        if(xmlbean.getDefaultSharedFlowRefs() != null) {
+            sharedFlowRefConfigs = new SharedFlowRefConfig[xmlbean.getDefaultSharedFlowRefs().getSharedFlowRefArray().length];
+            for(int i = 0; i < sharedFlowRefConfigs.length; i++) {
+                sharedFlowRefConfigs[i] =
+                    new SharedFlowRefConfig(
+                        xmlbean.getDefaultSharedFlowRefs().getSharedFlowRefArray(i).getName(),
+                        xmlbean.getDefaultSharedFlowRefs().getSharedFlowRefArray(i).getType()
+                    );
+            }
+        }
+
+        /* RequestInterceptorsConfig */
+        InterceptorConfig[] requestInterceptorConfig =
+            parseInterceptorConfig(xmlbean.getRequestInterceptors().getGlobal().getRequestInterceptorArray());
+        RequestInterceptorsConfig requestInterceptorsConfig = new RequestInterceptorsConfig(requestInterceptorConfig);
+
+        /* PrefixHandlerConfig */
+        PrefixHandlerConfig[] prefixHandlers = null;
+        if(xmlbean.getPrefixHandlers() != null) {
+            prefixHandlers = new PrefixHandlerConfig[xmlbean.getPrefixHandlers().getPrefixHandlerArray().length];
+            for(int i = 0; i < prefixHandlers.length; i++) {
+                prefixHandlers[i] = new PrefixHandlerConfig(
+                    xmlbean.getPrefixHandlers().getPrefixHandlerArray(i).getName(),
+                    xmlbean.getPrefixHandlers().getPrefixHandlerArray(i).getHandlerClass()
+                );
+            }
+        }
+
+        /* JspTagConfig */
+        JspTagConfig jspTagConfig = null;
+        if(xmlbean.getJspTagConfig() != null) {
+            jspTagConfig = new JspTagConfig(
+                xmlbean.getJspTagConfig().isSetDoctype() ? parseDocType(xmlbean.getJspTagConfig().getDoctype()) : null,
+                xmlbean.getJspTagConfig().isSetIdJavascript() ? parseIdJavascript(xmlbean.getJspTagConfig().getIdJavascript()) : null,
+                xmlbean.getJspTagConfig().getTreeImageLocation()
+            );
+        }
+        else jspTagConfig = new JspTagConfig();
+
+        /* ExpressionLanguages */
+        ExpressionLanguagesConfig elConfig = null;
+        if(xmlbean.getExpressionLanguages() != null) {
+            ExpressionLanguageConfig[] els =
+                new ExpressionLanguageConfig[xmlbean.getExpressionLanguages().getExpressionLanguageArray().length];
+            for(int i = 0; i < els.length; i++) {
+                ExpressionLanguages.ExpressionLanguage xEl =
+                    xmlbean.getExpressionLanguages().getExpressionLanguageArray(i);
+
+                BindingContextConfig[] bindingContexts = null;
+                if(xEl.getBindingContexts() != null) {
+                    bindingContexts =
+                        new BindingContextConfig[xEl.getBindingContexts().getBindingContextArray().length];
+                    for(int j = 0; j < bindingContexts.length; j++) {
+                        bindingContexts[j] = new BindingContextConfig(
+                            xEl.getBindingContexts().getBindingContextArray(j).getName(),
+                            xEl.getBindingContexts().getBindingContextArray(j).getFactoryClass()
+                        );
+                    }
+                }
+
+                els[i] = new ExpressionLanguageConfig(
+                    xEl.getName(),
+                    xEl.getFactoryClass(),
+                    bindingContexts);
+            }
+
+            elConfig = new ExpressionLanguagesConfig(xmlbean.getExpressionLanguages().getDefaultLanguage(), els);
+        }
+
+        /* IteratorFactoryConfig */
+        IteratorFactoryConfig[] iteratorFactories = null;
+        if(xmlbean.getIteratorFactories() != null) {
+            iteratorFactories = new IteratorFactoryConfig[xmlbean.getIteratorFactories().getIteratorFactoryArray().length];
+            for(int i = 0; i < iteratorFactories.length; i++) {
+                iteratorFactories[i] = new IteratorFactoryConfig(
+                    xmlbean.getIteratorFactories().getIteratorFactoryArray(i).getName(),
+                    xmlbean.getIteratorFactories().getIteratorFactoryArray(i).getFactoryClass()
+                );
+            }
+        }
+
+        /* TypeConverterConfig */
+        TypeConverterConfig[] typeConverters = null;
+        if(xmlbean.getTypeConverters() != null) {
+            typeConverters = new TypeConverterConfig[xmlbean.getTypeConverters().getTypeConverterArray().length];
+            for(int i = 0; i < typeConverters.length; i++) {
+                typeConverters[i] = new TypeConverterConfig(
+                    xmlbean.getTypeConverters().getTypeConverterArray(i).getType(),
+                    xmlbean.getTypeConverters().getTypeConverterArray(i).getConverterClass()
+                );
+            }
+        }
+
+        /* UrlConfig */
+        UrlConfig urlConfig = null;
+        if(xmlbean.getUrlConfig() != null) {
+            urlConfig = new UrlConfig(
+                xmlbean.getUrlConfig().isSetUrlEncodeUrls() ? new Boolean(xmlbean.getUrlConfig().getUrlEncodeUrls()) : null,
+                xmlbean.getUrlConfig().isSetHtmlAmpEntity() ? new Boolean(xmlbean.getUrlConfig().getHtmlAmpEntity()) : null,
+                xmlbean.getUrlConfig().getTemplatedUrlFormatterClass());
+        }
+        else urlConfig = new UrlConfig();
+
+        netuiConfig = new NetUIConfig(
+            pfActionInterceptorsConfig,
+            pfHandlersConfig,
+            pfConfig,
+            pfFactoriesConfig,
+            sharedFlowRefConfigs,
+            requestInterceptorsConfig,
+            jspTagConfig,
+            prefixHandlers,
+            elConfig,
+            iteratorFactories,
+            typeConverters,
+            urlConfig
+        );
+
+        return netuiConfig;
+    }
+
+    private MultipartHandler parseMultipartHandler(org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.MultipartHandler.Enum xMultipartHandler) {
+        switch(xMultipartHandler.intValue()) {
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.MultipartHandler.INT_DISABLED: return MultipartHandler.DISABLED;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.MultipartHandler.INT_DISK: return MultipartHandler.DISK;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.MultipartHandler.INT_MEMORY: return MultipartHandler.MEMORY;
+            default:
+                throw new IllegalStateException("Received an invalid value for multipart handler");
+        }
+    }
+
+    private PreventCache parsePreventCache(org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.PreventCache.Enum xPreventCache) {
+        switch(xPreventCache.intValue()) {
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.PreventCache.INT_ALWAYS: return PreventCache.ALWAYS;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.PreventCache.INT_DEFAULT: return PreventCache.DEFAULT;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.PageflowConfig.PreventCache.INT_IN_DEV_MODE: return PreventCache.IN_DEV_MODE;
+            default:
+                throw new IllegalStateException("Received an invalid value for prevent cache");
+        }
+    }
+
+    private DocType parseDocType(org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.Doctype.Enum xDoctype) {
+        switch(xDoctype.intValue()) {
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.Doctype.INT_HTML_4_LOOSE: return DocType.HTML4_LOOSE;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.Doctype.INT_HTML_4_LOOSE_QUIRKS: return DocType.HTML4_LOOSE_QUIRKS;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.Doctype.INT_XHTML_1_TRANSITIONAL: return DocType.XHTML1_TRANSITIONAL;
+            default:
+                throw new IllegalStateException("Received an invalid value for doc type");
+        }
+    }
+
+    private IdJavascript parseIdJavascript(org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.IdJavascript.Enum xIdJavascript) {
+        switch(xIdJavascript.intValue()) {
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.IdJavascript.INT_DEFAULT: return IdJavascript.DEFAULT;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.IdJavascript.INT_LEGACY: return IdJavascript.LEGACY;
+            case org.apache.beehive.netui.util.config.internal.xmlbean.generated.JspTagConfig.IdJavascript.INT_LEGACY_ONLY: return IdJavascript.LEGACY_ONLY;
+            default:
+                throw new IllegalStateException("Received an invalid value for id javascript");
+        }
+    }
+
+    private CustomPropertyConfig[] parseCustomPropertyConfig(CustomProperty[] xCustomProperties) {
+        CustomPropertyConfig[] customProperties = new CustomPropertyConfig[xCustomProperties.length];
+
+        for(int i = 0; i < customProperties.length; i++) {
+            customProperties[i] = new CustomPropertyConfig(
+                xCustomProperties[i].getName(),
+                xCustomProperties[i].getValue()
+            );
+        }
+
+        return customProperties;
+    }
+
+    private InterceptorConfig[] parseInterceptorConfig(Interceptor[] xInterceptors) {
+        InterceptorConfig[] config =
+            new InterceptorConfig[xInterceptors.length];
+        for(int i = 0; i < config.length; i++) {
+            config[i] = new InterceptorConfig(
+                xInterceptors[i].getInterceptorClass(),
+                parseCustomPropertyConfig(xInterceptors[i].getCustomPropertyArray())
+            );
+        }
+
+        return config;
+    }
+
+    private PageFlowFactoryConfig parsePageFlowFactoryConfig(PageflowFactory factory) {
+        return new PageFlowFactoryConfig(
+            factory.getFactoryClass(),
+            parseCustomPropertyConfig(factory.getCustomPropertyArray())
+        );
+    }
+
+    private HandlerConfig[] parseHandlerConfig(Handler[] xHandler) {
+        HandlerConfig[] handlerConfig =
+            new HandlerConfig[xHandler.length];
+        for(int i = 0; i < handlerConfig.length; i++) {
+            handlerConfig[i] = new HandlerConfig(
+                xHandler[i].getHandlerClass(),
+                parseCustomPropertyConfig(xHandler[i].getCustomPropertyArray())
+            );
+        }
+        return handlerConfig;
+    }
+
+    private SimpleActionInterceptorConfig[] parseSimpleActionInterceptorConfig(SimpleActionInterceptor[] xActionInterceptors) {
+        SimpleActionInterceptorConfig[] simpleActionInterceptorConfigs =
+            new SimpleActionInterceptorConfig[xActionInterceptors.length];
+
+        for(int i = 0; i < xActionInterceptors.length; i++) {
+            simpleActionInterceptorConfigs[i] = new SimpleActionInterceptorConfig(
+                xActionInterceptors[i].isSetAfterAction() ? new Boolean(xActionInterceptors[i].getAfterAction()) : null,
+                xActionInterceptors[i].getInterceptPath()
+            );
+        }
+
+        return simpleActionInterceptorConfigs;
+    }
+
+    private PerActionInterceptorConfig[] parsePerActionActionInterceptorConfig(PageflowActionInterceptors.PerPageflow.PerAction[] xInterceptor) {
+        PerActionInterceptorConfig[] perActionInterceptorConfigs =
+            new PerActionInterceptorConfig[xInterceptor.length];
+        for(int i = 0; i < perActionInterceptorConfigs.length; i++) {
+            perActionInterceptorConfigs[i] = new PerActionInterceptorConfig(
+                xInterceptor[i].getActionName(),
+                parseSimpleActionInterceptorConfig(xInterceptor[i].getSimpleActionInterceptorArray()),
+                parseInterceptorConfig(xInterceptor[i].getActionInterceptorArray())
+            );
+        }
+        return perActionInterceptorConfigs;
+    }
+}

Propchange: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/config/internal/XmlBeanConfigFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/iterator/IteratorFactory.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/iterator/IteratorFactory.java?rev=265562&r1=265561&r2=265562&view=diff
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/iterator/IteratorFactory.java (original)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/iterator/IteratorFactory.java Wed Aug 31 12:37:55 2005
@@ -27,8 +27,8 @@
 import javax.sql.RowSet;
 
 import org.apache.beehive.netui.util.config.ConfigUtil;
-import org.apache.beehive.netui.util.config.bean.NetuiConfigDocument.NetuiConfig;
-import org.apache.beehive.netui.util.config.bean.IteratorFactories;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.NetuiConfigDocument.NetuiConfig;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.IteratorFactories;
 import org.apache.beehive.netui.util.logging.Logger;
 
 /**
@@ -134,7 +134,7 @@
         if(factories == null)
             return null;
 
-        org.apache.beehive.netui.util.config.bean.IteratorFactories.IteratorFactory[] factoryArray =
+        org.apache.beehive.netui.util.config.internal.xmlbean.generated.IteratorFactories.IteratorFactory[] factoryArray =
             factories.getIteratorFactoryArray();
         if(factoryArray == null)
             return null;

Modified: beehive/trunk/netui/src/util/org/apache/beehive/netui/util/type/TypeUtils.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/org/apache/beehive/netui/util/type/TypeUtils.java?rev=265562&r1=265561&r2=265562&view=diff
==============================================================================
--- beehive/trunk/netui/src/util/org/apache/beehive/netui/util/type/TypeUtils.java (original)
+++ beehive/trunk/netui/src/util/org/apache/beehive/netui/util/type/TypeUtils.java Wed Aug 31 12:37:55 2005
@@ -34,8 +34,8 @@
 
 import org.apache.beehive.netui.util.Bundle;
 import org.apache.beehive.netui.util.config.ConfigUtil;
-import org.apache.beehive.netui.util.config.bean.NetuiConfigDocument.NetuiConfig;
-import org.apache.beehive.netui.util.config.bean.TypeConverters;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.NetuiConfigDocument.NetuiConfig;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.TypeConverters;
 import org.apache.beehive.netui.util.logging.Logger;
 
 /**
@@ -255,7 +255,7 @@
         if(converters == null)
             return null;
 
-        org.apache.beehive.netui.util.config.bean.TypeConverters.TypeConverter[] converterArray =
+        org.apache.beehive.netui.util.config.internal.xmlbean.generated.TypeConverters.TypeConverter[] converterArray =
             converters.getTypeConverterArray();
         if(converterArray == null)
             return null;

Modified: beehive/trunk/netui/src/util/schema/netui-config/config.xsdconfig
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/src/util/schema/netui-config/config.xsdconfig?rev=265562&r1=265561&r2=265562&view=diff
==============================================================================
--- beehive/trunk/netui/src/util/schema/netui-config/config.xsdconfig (original)
+++ beehive/trunk/netui/src/util/schema/netui-config/config.xsdconfig Wed Aug 31 12:37:55 2005
@@ -1,13 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
 
-<xb:config 
-    xmlns:pkg="http://beehive.apache.org/netui/2004/server/config"
-    xmlns:xb="http://www.bea.com/2002/09/xbean/config">
-    
+<xb:config xmlns:pkg="http://beehive.apache.org/netui/2004/server/config"
+           xmlns:xb="http://www.bea.com/2002/09/xbean/config">
     <xb:namespace uri="http://beehive.apache.org/netui/2004/server/config">
-        <xb:package>org.apache.beehive.netui.util.config.bean</xb:package>
+        <xb:package>org.apache.beehive.netui.util.config.internal.xmlbean.generated</xb:package>
     </xb:namespace>
-<!--    <xb:qname name="pkg:netui-config" javaname="NetUIConfig"/> -->
-
-</xb:config>
-
+</xb:config>
\ No newline at end of file

Modified: beehive/trunk/netui/test/ant/junitCore.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/ant/junitCore.xml?rev=265562&r1=265561&r2=265562&view=diff
==============================================================================
--- beehive/trunk/netui/test/ant/junitCore.xml (original)
+++ beehive/trunk/netui/test/ant/junitCore.xml Wed Aug 31 12:37:55 2005
@@ -42,10 +42,10 @@
             <sysproperty key="netuidrt.logdir" path="${testout.dir}"/>
             <test name="org.apache.beehive.netui.test.util.type.TypeUtilsTest" todir="${testout.dir}"/>
             <test name="org.apache.beehive.netui.test.util.iterator.IteratorFactoryTest" todir="${testout.dir}"/>
-            <test name="org.apache.beehive.netui.test.util.config.ConfigTest" todir="${testout.dir}"/>
             <batchtest fork="yes" todir="${testout.dir}">
                 <fileset dir="${test.classes.dir}/junitTests">
                     <include name="org/apache/beehive/netui/test/core/**/*Test.class"/>
+                    <include name="org/apache/beehive/netui/test/util.config/**/*Test.class"/>
                 </fileset>
             </batchtest>
             <batchtest fork="yes" todir="${testout.dir}">

Added: beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/util/config/ConfigBeanTest.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/util/config/ConfigBeanTest.java?rev=265562&view=auto
==============================================================================
--- beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/util/config/ConfigBeanTest.java (added)
+++ beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/util/config/ConfigBeanTest.java Wed Aug 31 12:37:55 2005
@@ -0,0 +1,73 @@
+/**
+ Copyright 2004 The Apache Software Foundation.
+
+ 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.test.util.config;
+
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+import org.apache.beehive.netui.util.config.internal.xmlbean.generated.NetuiConfigDocument;
+import org.apache.beehive.netui.util.config.internal.XmlBeanConfigFactory;
+import org.apache.beehive.netui.util.config.ConfigUtil;
+import org.apache.beehive.netui.util.config.ConfigFactory;
+import org.apache.beehive.netui.util.config.bean.NetUIConfig;
+import org.apache.beehive.netui.util.config.bean.DocType;
+
+/**
+ *
+ */
+public class ConfigBeanTest
+    extends TestCase {
+
+    public void testParsing()
+        throws Exception {
+        InputStream is = null;
+        try {
+            is = getClass().getClassLoader().getResourceAsStream("WEB-INF/beehive-netui-config.xml");
+
+            ConfigUtil.init(is);
+
+            NetuiConfigDocument.NetuiConfig xConfig = ConfigUtil.getConfig();
+            ConfigFactory configFactory = new XmlBeanConfigFactory();
+            NetUIConfig config = configFactory.getNewConfig(xConfig);
+            assertNotNull(config);
+            assertFalse(config.getPageFlowConfig().isEnableSelfNesting());
+            assertFalse(config.getJspTagConfig().getDocType() == DocType.HTML4_LOOSE_QUIRKS);
+        }
+        finally{
+            if(is != null)
+                is.close();
+        }
+
+    }
+
+    public ConfigBeanTest(String name) {
+        super(name);
+    }
+
+    public static Test suite() {
+        return new TestSuite(ConfigBeanTest.class);
+    }
+
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(suite());
+    }
+
+
+}

Propchange: beehive/trunk/netui/test/src/junitTests/org/apache/beehive/netui/test/util/config/ConfigBeanTest.java
------------------------------------------------------------------------------
    svn:eol-style = native