Examples of passivating()


Examples of javax.context.ScopeType.passivating()

    protected void checkScopeType()
    {
        // Scope type check
        ScopeType scope = this.getScopeType().getAnnotation(ScopeType.class);
        if (scope.passivating())
        {
            if (!this.isSerializable())
            {
                throw new IllegalProductException("WebBeans producer method : " + creatorMethod.getName() + " return type in the component implementation class : " + this.parent.getReturnType().getName() + " with passivating scope @" + scope.annotationType().getName() + " must be Serializable");
            }
View Full Code Here

Examples of javax.context.ScopeType.passivating()

                Object beanObj = itBeans.next();
                if (beanObj instanceof ComponentImpl)
                {
                    ComponentImpl<?> component = (ComponentImpl<?>) beanObj;
                    ScopeType scope = component.getScopeType().getAnnotation(ScopeType.class);
                    if (scope.passivating())
                    {
                        // TODO  Check constructor

                        // TODO Check non-transient fields
View Full Code Here

Examples of javax.context.ScopeType.passivating()

   
    public static void checkSerializableScopeType(Class<?> scopeType, boolean isSerializable, String errorMessage)
    {
        // Scope type check
        ScopeType scope = scopeType.getAnnotation(ScopeType.class);
        if (scope.passivating())
        {
            if (!isSerializable)
            {
                throw new IllegalProductException(errorMessage);
            }
View Full Code Here

Examples of javax.context.ScopeType.passivating()

                Object beanObj = itBeans.next();
                if (beanObj instanceof ComponentImpl)
                {
                    ComponentImpl<?> component = (ComponentImpl<?>) beanObj;
                    ScopeType scope = component.getScopeType().getAnnotation(ScopeType.class);
                    if (scope.passivating())
                    {
                        // TODO  Check constructor

                        // TODO Check non-transient fields
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

        NormalScope scope = annotationType.getAnnotation(NormalScope.class);

        if(scope != null)
        {
            return scope.passivating();
        }
    
        return false;
    }   
   
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

      }
      NormalScope normalScope = scope.getAnnotation(NormalScope.class);
      if (normalScope != null)
      {
         // A proxy is expected
         if (normalScope.passivating() && !Serializable.class.isAssignableFrom(getComponentImplementation()))
         {
            throw new IllegalArgumentException("As the scope " + scope.getName()
               + " is a passivating scope, we expect only serializable objects and "
               + getComponentImplementation().getName() + " is not serializable.");
         }
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

  public boolean isPassivatingScope(Class<? extends Annotation> annotationType)
  {
    NormalScope scope = annotationType.getAnnotation(NormalScope.class);

    if (scope != null)
      return scope.passivating();
   
    return _passivatingScopeSet.contains(annotationType);
  }
 
  @Module
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

        }

        if(AnnotationUtil.hasAnnotation(annotationType.getDeclaredAnnotations(), NormalScope.class))
        {
            NormalScope scope = annotationType.getAnnotation(NormalScope.class);           
            return scope.passivating();
        }
    
        return false;
    }   
   
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

        }

        if(AnnotationUtil.hasAnnotation(annotationType.getDeclaredAnnotations(), NormalScope.class))
        {
            NormalScope scope = annotationType.getAnnotation(NormalScope.class);           
            return scope.passivating();
        }
    
        return false;
    }   
   
View Full Code Here

Examples of javax.enterprise.context.NormalScope.passivating()

        }

        if(AnnotationUtil.hasAnnotation(annotationType.getDeclaredAnnotations(), NormalScope.class))
        {
            NormalScope scope = annotationType.getAnnotation(NormalScope.class);           
            return scope.passivating();
        }
    
        return false;
    }   
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.