Package java.rmi.server

Examples of java.rmi.server.Unreferenced


   * attempting to listen on it.
   **/
  Binding(final ListenEndpoint listenEndpoint) throws IOException {
      this.listenEndpoint = listenEndpoint;
      requestDispatcher =
    objectTable.createRequestDispatcher(new Unreferenced() {
        public void unreferenced() { checkReferenced(); }
    });
      try {
    /*
     * We don't want this (potentially) shared listen
View Full Code Here


             * If the remote object implements the Unreferenced interface,
             * invoke its unreferenced callback in a separate thread.
             */
            Remote obj = getImpl();
            if (obj instanceof Unreferenced) {
                final Unreferenced unrefObj = (Unreferenced) obj;
                final Thread t = (Thread)
                    java.security.AccessController.doPrivileged(
                        new NewThreadAction(new Runnable() {
                            public void run() {
                                unrefObj.unreferenced();
                            }
                        }, "Unreferenced-" + nextThreadNum++, false, true));
                // REMIND: access to nextThreadNum not synchronized; you care?
                /*
                 * We must manually set the context class loader appropriately
View Full Code Here

      assert Thread.holdsLock(this);
      assert strongRef != null;
      assert target.getEnableDGC();
      assert targets.contains(target);
      if (strongRef instanceof Unreferenced) {
    final Unreferenced obj = (Unreferenced) strongRef;
    final Thread t = (Thread) AccessController.doPrivileged(
        new NewThreadAction(new Runnable() {
      public void run() {
          SecurityContext securityContext =
        target.getSecurityContext();
          AccessController.doPrivileged(securityContext.wrap(
        new PrivilegedAction() {
            public Object run() {
          obj.unreferenced();
          return null;
            }
        }), securityContext.getAccessControlContext());
      }
        }, "Unreferenced", false, true));
View Full Code Here

            return false;
        }
        if (activated) {
            return true;
        }
        requestDispatcher = table.createRequestDispatcher(new Unreferenced() {

            public void unreferenced() {
                checkReferenced();
            }
        });
View Full Code Here

TOP

Related Classes of java.rmi.server.Unreferenced

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.