Tabnine Logo
org.jboss.ejb3.proxy.javassist
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.ejb3.proxy.javassist

Best Java code snippets using org.jboss.ejb3.proxy.javassist (Showing top 3 results out of 315)

origin: org.jboss.ejb3.proxy/proxy-javassist

return this.createProxy(new Class<?>[] {type}, invocationHandler);
origin: org.jboss.ejb3.proxy/proxy-javassist

try
  proxy = javassistProxyFactory.create(new Class[0], new Object[0], new JavassistInvocationHandlerAdapter(invocationHandler));
origin: org.jboss.ejb3.heks/jboss-ejb3-heks

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);
}
org.jboss.ejb3.proxy.javassist

Most used classes

  • JavassistProxyFactory
    Implementation of ProxyFactory which uses Javassist to create proxies
  • JavassistInvocationHandlerAdapter
    JavassistInvocationHandlerAdapter is an implementation of Javassist MethodHandlerand is responsible
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now