Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 6th, 2012  |  syntax: None  |  size: 0.71 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. /* generated by mc.umlp.arcd.component.ComponentFactory*/
  2. package log.gen.factories;
  3. /**
  4.  * This factory produces objects which type implements the Interface
  5.  * {@link log.gen.interfaces.ILog}.
  6.  */
  7. public class LogFactory {
  8.  
  9.   private static LogFactory theInstance;
  10.  
  11.   /**
  12.    * Getter for the singleton instance from the LogFactory
  13.    *
  14.    * @return singleton LogFactory
  15.    */
  16.   public static LogFactory getInstance() {
  17.     if (theInstance == null) {
  18.       theInstance = new LogFactory();
  19.     }
  20.     return theInstance;
  21.   }
  22.  
  23.   private LogFactory() {
  24.  
  25.   }
  26.  
  27.   /**
  28.    *
  29.    * @return a new Log component
  30.    */
  31. public <T> log.gen.interfaces.ILog<T> create() {
  32.     return new log.impl.Log<T>();
  33.   }
  34. }