Package org.jboss.metadata.ejb.spec

Examples of org.jboss.metadata.ejb.spec.InterceptorBindingsMetaData


      if (assemblyDescriptor == null)
      {
         assemblyDescriptor = new JBossAssemblyDescriptorMetaData();
         jbmd.setAssemblyDescriptor(assemblyDescriptor);
      }
      InterceptorBindingsMetaData interceptorBindings = assemblyDescriptor.getInterceptorBindings();
      if (interceptorBindings == null)
      {
         interceptorBindings = new InterceptorBindingsMetaData();
         assemblyDescriptor.setInterceptorBindings(interceptorBindings);
      }

      if (jbmd.isEJB3x() && jbmd.getEnterpriseBeans() != null)
      {
View Full Code Here


         assembly.setMethodPermissions(permissions);
      }
      super.processClass(permissions, beanClass);

      // @Interceptors
      InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
      if(interceptors == null)
      {
         interceptors = new InterceptorBindingsMetaData();
         assembly.setInterceptorBindings(interceptors);
      }
      super.processClass(interceptors, beanClass);

      EjbNameThreadLocal.ejbName.set(null);
View Full Code Here

         assembly.setMethodPermissions(permissions);
      }
      super.processClass(permissions, beanClass);

      // @Interceptors
      InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
      if(interceptors == null)
      {
         interceptors = new InterceptorBindingsMetaData();
         assembly.setInterceptorBindings(interceptors);
      }
      super.processClass(interceptors, beanClass);

      EjbNameThreadLocal.ejbName.set(null);
View Full Code Here

         throws ClassNotFoundException, NoSuchMethodException,
         NoSuchFieldException
   {
      boolean definesInterceptors = false;

      InterceptorBindingsMetaData interceptorBindings = dd.getAssemblyDescriptor().getInterceptorBindings();
      if(interceptorBindings != null)
      {
         for (InterceptorBindingMetaData binding : interceptorBindings)
         {
            // Wolf: why ignore ordered binding?
View Full Code Here

        }
        final ContainerInterceptorsMetaData containerInterceptorsMetaData = containerInterceptorConfigurations.get(0);
        if (containerInterceptorsMetaData == null) {
            return;
        }
        final InterceptorBindingsMetaData containerInterceptorBindings = containerInterceptorsMetaData.getInterceptorBindings();
        // no interceptor-binding == nothing to do
        if (containerInterceptorBindings == null || containerInterceptorBindings.isEmpty()) {
            return;
        }
        // we have now found some container interceptors which are bound to certain EJBs, start the real work!

        final Map<String, List<InterceptorBindingMetaData>> bindingsPerEJB = new HashMap<String, List<InterceptorBindingMetaData>>();
View Full Code Here

         throws ClassNotFoundException, NoSuchMethodException,
         NoSuchFieldException
   {
      boolean definesInterceptors = false;

      InterceptorBindingsMetaData interceptorBindings = dd.getAssemblyDescriptor().getInterceptorBindings();
      if(interceptorBindings != null)
      {
         for (InterceptorBindingMetaData binding : interceptorBindings)
         {
            // Wolf: why ignore ordered binding?
View Full Code Here

         throws ClassNotFoundException, NoSuchMethodException,
         NoSuchFieldException
   {
      boolean definesInterceptors = false;

      InterceptorBindingsMetaData interceptorBindings = dd.getAssemblyDescriptor().getInterceptorBindings();
      if(interceptorBindings != null)
      {
         for (InterceptorBindingMetaData binding : interceptorBindings)
         {
            // Wolf: why ignore ordered binding?
View Full Code Here

         assembly.setMethodPermissions(permissions);
      }
      super.processClass(permissions, beanClass);

      // @Interceptors
      InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
      if(interceptors == null)
      {
         interceptors = new InterceptorBindingsMetaData();
         assembly.setInterceptorBindings(interceptors);
      }
      super.processClass(interceptors, beanClass);

      EjbNameThreadLocal.ejbName.set(null);
View Full Code Here

            assembly.setMethodPermissions(permissions);
         }
         super.processClass(permissions, beanClass);
  
         // @Interceptors
         InterceptorBindingsMetaData interceptors = assembly.getInterceptorBindings();
         if(interceptors == null)
         {
            interceptors = new InterceptorBindingsMetaData();
            assembly.setInterceptorBindings(interceptors);
         }
         super.processClass(interceptors, beanClass);

      }
View Full Code Here

      ApplicationExceptionsMetaData originalExceptions = null;
      SecurityRolesMetaData originalRoles = null;
      MethodPermissionsMetaData originalPermissions = null;
      ContainerTransactionsMetaData originalTransactions = null;
      InterceptorBindingsMetaData originalInterceptors = null;
      MessageDestinationsMetaData originalDestinations = null;
      ExcludeListMetaData originalExclude = null;
      if(original != null)
      {
         originalExceptions = original.applicationExceptions;
         originalRoles = original.securityRoles;
         originalPermissions = original.methodPermissions;
         originalTransactions = original.containerTransactions;
         originalInterceptors = original.interceptorBindings;
         originalDestinations = original.messageDestinations;
         originalExclude = original.excludeList;
      }

      ApplicationExceptionsMetaData overrideExceptions = null;
      SecurityRolesMetaData overrideRoles = null;
      MethodPermissionsMetaData overridePermissions = null;
      ContainerTransactionsMetaData overrideTransactions = null;
      InterceptorBindingsMetaData overrideInterceptors = null;
      MessageDestinationsMetaData overrideDestinations = null;
      ExcludeListMetaData overrideExclude = null;
      if(override != null)
      {
         overrideExceptions = override.applicationExceptions;
         overrideRoles = override.securityRoles;
         overridePermissions = override.methodPermissions;
         overrideTransactions = override.containerTransactions;
         overrideInterceptors = override.interceptorBindings;
         overrideDestinations = override.messageDestinations;
         overrideExclude = override.excludeList;
      }

      if(originalExceptions != null || overrideExceptions != null)
      {
         if(applicationExceptions == null)
            applicationExceptions = new ApplicationExceptionsMetaData();
         applicationExceptions.merge(overrideExceptions, originalExceptions);
      }
     
      if(originalRoles != null || overrideRoles != null)
      {
         if(securityRoles == null)
            securityRoles = new SecurityRolesMetaData();
         securityRoles.merge(overrideRoles, originalRoles);
      }
     
      if(originalPermissions != null || overridePermissions != null)
      {
         if(methodPermissions == null)
            methodPermissions = new MethodPermissionsMetaData();
         methodPermissions.merge(overridePermissions, originalPermissions);
      }
     
      if(originalTransactions != null || overrideTransactions != null)
      {
         if(containerTransactions == null)
            containerTransactions = new ContainerTransactionsMetaData();
         containerTransactions.merge(overrideTransactions, originalTransactions);
      }

      if(originalInterceptors != null || overrideInterceptors != null)
      {
         if(interceptorBindings == null)
            interceptorBindings = new InterceptorBindingsMetaData();
         interceptorBindings.merge(overrideInterceptors, originalInterceptors);
      }
     
      if(originalDestinations != null || overrideDestinations != null)
      {
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ejb.spec.InterceptorBindingsMetaData

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.