001    /*
002      Renaud Pawlak, pawlak@cnam.fr, CEDRIC Laboratory, Paris, France.
003      Lionel Seinturier, Lionel.Seinturier@lip6.fr, LIP6, Paris, France.
004    
005      JAC-Core is free software. You can redistribute it and/or modify it
006      under the terms of the GNU Library General Public License as
007      published by the Free Software Foundation.
008      
009      JAC-Core is distributed in the hope that it will be useful, but
010      WITHOUT ANY WARRANTY; without even the implied warranty of
011      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
012    
013      This work uses the Javassist system - Copyright (c) 1999-2000
014      Shigeru Chiba, University of Tsukuba, Japan.  All Rights Reserved.  */
015    
016    package org.objectweb.jac.core.dist.utils;
017    
018    import java.io.Serializable;
019    
020    /**
021     * DistdArray is an utility class used to marshall/unmarshall array objects
022     * in remote invocations.
023     *
024     * @author <a href="http://cedric.cnam.fr/~pawlak/index-english.html">Renaud Pawlak</a>
025     * @author <a href="http://www-src.lip6.fr/homepages/Lionel.Seinturier/index-eng.html">Lionel Seinturier</a>
026     */
027    
028    public class DistdArray implements Serializable {
029    
030          /** The class name of the array elements. */
031          String componentTypeName;
032       
033          /** The length of the array. */
034          int length;
035       
036          public DistdArray( String componentTypeName, int length ) {
037             this.componentTypeName = componentTypeName;
038             this.length = length;
039          }
040    
041          public String getComponentTypeName() { return componentTypeName; }
042          public int getLength() { return length; }
043    }