@Override public NamingException run() { try { getWritableNamingStore().bind(absoluteName, value); } catch (NamingException e) { return e; } return null; } });
/** {@inheritDoc} */ public void unbind(final Name name) throws NamingException { check(name, JndiPermission.ACTION_UNBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); getWritableNamingStore().unbind(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public Context createSubcontext(Name name) throws NamingException { check(name, JndiPermission.ACTION_CREATE_SUBCONTEXT); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); return getWritableNamingStore().createSubcontext(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void rebind(final Name name, Object object) throws NamingException { check(name, JndiPermission.ACTION_REBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); if (object instanceof Referenceable) { object = ((Referenceable) object).getReference(); } getWritableNamingStore().rebind(absoluteName, object); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
getWritableNamingStore().bind(absoluteName, value); } else {
@Override public NamingException run() { try { getWritableNamingStore().bind(absoluteName, value); } catch (NamingException e) { return e; } return null; } });
@Override public NamingException run() { try { getWritableNamingStore().bind(absoluteName, value); } catch (NamingException e) { return e; } return null; } });
/** {@inheritDoc} */ public Context createSubcontext(Name name) throws NamingException { check(name, JndiPermission.ACTION_CREATE_SUBCONTEXT); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); return getWritableNamingStore().createSubcontext(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void unbind(final Name name) throws NamingException { check(name, Action.UNBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); getWritableNamingStore().unbind(absoluteName); } else { throw MESSAGES.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void unbind(final Name name) throws NamingException { check(name, JndiPermission.ACTION_UNBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); getWritableNamingStore().unbind(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public Context createSubcontext(Name name) throws NamingException { check(name, JndiPermission.ACTION_CREATE_SUBCONTEXT); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); return getWritableNamingStore().createSubcontext(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public Context createSubcontext(Name name) throws NamingException { check(name, Action.CREATE_SUBCONTEXT); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); return getWritableNamingStore().createSubcontext(absoluteName); } else { throw MESSAGES.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void unbind(final Name name) throws NamingException { check(name, JndiPermission.ACTION_UNBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); getWritableNamingStore().unbind(absoluteName); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
getWritableNamingStore().bind(absoluteName, value); } else {
/** {@inheritDoc} */ public void rebind(final Name name, Object object) throws NamingException { check(name, JndiPermission.ACTION_REBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); if (object instanceof Referenceable) { object = ((Referenceable) object).getReference(); } getWritableNamingStore().rebind(absoluteName, object); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void bind(final Name name, Object object) throws NamingException { check(name, Action.BIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); if (object instanceof Referenceable) { object = ((Referenceable) object).getReference(); } getWritableNamingStore().bind(absoluteName, object); } else { throw MESSAGES.readOnlyNamingContext(); } }
getWritableNamingStore().bind(absoluteName, value); } else {
/** {@inheritDoc} */ public void rebind(final Name name, Object object) throws NamingException { check(name, Action.REBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); if (object instanceof Referenceable) { object = ((Referenceable) object).getReference(); } getWritableNamingStore().rebind(absoluteName, object); } else { throw MESSAGES.readOnlyNamingContext(); } }
/** {@inheritDoc} */ public void rebind(final Name name, Object object) throws NamingException { check(name, JndiPermission.ACTION_REBIND); if(namingStore instanceof WritableNamingStore) { final Name absoluteName = getAbsoluteName(name); if (object instanceof Referenceable) { object = ((Referenceable) object).getReference(); } getWritableNamingStore().rebind(absoluteName, object); } else { throw NamingLogger.ROOT_LOGGER.readOnlyNamingContext(); } }