1 7 8 package com.sun.corba.se.impl.presentation.rmi ; 9 10 import java.lang.reflect.Proxy ; 11 12 import com.sun.corba.se.spi.presentation.rmi.PresentationManager ; 13 import com.sun.corba.se.spi.presentation.rmi.DynamicStub ; 14 15 import com.sun.corba.se.spi.orbutil.proxy.InvocationHandlerFactory ; 16 import com.sun.corba.se.spi.orbutil.proxy.LinkedInvocationHandler ; 17 18 public class StubFactoryProxyImpl extends StubFactoryDynamicBase 19 { 20 public StubFactoryProxyImpl( PresentationManager.ClassData classData, 21 ClassLoader loader ) 22 { 23 super( classData, loader ) ; 24 } 25 26 public org.omg.CORBA.Object makeStub() 27 { 28 InvocationHandlerFactory factory = classData.getInvocationHandlerFactory() ; 31 LinkedInvocationHandler handler = 32 (LinkedInvocationHandler)factory.getInvocationHandler() ; 33 Class [] interfaces = factory.getProxyInterfaces() ; 34 DynamicStub stub = (DynamicStub)Proxy.newProxyInstance( loader, interfaces, 35 handler ) ; 36 handler.setProxy( (Proxy )stub ) ; 37 return stub ; 38 } 39 } 40 | Popular Tags |