Package org.jboss.ejb3.nointerface.impl.invocationhandler

Examples of org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler


   private PersistenceUnitDependencyResolver persistenceUnitDependencyResolver;

   public ClientENCInjectionContainer(VFSDeploymentUnit unit, JBossClientMetaData xml, Class<?> mainClass, String applicationClientName, ClassLoader classLoader,
         Context encCtx, PersistenceUnitDependencyResolver persistenceUnitDependencyResolver) throws NamingException
   {
      super(new SimpleJavaEEModule((unit.getParent() != null ? unit.getParent().getSimpleName() : null), unit.getSimpleName()));
      if (mainClass == null)
         throw new NullPointerException("mainClass is mandatory");
      if (applicationClientName == null)
         throw new NullPointerException("applicationClientName is mandatory");
      if (classLoader == null)
View Full Code Here


   }

   public TomcatInjectionContainer(WebApplication appInfo, DeploymentUnit unit, org.apache.catalina.Context catalinaContext,
         PersistenceUnitDependencyResolver resolver, Set<String> dynamicClassLoaders, JavaEEComponent component, InjectionManager injectionManager)
   {
      super(new SimpleJavaEEModule(appInfo.getName()));

      assert component != null : "component is null";

      this.unit = unit;
      this.appInfo = appInfo;
View Full Code Here

      if(result instanceof JBossGenericBeanMetaData)
      {
         log.warn("FIXME: EJBTHREE-1227: JBossGenericBeanMetaData found for '" + ejbName + "' instead of " + enterpriseBeanMetaDataClass);
         if(enterpriseBeanMetaDataClass.equals(JBossSessionBeanMetaData.class))
         {
            result = new JBossSessionGenericWrapper((JBossGenericBeanMetaData) result);
         }
         else if(enterpriseBeanMetaDataClass.equals(JBossMessageDrivenBeanMetaData.class))
         {
            result = new JBossMessageDrivenBeanGenericWrapper((JBossGenericBeanMetaData) result);
         }
View Full Code Here

    * </p>
    *
    */
   protected void initMetaDataBasedAnnotationRepository()
   {
      this.metadataBasedAnnotationRepo = new AnnotationRepositoryToMetaData(this.beanClass, this.xml, name, this.classloader);
      List<MetaDataBridge<InterceptorMetaData>> interceptorBridges = new ArrayList<MetaDataBridge<InterceptorMetaData>>();
      interceptorBridges.add(new InterceptorMetaDataBridge());
      this.metadataBasedAnnotationRepo.addComponentMetaDataLoaderFactory(new InterceptorComponentMetaDataLoaderFactory(interceptorBridges));
      this.metadataBasedAnnotationRepo.addMetaDataBridge(new AdditiveBeanInterceptorMetaDataBridge(this.beanClass, this.classloader, this.xml));
     
View Full Code Here

      if (this.endpointContext == null)
      {
         throw new IllegalStateException("KernelControllerContext hasn't been set for nointerface view binder of bean: " + this.beanClass);
      }
      final AsyncMethodsMetaData asyncMethods = this.sessionBeanMetaData.getAsyncMethods();
      InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(this.endpointContext, null, beanClass,
            asyncMethods == null ? new AsyncMethodsMetaData() : asyncMethods);

      Object noInterfaceView;
      try
      {
View Full Code Here

      Serializable session = endpoint.getSessionFactory().createSession(null, null);
      logger.debug("Created session " + session + " for " + this.beanClass);

      // create an invocation handler
      AsyncMethodsMetaData asyncMethods = this.metadata.getAsyncMethods();
      InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(this.endpointContext, session,
            this.beanClass, asyncMethods==null?new AsyncMethodsMetaData():asyncMethods);
     

      // Now create the proxy
      Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);
View Full Code Here

      // create the session
      Serializable session = endpoint.getSessionFactory().createSession(null, null);
      logger.debug("Created session " + session + " for " + this.beanClass);

      // create an invocation handler
      InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(this.endpointContext, session);

      // Now create the proxy
      Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);
      return noInterfaceView;
   }
View Full Code Here

   {
      // ensure no-interface view exists
      this.ensureNoInterfaceViewExists(beanMetaData);


      InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(this.endpointContext, null);

      Object noInterfaceView;
      try
      {
         noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);
View Full Code Here

      String name = container.getDeploymentQualifiedName();
      KernelControllerContext endpointContext = (KernelControllerContext) kernel.getController().getContext(name, null);
     
      // create an invocation handler
      InvocationHandler invocationHandler = new NoInterfaceViewInvocationHandler(endpointContext, sessionId, intf);

      // Now create the proxy
      Object noInterfaceView = new JavassistProxyFactory().createProxy(new Class<?>[] {beanClass}, invocationHandler);
      return intf.cast(noInterfaceView);
   }
View Full Code Here

      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);
View Full Code Here

TOP

Related Classes of org.jboss.ejb3.nointerface.impl.invocationhandler.NoInterfaceViewInvocationHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.