cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <>
Subject Re: Confusion about property-based beans configuration
Date Thu, 25 Oct 2007 04:30:14 GMT

Grzegorz Kossakowski schrieb:
> Hello,
> I'm just trying to use propertu-based configuration of Spring beans and I'm facing several
> First of all there is some confusion about correct syntax, at[1] there is information
that syntax is
> as follows:
> my.special.beanName#property=somevalue
> However, when taking a look at ExtendedPropertyOverrideConfigurer[2] class I see this
>  * 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}.
> The question is: which syntax is correct?
The javadoc is correct, "/" is used as the separator.

> Another one is about location of property files taken into account when updating beans'
>   The mentioned page states that location is:
> /META-INF/cocoon/spring
> but I wonder how this relates to the block structure explained here[3]? At that page
we can see that
> default location for properties is:
> /META-INF/cocoon/properties/
We distinguish between properties for configuring the application and
overriding bean definitions. The first one uses
/META-INF/cocoon/properties and all these values end up in the Settings
object. The properties can be used throughout the whole application and
references can occur in most configuration files like avalon configs,
spring bean configs, sitemaps etc.

The bean override configuration is a special mechanism to override
settings of beans. There we use all files from /META-INF/cocoon/spring
to detect such things.

So we have a clear separation between these two issues.

> I'm little bit confused, could someone explain this inconsistency?
> [1]
> [2]
> [3]

Carsten Ziegeler

View raw message