Package javax.naming

Examples of javax.naming.ContextNotEmptyException


      if (!list(name).hasMore())
      {
         unbind(name);
      }
      else
         throw new ContextNotEmptyException();
   }
View Full Code Here


/* 1134 */     if (!list(name).hasMore())
/*      */     {
/* 1136 */       unbind(name);
/*      */     }
/*      */     else
/* 1139 */       throw new ContextNotEmptyException();
/*      */   }
View Full Code Here

      if (!list(name).hasMore())
      {
         unbind(name);
      }
      else
         throw new ContextNotEmptyException();
   }
View Full Code Here

        }

        final Context context = (Context)entry;
        if( context.list( "" ).hasMoreElements() )
        {
            throw new ContextNotEmptyException( name.toString() );
        }
    }
View Full Code Here

    public void destroySubcontext(final Name name) throws NamingException {
        final Name absoluteName = getAbsoluteName(name);
        if (!list(name).hasMore()) {
            unbind(name);
        } else {
            throw new ContextNotEmptyException(absoluteName.toString());
        }
    }
View Full Code Here

        } else if (e instanceof InvalidName) {
            ne = new InvalidNameException();
        } else if (e instanceof AlreadyBound) {
            ne = new NameAlreadyBoundException();
        } else if (e instanceof NotEmpty) {
            ne = new ContextNotEmptyException();
        } else {
            ne = new NamingException("Unknown reasons");
        }

        ne.setRootCause(e);
View Full Code Here

TOP

Related Classes of javax.naming.ContextNotEmptyException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.