1 package org.apache.turbine.services.uniqueid; 2 3 18 19 import org.apache.turbine.services.TurbineServices; 20 21 27 public abstract class TurbineUniqueId 28 { 29 35 protected static UniqueIdService getService() 36 { 37 return (UniqueIdService) TurbineServices 38 .getInstance().getService(UniqueIdService.SERVICE_NAME); 39 } 40 41 47 public static String getInstanceId() 48 { 49 return getService().getInstanceId(); 50 } 51 52 59 public static String getUniqueId() 60 { 61 return getService().getUniqueId(); 62 } 63 64 69 public static String getPseudorandomId() 70 { 71 return getService().getPseudorandomId(); 72 } 73 } 74 | Popular Tags |