Java Code Examples for javax.naming.spi.DirectoryManager#getObjectInstance()
The following examples show how to use
javax.naming.spi.DirectoryManager#getObjectInstance() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DnsContext.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 2
Source File: DnsContext.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 3
Source File: DnsContext.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 4
Source File: DnsContext.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 5
Source File: DnsContext.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 6
Source File: DnsContext.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 7
Source File: DnsContext.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 8
Source File: DnsContext.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 9
Source File: DnsContext.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 10
Source File: DnsContext.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 11
Source File: DnsContext.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 12
Source File: DnsContext.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }
Example 13
Source File: DnsContext.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
@Override public Binding next() throws NamingException { if (!hasMore()) { throw (new java.util.NoSuchElementException()); } NameNode nnode = nodes.nextElement(); String label = nnode.getLabel(); Name compName = (new DnsName()).add(label); String compNameStr = compName.toString(); Name cname = (new CompositeName()).add(compNameStr); String cnameStr = cname.toString(); DnsName fqdn = ctx.fullyQualify(compName); // Clone ctx to create the child context. DnsContext child = new DnsContext(ctx, fqdn); try { Object obj = DirectoryManager.getObjectInstance( child, cname, ctx, child.environment, null); Binding binding = new Binding(cnameStr, obj); binding.setNameInNamespace(ctx.fullyQualify(cname).toString()); return binding; } catch (Exception e) { NamingException ne = new NamingException( "Problem generating object using object factory"); ne.setRootCause(e); throw ne; } }