This is one of the most important topics without which customization in ATG is simply not possible. Configuration layering in ATG refers to overriding component property not component when we place the component at the same config path.The property in the component picked up at the last in configure path, overrides the properties define in the previous property file. ATG Support left to write relationship for this:
Like As DAS DAF DPS DSS DCS
- set CLASSPATH=”c:\test ; c:\testInfo”
A c:\music\artists\d\SunShine.properties file containing
$class= atg.music.Artist
$scope=global
name=Sun Shine
genre=folk/pop
We have defined a single global nucleus component of class atg.music.Artist which can be referenced by the name /artists/d/Sun Shine from within Dynamo. Then name property of the instance will be set to Sun Shine and the genre property will be set to folk/pop. In this case even though our Artist bean has website and email properties we have not set these properties so they remain uninitialized.
Nucleus nameScopeJava instance (the bean)/artists/d/SunShine global
|
|||||||||
Multiple CONFIGPATH directories.
set
CONFIGPATH="c:\music;c:\moreinfo"
A c:\music\artists\d\SunShine.properties
file containing
$class=
atg.music.Artist
$scope=global
name=Sun Shine
genre=folk/pop
A second c:\moreinfo\artists\d\SunShine.properties file containing
website=http://www.dmb.com email=dave@dmb.com genre=rock Nucleus nameScopeJava instance (the bean)/artists/d/DaveMathewsglobal
|
Configuration Layering for Arrays, Given the following
set
CONFIGPATH="c:\music;c:\moreinfo"
A
c:\music\albums\c\Crash.properties file containing
$class=
atg.music.Album
$scope=global
title=Crash
tracks=#34, Lay
Down Lover
sessionPlayers= Raj
kumar, Suraj Kumar
A second
c:\moreinfo\albums\c\Crash.properties file containing
tracks=Two Step,
Crash
sessionPlayers+=krishna,Jon
kupper
Nucleus name
|
Scope
|
Java instance
(the bean)
|
||||||
/albums/c/Crash
|
global
|
atg.music.Album
|
No comments:
Post a Comment