1 7 package javax.naming.spi; 8 9 import javax.naming.*; 10 import javax.naming.directory.Attributes ; 11 import java.util.Hashtable ; 12 13 66 public interface DirStateFactory extends StateFactory { 67 125 public Result getStateToBind(Object obj, Name name, Context nameCtx, 126 Hashtable <?,?> environment, 127 Attributes inAttrs) 128 throws NamingException; 129 130 131 135 public static class Result { 136 139 private Object obj; 140 141 142 145 private Attributes attrs; 146 147 153 public Result(Object obj, Attributes outAttrs) { 154 this.obj = obj; 155 this.attrs = outAttrs; 156 } 157 158 162 public Object getObject() { return obj; }; 163 164 168 public Attributes getAttributes() { return attrs; }; 169 170 } 171 } 172 | Popular Tags |