Examples of writeExternal()


Examples of org.apache.webbeans.spi.ResourceInjectionService.writeExternal()

    {       
        // write bean id first
        out.writeObject(bean.getId());
        WebBeansContext webBeansContext = WebBeansContext.getInstance();
        ResourceInjectionService resourceInjectionService = webBeansContext.getService(ResourceInjectionService.class);
        resourceInjectionService.writeExternal(bean, actualResource, out);
    }

    /**
     * When deserialized, first try container provided failover service. If the failover service does not
     * handle the actual instance, the default behavior is:
View Full Code Here

Examples of org.drools.compiler.lang.descr.PackageDescr.writeExternal()

        assertTrue(descr.getImports().contains(importDescr));

        try {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(baos);
            descr.writeExternal(out);

            ObjectInput in = new ObjectInputStream(new ByteArrayInputStream(baos.toByteArray()));
            PackageDescr newDescr = new PackageDescr();
            newDescr.readExternal(in);
View Full Code Here

Examples of org.fusesource.hawtdb.internal.util.Ranges.writeExternal()

            pageFile.flush();
            if( !isReadOnly() && pageFile.storeFreePages ) {
                Ranges ranges = pageFile.allocator().getFreeRanges().copy();
                int freePageExtent = pageFile.alloc();
                DataOutputStream os = new DataOutputStream(new ExtentOutputStream(pageFile, freePageExtent, (short)1, (short)200));
                ranges.writeExternal(os);
                os.close();
                writePageFileHeader(freePageExtent);
            }
            pageFile.flush();
            pageFile = null;
View Full Code Here

Examples of org.infinispan.remoting.transport.jgroups.JGroupsAddress.writeExternal()

    */
   private static final long serialVersionUID = 2400716389425727329L;

   public void writeExternal(Object subject, ObjectOutput output) throws IOException {
      JGroupsAddress address = (JGroupsAddress) subject;
      address.writeExternal(output);
   }

   public Object createExternal(Class<?> subjectType, ObjectInput input, Creator defaultCreator)
         throws IOException, ClassNotFoundException {
      return new JGroupsAddress();
View Full Code Here

Examples of org.jboss.cache.Modification.writeExternal()

         if (length > 0)
         {
            for (Iterator it = modifications.iterator(); it.hasNext();)
            {
               Modification m = (Modification) it.next();
               m.writeExternal(out);
            }
         }
         out.flush();
         Object retval = in.readObject();
         if (retval instanceof Exception)
View Full Code Here

Examples of org.jboss.dmr.ModelNode.writeExternal()

        @Override
        protected void sendResponse(final OutputStream outputStream) throws IOException {
            ModelNode result = modelController.execute(builder.build());
            outputStream.write(ModelControllerClientProtocol.PARAM_OPERATION);
            result.writeExternal(outputStream);
        }
    }

    private class ExecuteAsynchronousOperation extends ExecuteOperation {
View Full Code Here

Examples of org.jboss.dmr.ModelNode.writeExternal()

            //Do this blocking operation outside the synch block or our result handler will deadlock
            ModelNode compensating = result.getCompensatingOperation() != null ? result.getCompensatingOperation() : new ModelNode();

            synchronized (outputStream) {
                outputStream.write(ModelControllerClientProtocol.PARAM_OPERATION);
                compensating.writeExternal(outputStream);
                outputStream.flush();
            }

            if (completeLatch.getCount() == 0) {
                //It was handled synchronously or has completed by now
View Full Code Here

Examples of org.jboss.marshalling.Externalizer.writeExternal()

                write(unshared ? ID_NEW_OBJECT_UNSHARED : ID_NEW_OBJECT);
                writeExternalizerClass(objClass, externalizer);
                instanceCache.put(obj, instanceSeq++);
                final ObjectOutput objectOutput;
                objectOutput = getObjectOutput();
                externalizer.writeExternal(obj, objectOutput);
                writeEndBlock();
                if (unshared) {
                    instanceCache.put(obj, -1);
                }
                return;
View Full Code Here

Examples of org.jgroups.Message.writeExternal()

                m.writeTo(dos);
                dos.close();
            }
            else {
                ObjectOutputStream msg_out=use_magic? new MagicObjectOutputStream(msg_data) : new ObjectOutputStream(msg_data);
                m.writeExternal(msg_out);
                // msg_out.writeObject(m);
                msg_out.close();
            }

            jgbuf=new Buffer(msg_data.getRawBuffer(), 0, msg_data.size());
View Full Code Here

Examples of org.jgroups.blocks.MethodCall.writeExternal()

        int a=10;
        String b="Bela";
        MethodCall m=new MethodCall("foo", new Object[]{new Integer(a),b}, new Class[]{int.class, String.class});
        ByteArrayOutputStream msg_data=new ByteArrayOutputStream();
        ObjectOutputStream msg_out=new ObjectOutputStream(msg_data);
        m.writeExternal(msg_out);
        msg_out.flush();
        msg_out.close();
        byte[] data=msg_data.toByteArray();
        ByteArrayInputStream msg_in_data=new ByteArrayInputStream(data);
        ObjectInputStream msg_in=new ObjectInputStream(msg_in_data);
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.