All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.carol.jndi.wrapping.JNDIReferenceWrapper Maven / Gradle / Ivy

There is a newer version: 3.0.10
Show newest version
/**
 * Copyright (C) 2002-2007 - INRIA (www.inria.fr)
 *
 * CAROL: Common Architecture for RMI ObjectWeb Layer
 *
 * This library is developed inside the OW2 Consortium,
 * http://www.ow2.org
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id: JNDIReferenceWrapper.java 1272 2007-09-11 11:43:56Z loris $
 * --------------------------------------------------------------------------
 */
package org.ow2.carol.jndi.wrapping;

import java.rmi.RemoteException;

import javax.naming.Reference;

/**
 * Class  JNDIReferenceWrapper  is the CAROL Remote Reference
 * implementation. This implementation make the reference wrapping to/from a
 * remote object
 * @author Guillaume Riviere ([email protected])
 */
public class JNDIReferenceWrapper implements RemoteReference {

    /**
     * Reference reference to wrap
     */
    private Reference reference;

    /**
     * constructor, export this object
     * @param reference the Reference reference to wrap
     */
    public JNDIReferenceWrapper(Reference reference) {
        super();
        this.reference = reference;
    }

    /**
     * Get the Reference reference
     * @return the Reference reference
     * @throws RemoteException if the reference cannot be returned
     */
    public Reference getReference() throws RemoteException {
        return reference;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy