- MVC Design Pattern
Model View Controller pattern is used to separate the business logic from its presentation. View corresponds to JSP's, Controller corresponds to struts framework/BOD framework and Model corresponds to all back end objects used for processing like Accessbeans/EJB’s.
- Factory Design pattern
A factory pattern can be used to create an object of any one of sub-classes depending on the input data provided. This is used when we call another command from a command.
Eg., SampleCmd sampleCmd = (SampleCmd) CommandFactory.createCommand("com.test.commands.SampleCmd",getStoreId()); - Command Design Pattern
It is used to execute a command with a blackbox view of it. The “command” is a black box to the “client”. All the client does is call “execute ()” on the opaque object.
Eg,. sampleCmd.execute();
- Display Design pattern
In WCS, view names are used to display the response (JSP) to the client. There may be a need to pass different response based on clients.
E.g., <forward className="com.ibm.commerce.struts.ECActionForward" name="SampleView/10161/-22" path="/test/SampleView_View1.jsp" />
- Singleton Design pattern
A singleton pattern ensures that only one object instance is created by the JVM at a time for a class, which is taken care by the out of the box framework. Eg. ECCommandTarget class
Popular Posts
-
C ustomization of the Order noun by using the UserData field. This involves extending the Order noun of the Web services archite...
-
WebSphere Commerce can be configured to enable persistent sessions. This enables some session-related information of the registered or gues...
-
Data that is cached by the WebSphere Commerce data cache can be configured by using either the command caching or DistributedMap objects c...
-
WCS need to calculate monetary amounts and apply them to business objects. Business rules and legal requirements specify how and when thes...
-
The Catalog Subsystem contains all logic and data relevant to an online catalog, including catalog groups (or categories), catalog entries...
-
The Order Management subsystem includes all logic and data relevant to placing, processing, and managing orders. This is done using variou...
-
What if a store has to support multiple currencies to sell based on the language/country ? Here is a smal POC done to make it work. PFB...
-
WCS framework is majorly used fo E-Commerce Sites development on basis of many subsystems, which helps in developing and integrating diffe...
-
Promotions provide the ability to offer customers incentives to purchase. WebSphere Commerce supports numerous types of promotions. For e...
-
The Payments subsystem helps us manage the payment information. It connects to Payment Service Providers by using payment plug-ins. Paymen...
Design Patterns in WCS
Subscribe to:
Posts (Atom)
No comments:
Post a Comment