return this.createProxy(new Class<?>[] {type}, invocationHandler);
try proxy = javassistProxyFactory.create(new Class[0], new Object[0], new JavassistInvocationHandlerAdapter(invocationHandler));
protected <B> B createNoInterfaceView(SessionContainer container, Serializable sessionId, Class<B> intf) { Class<?> beanClass = container.getBeanClass(); String name = container.getDeploymentQualifiedName(); KernelControllerContext endpointContext = (KernelControllerContext) kernel.getController().getContext(name, null); AsyncMethodsMetaData asyncMethods = null; JBossEnterpriseBeanMetaData sessionBeanMetaData = container.getXml(); if (sessionBeanMetaData instanceof JBossSessionBean31MetaData) { asyncMethods = ((JBossSessionBean31MetaData) sessionBeanMetaData).getAsyncMethods(); } // create an invocation handler InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(endpointContext, sessionId, intf, asyncMethods == null ? new AsyncMethodsMetaData() : asyncMethods); // Now create the proxy Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler); return intf.cast(noInterfaceView); }