public Context getContext(final String identifier) { NamingStore namingStore = getNamingStore(identifier); if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } }
public Context getContext(String identifier) { final NamingStore namingStore; if (identifier.equals("global")) { namingStore = globalNamingStore.getValue(); } else if (identifier.equals("jboss")) { namingStore = jbossNamingStore.getValue(); } else if (identifier.equals("jboss/exported")) { namingStore = remoteExposedNamingStore.getValue(); } else { namingStore = null; } if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } });
/** {@inheritDoc} */ public Object lookupLink(Name name) throws NamingException { check(name, JndiPermission.ACTION_LOOKUP); if (name.isEmpty()) { return lookup(name); } try { final Name absoluteName = getAbsoluteName(name); Object link = namingStore.lookup(absoluteName); if (!(link instanceof LinkRef) && link instanceof Reference) { link = getObjectInstance(link, name, null); } return link; } catch (Exception e) { throw namingException(NamingLogger.ROOT_LOGGER.cannotLookupLink(), e, name); } }
result = namingStore.lookup(absoluteName,dereference); } catch(CannotProceedException cpe) { final Context continuationContext = NamingManager.getContinuationContext(cpe);
public Context getContext(final String identifier) { NamingStore namingStore = getNamingStore(identifier); if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } }
public Context getContext(final String identifier) { NamingStore namingStore = getNamingStore(identifier); if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } }
public Context getContext(final String identifier) { NamingStore namingStore = getNamingStore(identifier); if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } }
public Context getContext(String identifier) { final NamingStore namingStore; if (identifier.equals("global")) { namingStore = globalNamingStore; } else if (identifier.equals("jboss")) { namingStore = jbossNamingStore; } else if (identifier.equals("jboss/exported")) { namingStore = remoteExposedNamingStore; } else { namingStore = null; } if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } });
public Context getContext(String identifier) { final NamingStore namingStore; if (identifier.equals("global")) { namingStore = globalNamingStore.getValue(); } else if (identifier.equals("jboss")) { namingStore = jbossNamingStore.getValue(); } else if (identifier.equals("jboss/exported")) { namingStore = remoteExposedNamingStore.getValue(); } else { namingStore = null; } if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } });
public Context getContext(String identifier) { final NamingStore namingStore; if (identifier.equals("global")) { namingStore = globalNamingStore.getValue(); } else if (identifier.equals("jboss")) { namingStore = jbossNamingStore.getValue(); } else if (identifier.equals("jboss/exported")) { namingStore = remoteExposedNamingStore.getValue(); } else { namingStore = null; } if (namingStore != null) { try { return (Context) namingStore.lookup(EMPTY_NAME); } catch (NamingException e) { throw new IllegalStateException(e); } } else { return null; } } });
public void inject(final NamingStore value) throws InjectionException { try { injector.inject((Context) value.lookup(new CompositeName())); } catch (NamingException e) { throw new InjectionException(e); } }
/** {@inheritDoc} */ public Object lookupLink(Name name) throws NamingException { check(name, JndiPermission.ACTION_LOOKUP); if (name.isEmpty()) { return lookup(name); } try { final Name absoluteName = getAbsoluteName(name); Object link = namingStore.lookup(absoluteName); if (!(link instanceof LinkRef) && link instanceof Reference) { link = getObjectInstance(link, name, null); } return link; } catch (Exception e) { throw namingException(NamingLogger.ROOT_LOGGER.cannotLookupLink(), e, name); } }
/** {@inheritDoc} */ public Object lookupLink(Name name) throws NamingException { check(name, Action.LOOKUP); if (name.isEmpty()) { return lookup(name); } try { final Name absoluteName = getAbsoluteName(name); Object link = namingStore.lookup(absoluteName); if (!(link instanceof LinkRef) && link instanceof Reference) { link = getObjectInstance(link, name, null); } return link; } catch (Exception e) { throw namingException(MESSAGES.cannotLookupLink(), e, name); } }
/** {@inheritDoc} */ public Object lookupLink(Name name) throws NamingException { check(name, JndiPermission.ACTION_LOOKUP); if (name.isEmpty()) { return lookup(name); } try { final Name absoluteName = getAbsoluteName(name); Object link = namingStore.lookup(absoluteName); if (!(link instanceof LinkRef) && link instanceof Reference) { link = getObjectInstance(link, name, null); } return link; } catch (Exception e) { throw namingException(NamingLogger.ROOT_LOGGER.cannotLookupLink(), e, name); } }
result = namingStore.lookup(absoluteName,dereference); } catch(CannotProceedException cpe) { final Context continuationContext = NamingManager.getContinuationContext(cpe);
result = namingStore.lookup(absoluteName,dereference); } catch(CannotProceedException cpe) { final Context continuationContext = NamingManager.getContinuationContext(cpe);
result = namingStore.lookup(absoluteName,dereference); } catch(CannotProceedException cpe) { final Context continuationContext = NamingManager.getContinuationContext(cpe);