design patterns
-
Java: Singleton Pattern
In most cases, instances of objects are created, which result in several objects being created from the same class. Using the Singleton pattern, we can ensure that only a single object of this class is created during the lifetime of the application. Step 1: Create a Singleton Class public class SingletonClass { //Create singleton Continue reading
-
Java: Abstract Factory Pattern
AbstractFactory Pattern is a sort of super factory pattern. In this example we will create a factory of objects where each factory creates items just as in the regular Factory pattern. /* Class: ItemType.java */ public interface ItemType{ void doSomething(); } Item1.java /* Class: Item1.java */ public class Item1 implements Factory{ @Override public void doSomething(){ Continue reading
-
Java: Factory Pattern
Factory Pattern is one of the most common design patterns. In this example we will create a Factory interface, and concrete classes to implement this interface. /* Class: ItemType.java */ public interface ItemType{ void doSomething(); } Item1.java /* Class: Item1.java */ public class Item1 implements Factory{ @Override public void doSomething(){ System.out.println(“My Item 1.”); } } Continue reading
About Me
Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.
Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.
- Ability to learn new technologies and platforms quickly and apply them to the task at hand.
- Excellent analytical skills, and strong communication and collaboration abilities.
- Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
in both Linux and Windows based environments