Project Wiki
https://zenit.senecac.on.ca/svn/ecl500_111rep2/trunk/project/
Just another developer's blog
Following article is a part of my Lab exercise for Eclipse course I am taking during Winter2011.
Click here for the java files used to create this tutorial
When Eclipse is run, it asks for a workspace location. I will use ./wksp/basics/labs. You can choose to use this workspace by default by ticking the checkbox. Eclipse starts with the Welcome tab. On this window, you can get more information about using Eclipse. Close the Welcome tab. [Read more…]
In Singleton Pattern, the class can only create a single instance. We want a class to have only a single instance for various reasons.
Sometimes, we want use a global object to keep information about your program. This object should not have any copies. This information might be things like configuration of the program, or a master object that manages pools of resources. So when you need a resource, you ask the master object to get it for you. Now if there were many copies of this master object, you would not know whom to ask for that resource. This single object should not be allowed to have copies. Singleton Pattern forces this rule so that programmer doesn’t have to remember about not creating copies. Singleton pattern will create an instance if it doesn’t exist and will not create any new instance if an instance already exist. It will just return a reference to that single instance.
class ProgramConfiguration{
public ProgramConfiguraiton(){
//default constructor code
}
}
[Read more…]
OpenOffice.org development heavily uses the Factory method design pattern.
Design patterns are conventional templates that describes how to solve common software problems. Since most developers are familiar with the patterns, they can recognize a pattern in others source code. That makes working in teams easier. There are many popular design patterns. One of them is Factory method pattern.
Factory method pattern is a type of creational pattern. Creational pattern pattern solves problems related to creating. Factory pattern solves two major problem generally faced by developers.
[Read more…]Copyright © 2025 · Latitude Theme on Genesis Framework · WordPress · Log in