1 22 package org.objectweb.petals.kernel.registry.jndi; 23 24 import java.io.Serializable ; 25 26 import javax.naming.CompositeName ; 27 import javax.naming.Name ; 28 import javax.naming.NameParser ; 29 import javax.naming.NamingException ; 30 31 36 public class JNDINameParser implements NameParser , Serializable { 37 38 private static final long serialVersionUID = 1L; 39 40 43 public Name parse(String name) throws NamingException { 44 return new CompositeName (name); 45 } 46 47 50 public boolean equals(Object obj) { 51 boolean test = false; 52 if (obj instanceof JNDINameParser) { 53 test = true; 54 } 55 return test; 56 } 57 58 public int hashCode() { 59 int hashCode = 0; 60 return hashCode; 61 } 62 63 } 64 | Popular Tags |