Category Archives: J2EE

Enterprise Integration Using REST

[Fuente: http://martinfowler.com/articles/enterpriseREST.html] La mayoría de los REST APIs son construidos pensando en un sólo propósito para integrarse en un solo sistema. En este artículo , discutiremos las restricciones y flexibilidad que tienes con APIs no públicos, y las lecciones aprendidas de hacer integraciones RESTful a gran escala que utilizan varios equipos de trabajo. 18 November […]

Prototype Pattern in Java

[Fuente: http://www.journaldev.com/1440/prototype-pattern-in-java] Prototype pattern is one of the Creational Design pattern, so it provides a mechanism of object creation. Prototype pattern is used when the Object creation is a costly affair and requires a lot of time and resources and you have a similar object already existing. So this pattern provides a mechanism to copy the […]

Builder Design Pattern in Java

[Fuente: http://www.journaldev.com/1425/builder-design-pattern-in-java] Builder design pattern is a creational design pattern like Factory Pattern and Abstract Factory Pattern. This pattern was introduced to solve some of the problems with Factory and Abstract Factory design patterns when the Object contains a lot of attributes. There are three major issues with Factory and Abstract Factory design patterns when the Object contains a lot […]

Abstract Factory Design Pattern in Java

[Fuente: http://www.journaldev.com/1418/abstract-factory-design-pattern-in-java]   Abstract Factory is one of the Creational pattern and almost similar to Factory Pattern except the fact that its more like factory of factories. If you are familiar with factory design pattern in java, you will notice that we have a single Factory class that returns the different sub-classes based on the input provided and factory class […]

Factory Design Pattern

  Factory Pattern is one of the Creational Design pattern and it’s widely used in JDK as well as frameworks like Spring and Struts. Factory design pattern is used when we have a super class with multiple sub-classes and based on input, we need to return one of the sub-class. This pattern take out the responsibility of instantiation […]

Java Singleton Design Pattern Best Practices with Examples

[Fuente :http://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-with-examples] Singleton is one of the Gangs of Four Design patterns and comes in the Creational Design Pattern category. From the definition, it seems to be a very simple design pattern but when it comes to implementation, it comes with a lot of implementation concerns. The implementation of Singleton pattern has always been a controversial topic among developers. […]

Java Design Patterns – Tutorial con ejemplos

[Fuente: http://www.journaldev.com/1827/] Los patrones de diseño son muy populares entre los programadores de software. Un patrón de diseño es una solución bien descrita a un problema común de software. Algunos de los beneficios de utilizar patrones de diseño son: Los patrones de diseño están ya definidos y proporcionados como estándares por la industria para resolver […]

Maven : guia para crear y utilizar tus propios arquetipos

Guide to Creating Archetypes Creating an archetype is a pretty straight forward process. An archetype is a very simple artifact, that contains the project prototype you wish to create. An archetype is made up of: an archetype descriptor (archetype.xml in directory: src/main/resources/META-INF/maven/). It lists all the files that will be contained in the archetype and categorizes them […]

Jersey RESTFul services : Getting started

[Fuente: http://jersey.java.net/nonav/documentation/latest/getting-started.html] Table of Contents 1.1. Creating a root resource 1.2. Deploying the root resource 1.3. Testing the root resource 1.4. Here’s one Paul created earlier This chapter will present how to get started with Jersey using the embedded Grizzly server. The last section of this chapter presents a reference to equivalent functionality for getting […]

Simplifica XML a objeto Java utilizando Jakarta Digester

En muchas ocasiones un programador necesita rellenar objetos Java desde datos en XML. En este tuto vamos a explicar como se puede hacer esto con Jakarta Digester , que originalmente fue configurado para procesar el archivo de configuración de Struts “struts-config.xml”. Pronto fue movido a un proyecto de Jakarta-commons. Cuando una aplicación software trata con […]