org.apache.cocoon.spring.configurator.impl
Class DefaultBlockResourcesHolder

java.lang.Object
  extended byorg.springframework.core.io.support.PropertiesLoaderSupport
      extended byorg.springframework.beans.factory.config.PropertyResourceConfigurer
          extended byorg.springframework.beans.factory.config.PropertyPlaceholderConfigurer
              extended byorg.apache.cocoon.spring.configurator.impl.DefaultBlockResourcesHolder
All Implemented Interfaces:
BeanFactoryAware, BeanFactoryPostProcessor, BeanNameAware, BlockResourcesHolder, Ordered, PriorityOrdered

public class DefaultBlockResourcesHolder
extends PropertyPlaceholderConfigurer
implements BlockResourcesHolder, BeanFactoryPostProcessor

Default implementation of a BlockResourcesHolder.

Since:
1.0
Version:
$Id: DefaultBlockResourcesHolder.java 587750 2007-10-24 02:35:22Z vgritsenko $

Nested Class Summary
protected  class DefaultBlockResourcesHolder.ResolvingBeanDefinitionVisitor
           
 
Field Summary
protected  Map blockContexts
           
protected  boolean extractBlockResources
          extractBlockResources.
protected  org.apache.cocoon.configuration.Settings settings
          The settings object.
 
Fields inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
DEFAULT_PLACEHOLDER_PREFIX, DEFAULT_PLACEHOLDER_SUFFIX, SYSTEM_PROPERTIES_MODE_FALLBACK, SYSTEM_PROPERTIES_MODE_NEVER, SYSTEM_PROPERTIES_MODE_OVERRIDE
 
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
DefaultBlockResourcesHolder()
           
 
Method Summary
 Map getBlockContexts()
          Return a map with deployed block names as keys and the url of the deployed resources as value.
 void init()
          Initialize this component.
protected  void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess, Properties props)
           
 void setExtractBlockResources(boolean extractBlockResources)
           
 void setSettings(org.apache.cocoon.configuration.Settings settings)
           
 
Methods inherited from class org.springframework.beans.factory.config.PropertyPlaceholderConfigurer
parseStringValue, resolvePlaceholder, resolvePlaceholder, resolveSystemProperty, setBeanFactory, setBeanName, setIgnoreUnresolvablePlaceholders, setPlaceholderPrefix, setPlaceholderSuffix, setSearchSystemEnvironment, setSystemPropertiesMode, setSystemPropertiesModeName
 
Methods inherited from class org.springframework.beans.factory.config.PropertyResourceConfigurer
convertProperties, convertPropertyValue, getOrder, postProcessBeanFactory, setOrder
 
Methods inherited from class org.springframework.core.io.support.PropertiesLoaderSupport
loadProperties, mergeProperties, setFileEncoding, setIgnoreResourceNotFound, setLocalOverride, setLocation, setLocations, setProperties, setPropertiesArray, setPropertiesPersister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
postProcessBeanFactory
 

Field Detail

settings

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


extractBlockResources

protected boolean extractBlockResources
extractBlockResources.


blockContexts

protected Map blockContexts
Constructor Detail

DefaultBlockResourcesHolder

public DefaultBlockResourcesHolder()
Method Detail

setSettings

public void setSettings(org.apache.cocoon.configuration.Settings settings)

setExtractBlockResources

public void setExtractBlockResources(boolean extractBlockResources)

init

public void init()
          throws Exception
Initialize this component.

Throws:
Exception

getBlockContexts

public Map getBlockContexts()
Return a map with deployed block names as keys and the url of the deployed resources as value.

Specified by:
getBlockContexts in interface BlockResourcesHolder
Returns:
The map with the block contexts.

processProperties

protected void processProperties(ConfigurableListableBeanFactory beanFactoryToProcess,
                                 Properties props)
                          throws BeansException
Throws:
BeansException
See Also:
PropertyPlaceholderConfigurer.processProperties(org.springframework.beans.factory.config.ConfigurableListableBeanFactory, java.util.Properties)


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.