Package net.jini.security

Examples of net.jini.security.ProxyPreparer.prepareProxy()


      ProxyPreparer p = (ProxyPreparer)
                  c.getEntry("test",
           "outriggerLeasePreparer",
           ProxyPreparer.class);
      if (p != null) {
    l = (Lease) p.prepareProxy(l);
      }
  }
  return l;
    }
View Full Code Here


      ProxyPreparer p = (ProxyPreparer)
                  c.getEntry("test",
           "outriggerEventRegistrationPreparer",
           ProxyPreparer.class);
      if (p != null) {
    reg = (EventRegistration) p.prepareProxy(reg);
      }
  }
  return reg;
    }
}
View Full Code Here

                try {
                    ProxyPreparer prep = (ProxyPreparer)context.getConfiguration().getEntry(BOOT_COMPONENT,
                                                                                            "adminProxyPreparer",
                                                                                            BasicProxyPreparer.class,
                                                                                            new BasicProxyPreparer());
                    Object preparedPProxy = prep.prepareProxy(sbProxy);
                    if(preparedPProxy instanceof Administrable) {
                        Administrable admin = (Administrable)preparedPProxy;
                        Object adminObject = admin.getAdmin();
                        if(adminObject instanceof DestroyAdmin) {
                            Subject subject = null;
View Full Code Here

                proxy = ((ProxyAccessor)impl).getProxy();
            } else {
                proxy = null; // just for insurance
            }
            if(proxy != null) {
                proxy = servicePreparer.prepareProxy(proxy);
            }
            if(logger.isTraceEnabled())
                logger.trace("Proxy:  {}", proxy==null?"<NULL>":proxy.toString());
            currentThread.setContextClassLoader(currentClassLoader);
        } catch(InvocationTargetException e) {
View Full Code Here

            Object proxy = created.getProxy();
            if(logger.isTraceEnabled()) {
                logger.trace("Obtained the proxy %s", proxy);
            }
            if(proxy != null) {
                proxy = servicePreparer.prepareProxy(proxy);
            }
            if(logger.isTraceEnabled()) {
                logger.trace("Proxy {}, prepared? {}", proxy, (proxy==null?"not prepared, returned proxy was null": "yes"));
            }
            /*
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.