1 28 29 package com.caucho.naming.mbean; 30 31 import com.caucho.log.Log; 32 import com.caucho.naming.AbstractModel; 33 import com.caucho.naming.ContextImpl; 34 import com.caucho.util.L10N; 35 36 import javax.naming.NamingException ; 37 import java.util.Hashtable ; 38 import java.util.logging.Logger ; 39 40 45 public class MBeanContextImpl extends ContextImpl { 46 protected static final Logger dbg = Log.open(MBeanContextImpl.class); 47 protected static final L10N L = new L10N(MBeanContextImpl.class); 48 49 55 public MBeanContextImpl(AbstractModel model, Hashtable env) 56 { 57 super(model, env); 58 } 59 60 67 public MBeanContextImpl(String name, AbstractModel model, Hashtable env) 68 { 69 super(name, model, env); 70 } 71 72 82 protected ContextImpl create(String name, AbstractModel model, Hashtable env) 83 { 84 return new MBeanContextImpl(name, model, env); 85 } 86 87 90 protected String parseFirst(String name) 91 throws NamingException 92 { 93 return name; 94 } 95 96 99 protected String parseRest(String name) 100 throws NamingException 101 { 102 return null; 103 } 104 105 108 public String toString() 109 { 110 return "MBeanContextImpl[" + getName() + "]"; 111 } 112 } 113 | Popular Tags |