
Untitled
By: a guest on
May 6th, 2012 | syntax:
None | size: 0.71 KB | hits: 12 | expires: Never
/* generated by mc.umlp.arcd.component.ComponentFactory*/
package log.gen.factories;
/**
* This factory produces objects which type implements the Interface
* {@link log.gen.interfaces.ILog}.
*/
public class LogFactory {
private static LogFactory theInstance;
/**
* Getter for the singleton instance from the LogFactory
*
* @return singleton LogFactory
*/
public static LogFactory getInstance() {
if (theInstance == null) {
theInstance = new LogFactory();
}
return theInstance;
}
private LogFactory() {
}
/**
*
* @return a new Log component
*/
public <T> log.gen.interfaces.ILog<T> create() {
return new log.impl.Log<T>();
}
}