tag:blogger.com,1999:blog-7940723006776868432024-03-06T04:04:58.567-05:00Oracle Commerce / ATG Tutorials PointAdarsh Kumarhttp://www.blogger.com/profile/18143230747636881521noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-794072300677686843.post-33834157769656738832016-07-02T17:41:00.002-04:002018-02-19T11:36:25.334-05:00ATG e-commerce<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h2>
Nucleus</h2>
<ul>
<li>Nucleus is the Oracle Commerce Platform’s component model for building applications from JavaBeans. </li>
<li>Nucleus helps us assemble applications through simple configuration files</li>
<li>Nucleus is the mechanism that gives JavaBean components a place to live, Resolve path.</li>
<li>Nucleus organizes application components into a hierarchy . Example, a component named /services/logs/FileLogger represents :</li>
</ul>
root container (Necules) for the services component.<br />
services container for the logs component.<br />
logs container for the FileLogger component.<br />
<ul>
<li>Nucleus also create and initialize components.</li>
</ul>
<br />
<br />
<h2>
Component</h2>
Any Java object with an empty constructor can act as a component in Nucleus.<br />
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
</h3>
<h3>
Component Scopes</h3>
<ul>
<li><b>Global</b>: Component is shared among all users.</li>
<li><b>Session</b>: Separate instances of the component are provided to each user.</li>
<li><b>Request</b>: Separate instances of the component are provided to each active request.</li>
<li><b>Window</b>: Separate instances of the component are provided to each browser window.</li>
<li><b>Prototype</b>: Separate instances of the component are provided each time the component is resolved.</li>
</ul>
<br />
<h2>
Property</h2>
<br />
To define a configurable property, a class defines<br />
<ul>
<li>a getX method that takes no arguments and returns a value, and </li>
<li>a setX method that takes one argument and returns void. </li>
</ul>
The type returned by the getX method must be the exact same type as the type taken as an argument by the setX method, and can be any Java type.<br />
<br />
Both the getX and setX methods must be declared public.<br />
<br />
The property name is formed by removing get or set from the method name and changing the first letter of the remaining string to lower case.<br />
For example, the method getFirstName()defines a property called firstName.<br />
<br />
<u style="font-weight: bold;">Note: </u><br />
<ul>
<li>If the first two letters of the remaining string are both capitalized, no letters are changed to lower case. For example, the method <span style="color: blue;">getURL()</span> defines a property called <span style="color: blue;">URL</span>.</li>
<li>The <b>getX </b>method for a Boolean property can be replaced by <b>isX</b>. For example, the Boolean property running can be defined by the method <span style="color: blue;">getRunning() or isRunning()</span>.</li>
</ul>
<br />
Property names are case-sensitive. Thus, the entry Age=20 does not set the property Person.age.<br />
<br />
<br />
<br />
<h2>
Design Pattern</h2>
<ul>
<li><span style="background-color: #cfe2f3;">Dependency Injection or IoC (Inversion Of Control) </span>- <b>Necules</b></li>
<li><span style="background-color: #cfe2f3;">Pull based MVC : Dispatcher View Strategy</span> - <b>Droplet</b></li>
<li><span style="background-color: #cfe2f3;">Push Based MVC : Workers Strategy</span> - <b>Form Handler</b></li>
<li><span style="background-color: #cfe2f3;">Factory Pattern</span> : <b>Framework</b></li>
<li><span style="background-color: #cfe2f3;">Singleton</span> : <b>Global scope components</b></li>
</ul>
<br />
<br />
===================================================================<br />
<br />
<h2>
<a href="http://www.learningwithadarsh.com/p/deployment.html" target="_blank"><span style="color: #0b5394;">ATG ear : Click here to learn more</span></a></h2>
<div>
===================================================================<br />
<br /></div>
<h2>
<a href="http://www.learningwithadarsh.com/p/configuration.html" target="_blank"><span style="color: #0b5394;">Necules Configuration : Click here to learn more</span></a></h2>
<div>
===================================================================<br />
<br /></div>
<h2>
<a href="http://www.learningwithadarsh.com/p/assemble-atg-ear.html" target="_blank"><span style="color: #0b5394;">Assemble ear using ant or assembler : Click here to learn more</span></a></h2>
<div>
===================================================================<br />
<br /></div>
<h2>
<a href="http://www.learningwithadarsh.com/p/atg-dynamo-admin.html" target="_blank"><span style="color: #0b5394;">Dynamo Admin Configuration : Click here to learn more</span></a></h2>
<div>
===================================================================<br />
<br />
<br /></div>
<div>
<br /></div>
</div>
Adarsh Kumarhttp://www.blogger.com/profile/18143230747636881521noreply@blogger.com0