1 16 17 package org.springframework.jndi; 18 19 import java.util.Properties ; 20 21 import org.apache.commons.logging.Log; 22 import org.apache.commons.logging.LogFactory; 23 24 33 public class JndiAccessor { 34 35 38 protected final Log logger = LogFactory.getLog(getClass()); 39 40 private JndiTemplate jndiTemplate = new JndiTemplate(); 41 42 43 48 public void setJndiTemplate(JndiTemplate jndiTemplate) { 49 this.jndiTemplate = (jndiTemplate != null ? jndiTemplate : new JndiTemplate()); 50 } 51 52 55 public JndiTemplate getJndiTemplate() { 56 return this.jndiTemplate; 57 } 58 59 64 public void setJndiEnvironment(Properties jndiEnvironment) { 65 this.jndiTemplate = new JndiTemplate(jndiEnvironment); 66 } 67 68 71 public Properties getJndiEnvironment() { 72 return this.jndiTemplate.getEnvironment(); 73 } 74 75 } 76 | Popular Tags |