/** {@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 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 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(); } }