49 lines
972 B
Plaintext
Executable File
49 lines
972 B
Plaintext
Executable File
/*
|
|
*
|
|
*/
|
|
package com.fp.bpmlib;
|
|
|
|
import java.util.Date;
|
|
|
|
// TODO: Auto-generated Javadoc
|
|
/**
|
|
* Class Common encargada de.
|
|
*
|
|
* @author gfiallos
|
|
*/
|
|
public final class Common {
|
|
|
|
/** El valor de instance. */
|
|
private static Common instance = null;
|
|
|
|
/**
|
|
* Obtiene la única instancia de Common.
|
|
*
|
|
* @return única instancia de Common
|
|
*/
|
|
public static Common getInstance() {
|
|
synchronized (Common.class) {
|
|
if (Common.instance == null) {
|
|
Common.instance = new Common();
|
|
}
|
|
return Common.instance;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Crea una nueva instancia de common.
|
|
*/
|
|
private Common() {
|
|
}
|
|
|
|
/**
|
|
* Obtiene el valor de current date.
|
|
*
|
|
* @return Valor de current date
|
|
* @throws Exception la exception
|
|
*/
|
|
public Date getCurrentDate() throws Exception {
|
|
return new Date();
|
|
}
|
|
}
|