Package com.sun.jini.proxy

Examples of com.sun.jini.proxy.MarshalledWrapper


            boolean force,
            ActivationInstantiator inst)
          throws RemoteException, ActivationException
  {
      /* stub could be set to null by a concurrent group reset */
      MarshalledWrapper nstub = stub;
      if (removed) {
    throw new UnknownObjectException("object removed");
      } else if (!force && nstub != null) {
    return nstub;
      }
      MarshalledInstance marshalledProxy =
    new MarshalledInstance(inst.newInstance(getAID(uid), desc));
      nstub = new MarshalledWrapper(marshalledProxy);
      stub = nstub;
      return nstub;
  }
View Full Code Here


  synchronized void activeObject(UID uid, MarshalledObject mobj)
      throws UnknownObjectException
  {
      getObjectEntry(uid).stub =
    new MarshalledWrapper(new MarshalledInstance(mobj));
  }
View Full Code Here

  serviceID = item.serviceID;
  ServiceTypeBase stb = ClassMapper.toServiceTypeBase(svc.getClass());
  serviceType = stb.type;
  codebase = stb.codebase;
  try {
      service = new MarshalledWrapper(svc);
  } catch (IOException e) {
      throw new MarshalException("error marshalling arguments", e);
  }
  attributeSets = EntryRep.toEntryRep(item.attributeSets, true);
    }
View Full Code Here

     */
    public Remote activate(boolean force)
  throws ActivationException, RemoteException
    {
   try {
       MarshalledWrapper marshalledProxy =
    activator.activate(this, force);
       return (Remote) marshalledProxy.get();
   } catch (RemoteException e) {
       throw e;
   } catch (java.io.IOException e) {
       throw new UnmarshalException("activation failed", e);
   } catch (java.lang.ClassNotFoundException e) {
View Full Code Here

      fields = new Object[efields.length];
      for (int i = efields.length; --i >= 0; ) {
    EntryField f = efields[i];
    Object val = f.field.get(entry);
    if (f.marshal && val != null)
        val = new MarshalledWrapper(val);
    fields[i] = val;
      }
  } catch (IOException e) {
      throw new MarshalException("error marshalling arguments", e);
  } catch (IllegalAccessException e) {
View Full Code Here

  return server.register(item, leaseDuration);
    }

    // Inherit javadoc
    public Object lookup(ServiceTemplate tmpl) throws RemoteException {
  MarshalledWrapper wrapper = server.lookup(new Template(tmpl));
  if (wrapper == null)
      return null;
  try {
      return wrapper.get();
  } catch (IOException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  } catch (ClassNotFoundException e) {
      throw new UnmarshalException("error unmarshalling return", e);
  }
View Full Code Here

  synchronized void activeObject(UID uid, MarshalledObject mobj)
      throws UnknownObjectException
  {
      getObjectEntry(uid).stub =
    new MarshalledWrapper(new MarshalledInstance(mobj));
  }
View Full Code Here

            boolean force,
            ActivationInstantiator inst)
          throws RemoteException, ActivationException
  {
      /* stub could be set to null by a concurrent group reset */
      MarshalledWrapper nstub = stub;
      if (removed) {
    throw new UnknownObjectException("object removed");
      } else if (!force && nstub != null) {
    return nstub;
      }
      MarshalledInstance marshalledProxy =
    new MarshalledInstance(inst.newInstance(getAID(uid), desc));
      nstub = new MarshalledWrapper(marshalledProxy);
      stub = nstub;
      return nstub;
  }
View Full Code Here

TOP

Related Classes of com.sun.jini.proxy.MarshalledWrapper

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.