1 23 24 31 32 package com.sun.appserv.server; 33 34 import javax.naming.InitialContext ; 35 import java.util.logging.Logger ; 36 import java.util.logging.Level ; 37 import com.sun.logging.LogDomains; 38 import com.sun.enterprise.server.ServerContext; 39 40 45 public class LifecycleEventContextImpl implements LifecycleEventContext { 46 47 private ServerContext ctx; 48 49 private static Logger logger = LogDomains.getLogger(LogDomains.ROOT_LOGGER); 50 51 54 public LifecycleEventContextImpl(ServerContext ctx) { 55 this.ctx = ctx; 56 } 57 58 61 public String [] getCmdLineArgs() { 62 return ctx.getCmdLineArgs(); 63 } 64 65 68 public String getInstallRoot() { 69 return ctx.getInstallRoot(); 70 } 71 72 75 public String getInstanceName() { 76 return ctx.getInstanceName(); 77 } 78 79 82 public InitialContext getInitialContext() { 83 return ctx.getInitialContext(); 84 } 85 86 92 public void log(String message) { 93 logger.info(message); 94 } 95 96 107 public void log(String message, Throwable throwable) { 108 logger.log(Level.INFO, message, throwable); 109 } 110 } 111 | Popular Tags |