1 /*2 * @(#)StubFactoryStaticImpl.java 1.4 04/04/123 *4 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.5 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.6 */7 8 package com.sun.corba.se.impl.presentation.rmi;9 10 import java.lang.reflect.InvocationHandler ;11 12 import com.sun.corba.se.spi.presentation.rmi.PresentationManager;13 14 public class StubFactoryStaticImpl extends StubFactoryBase15 {16 private Class stubClass ;17 18 public StubFactoryStaticImpl(Class cls)19 {20 super( null ) ;21 this.stubClass = cls;22 }23 24 public org.omg.CORBA.Object makeStub()25 {26 org.omg.CORBA.Object stub = null;27 try {28 stub = (org.omg.CORBA.Object ) stubClass.newInstance();29 } catch (InstantiationException e) {30 throw new RuntimeException (e);31 } catch (IllegalAccessException e) {32 throw new RuntimeException (e);33 }34 return stub ;35 }36 }37