Return-Path: Delivered-To: apmail-cocoon-cvs-archive@www.apache.org Received: (qmail 45236 invoked from network); 20 Sep 2007 08:46:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Sep 2007 08:46:42 -0000 Received: (qmail 47682 invoked by uid 500); 20 Sep 2007 08:46:33 -0000 Delivered-To: apmail-cocoon-cvs-archive@cocoon.apache.org Received: (qmail 47605 invoked by uid 500); 20 Sep 2007 08:46:33 -0000 Mailing-List: contact cvs-help@cocoon.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@cocoon.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@cocoon.apache.org Received: (qmail 47594 invoked by uid 99); 20 Sep 2007 08:46:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 01:46:33 -0700 X-ASF-Spam-Status: No, hits=-97.1 required=10.0 tests=ALL_TRUSTED,TVD_SPACE_RATIO X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Sep 2007 08:46:30 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6D9A61A983E; Thu, 20 Sep 2007 01:45:37 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r577634 [13/21] - in /cocoon/site/site/subprojects/configuration/spring-configurator: ./ 1.0/ 1.0/apidocs/ 1.0/apidocs/org/ 1.0/apidocs/org/apache/ 1.0/apidocs/org/apache/cocoon/ 1.0/apidocs/org/apache/cocoon/spring/ 1.0/apidocs/org/apache/... Date: Thu, 20 Sep 2007 08:45:25 -0000 To: cvs@cocoon.apache.org From: reinhard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070920084537.6D9A61A983E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ExtendedPropertyOverrideConfigurer.html URL: http://svn.apache.org/viewvc/cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ExtendedPropertyOverrideConfigurer.html?rev=577634&view=auto ============================================================================== --- cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ExtendedPropertyOverrideConfigurer.html (added) +++ cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ExtendedPropertyOverrideConfigurer.html Thu Sep 20 01:45:15 2007 @@ -0,0 +1,472 @@ + + + + + + + +ExtendedPropertyOverrideConfigurer (Cocoon Spring Configurator 1.0.1 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.cocoon.spring.configurator.impl +
+Class ExtendedPropertyOverrideConfigurer

+
+java.lang.Object
+  extended byorg.springframework.core.io.support.PropertiesLoaderSupport
+      extended byorg.springframework.beans.factory.config.PropertyResourceConfigurer
+          extended byorg.springframework.beans.factory.config.PropertyOverrideConfigurer
+              extended byorg.apache.cocoon.spring.configurator.impl.ExtendedPropertyOverrideConfigurer
+
+
+
All Implemented Interfaces:
BeanFactoryPostProcessor, Ordered
+
+
+
+
public class ExtendedPropertyOverrideConfigurer
extends PropertyOverrideConfigurer
+ +

+Our version of the property override configurer which reads properties from + the Cocoon spring configuration directory. A property should have the + following format: {bean name}/{property name}={value}. +

+ +

+

+
Since:
+
1.0
+
Version:
+
$Id: ExtendedPropertyOverrideConfigurer.java 515487 2007-03-07 08:19:53Z cziegeler $
+
+
+ +

+ + + + + + + + + + + + + + + + + + + + + + +
+Field Summary
+protected  Listlocations + +
+          The locations of the directories where the different property files are + located.
+protected  ResourceLoaderresourceLoader + +
+          The resource loader used to load the property files.
+protected  org.apache.cocoon.configuration.Settingssettings + +
+          The settings object.
+ + + + + + + +
Fields inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer
DEFAULT_BEAN_NAME_SEPARATOR
+ + + + + + + +
Fields inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
logger, XML_FILE_EXTENSION
+ + + + + + + +
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
+  + + + + + + + + + + +
+Constructor Summary
ExtendedPropertyOverrideConfigurer() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidpostProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) + +
+          Read all property files from the specified location and apply the + changes.
+ voidsetLocations(List list) + +
+          Set the directories to search in.
+ voidsetResourceLoader(ResourceLoader loader) + +
+          Set the resource loader.
+ voidsetSettings(org.apache.cocoon.configuration.Settings object) + +
+          Set the settings.
+ + + + + + + +
Methods inherited from class org.springframework.beans.factory.config.PropertyOverrideConfigurer
applyPropertyValue, hasPropertyOverridesFor, processKey, processProperties, setBeanNameSeparator, setIgnoreInvalidKeys
+ + + + + + + +
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertPropertyValue, getOrder, setOrder
+ + + + + + + +
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIg noreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+locations

+
+protected List locations
+
+
The locations of the directories where the different property files are + located. +

+

+
+
+
+ +

+resourceLoader

+
+protected ResourceLoader resourceLoader
+
+
The resource loader used to load the property files. This loader is + either resolving relative to the current sitemap or the root of the + context. +

+

+
+
+
+ +

+settings

+
+protected org.apache.cocoon.configuration.Settings settings
+
+
The settings object. +

+

+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ExtendedPropertyOverrideConfigurer

+
+public ExtendedPropertyOverrideConfigurer()
+
+
+ + + + + + + + +
+Method Detail
+ +

+setLocations

+
+public void setLocations(List list)
+
+
Set the directories to search in. +

+

+
Parameters:
list - A list of string pointing to directories.
+
+
+
+ +

+setSettings

+
+public void setSettings(org.apache.cocoon.configuration.Settings object)
+
+
Set the settings. +

+

+
Parameters:
object - The settings object.
+
+
+
+ +

+setResourceLoader

+
+public void setResourceLoader(ResourceLoader loader)
+
+
Set the resource loader. +

+

+
Parameters:
loader - The new resource loader.
+
+
+
+ +

+postProcessBeanFactory

+
+public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory)
+                            throws BeansException
+
+
Read all property files from the specified location and apply the + changes. +

+

+ +
Throws: +
BeansException
See Also:
PropertyResourceConfigurer.postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory)
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved. + + Added: cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/RunningModeHelper.html URL: http://svn.apache.org/viewvc/cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/RunningModeHelper.html?rev=577634&view=auto ============================================================================== --- cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/RunningModeHelper.html (added) +++ cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/RunningModeHelper.html Thu Sep 20 01:45:15 2007 @@ -0,0 +1,328 @@ + + + + + + + +RunningModeHelper (Cocoon Spring Configurator 1.0.1 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.cocoon.spring.configurator.impl +
+Class RunningModeHelper

+
+java.lang.Object
+  extended byorg.apache.cocoon.spring.configurator.impl.RunningModeHelper
+
+
+
+
public abstract class RunningModeHelper
extends Object
+ +

+Helper class to determine the running mode. +

+ +

+

+
Since:
+
1.0
+
Version:
+
$Id: RunningModeHelper.java 515487 2007-03-07 08:19:53Z cziegeler $
+
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+static StringPROPERTY_RUNNING_MODE + +
+          Name of the system property specifying the running mode.
+  + + + + + + + + + + +
+Constructor Summary
RunningModeHelper() + +
+           
+  + + + + + + + + + + + + + + + +
+Method Summary
+static voidcheckRunningMode(String mode) + +
+          Check if the value for the running mode is valid.
+static StringdetermineRunningMode(String mode) + +
+          Determine the running mode.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+PROPERTY_RUNNING_MODE

+
+public static final String PROPERTY_RUNNING_MODE
+
+
Name of the system property specifying the running mode. +

+

+
See Also:
Constant Field Values
+
+ + + + + + + + +
+Constructor Detail
+ +

+RunningModeHelper

+
+public RunningModeHelper()
+
+
+ + + + + + + + +
+Method Detail
+ +

+determineRunningMode

+
+public static String determineRunningMode(String mode)
+
+
Determine the running mode. + A non-null system property will have precedence over everything else. + The system default running mode will be used if the passed parameter mode is null. +

+

+
Parameters:
mode - The default running mode. +
Returns:
The current running mode.
See Also:
PROPERTY_RUNNING_MODE, +SettingsDefaults.DEFAULT_RUNNING_MODE
+
+
+
+ +

+checkRunningMode

+
+public static void checkRunningMode(String mode)
+                             throws IllegalArgumentException
+
+
Check if the value for the running mode is valid. + Currently this method does not check anything. All modes (apart from null) + are valid. +

+

+
Parameters:
mode - Check if the mode is a valid mode. +
Throws: +
IllegalArgumentException - if the mode is invalid
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved. + + Added: cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ServletContextFactoryBean.html URL: http://svn.apache.org/viewvc/cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ServletContextFactoryBean.html?rev=577634&view=auto ============================================================================== --- cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ServletContextFactoryBean.html (added) +++ cocoon/site/site/subprojects/configuration/spring-configurator/1.0/apidocs/org/apache/cocoon/spring/configurator/impl/ServletContextFactoryBean.html Thu Sep 20 01:45:15 2007 @@ -0,0 +1,392 @@ + + + + + + + +ServletContextFactoryBean (Cocoon Spring Configurator 1.0.1 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +org.apache.cocoon.spring.configurator.impl +
+Class ServletContextFactoryBean

+
+java.lang.Object
+  extended byorg.apache.cocoon.spring.configurator.impl.ServletContextFactoryBean
+
+
+
All Implemented Interfaces:
FactoryBean, ServletContextAware
+
+
+
+
public class ServletContextFactoryBean
extends Object
implements FactoryBean, ServletContextAware
+ +

+Simple Spring factory bean which provides the servlet context as a bean. + This avoids a dependence to Springs ServletContextAware interface. +

+ +

+

+
Since:
+
1.0
+
Version:
+
$Id: ServletContextFactoryBean.java 496676 2007-01-16 12:58:49Z cziegeler $
+
+
+ +

+ + + + + + + + + + + + + + +
+Field Summary
+protected static ServletContextservletContext + +
+           
+  + + + + + + + + + + +
+Constructor Summary
ServletContextFactoryBean() + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ObjectgetObject() + +
+           
+ ClassgetObjectType() + +
+           
+static ServletContextgetServletContext() + +
+           
+ booleanisSingleton() + +
+           
+ voidsetServletContext(ServletContext context) + +
+           
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + +
+Field Detail
+ +

+servletContext

+
+protected static ServletContext servletContext
+
+
+
+
+ + + + + + + + +
+Constructor Detail
+ +

+ServletContextFactoryBean

+
+public ServletContextFactoryBean()
+
+
+ + + + + + + + +
+Method Detail
+ +

+getServletContext

+
+public static ServletContext getServletContext()
+
+
+
+
+
+
+
+
+
+ +

+setServletContext

+
+public void setServletContext(ServletContext context)
+
+
+
Specified by:
setServletContext in interface ServletContextAware
+
+
+
See Also:
ServletContextAware.setServletContext(javax.servlet.ServletContext)
+
+
+
+ +

+getObject

+
+public Object getObject()
+                 throws Exception
+
+
+
Specified by:
getObject in interface FactoryBean
+
+
+ +
Throws: +
Exception
See Also:
FactoryBean.getObject()
+
+
+
+ +

+getObjectType

+
+public Class getObjectType()
+
+
+
Specified by:
getObjectType in interface FactoryBean
+
+
+
See Also:
FactoryBean.getObjectType()
+
+
+
+ +

+isSingleton

+
+public boolean isSingleton()
+
+
+
Specified by:
isSingleton in interface FactoryBean
+
+
+
See Also:
FactoryBean.isSingleton()
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+Copyright © 1999-2007 The Apache Software Foundation. All Rights Reserved. + +