Package javax.enterprise.context

Examples of javax.enterprise.context.NormalScope


            {
                Object beanObj = itBeans.next();
                if (beanObj instanceof ManagedBean)
                {
                    ManagedBean<?> component = (ManagedBean<?>) beanObj;
                    NormalScope scope = component.getScope().getAnnotation(NormalScope.class);
                    if(scope != null)
                    {
                        if (scope.passivating())
                        {
                            // TODO  Check constructor

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


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

            {
                return extScope.isPassivating();
            }
        }

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

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

  */

  @Override
  public X getScopeAdapter(Bean<?> topBean, CreationalContext<X> cxt)
  {
    NormalScope scopeType = getScope().getAnnotation(NormalScope.class);

    // ioc/0520
    if (scopeType != null
        && ! getScope().equals(ApplicationScoped.class)) {
      // && scopeType.normal()
View Full Code Here

   * Tests if an annotation is an enabled scope type
   */
  @Override
  public boolean isPassivatingScope(Class<? extends Annotation> annotationType)
  {
    NormalScope scope =  annotationType.getAnnotation(NormalScope.class);

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

  }

  @Override
  public X getScopeAdapter(Bean<?> topBean, CreationalContext<X> cxt)
  {
    NormalScope scopeType = getScope().getAnnotation(NormalScope.class);

    // ioc/0520
    if (scopeType != null
        && ! getScope().equals(ApplicationScoped.class)) {
      // && scopeType.normal()
View Full Code Here

    return null;
  }
 
  protected boolean isProxiedScope()
  {
    NormalScope scopeType = getScope().getAnnotation(NormalScope.class);
   
    if (scopeType != null
        && ! getScope().equals(ApplicationScoped.class)) {
      return true;
    }
View Full Code Here

   * Tests if an annotation is an enabled scope type
   */
  @Override
  public boolean isPassivatingScope(Class<? extends Annotation> annotationType)
  {
    NormalScope scope = annotationType.getAnnotation(NormalScope.class);

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

    return null;
  }
 
  protected boolean isProxiedScope()
  {
    NormalScope scopeType = getScope().getAnnotation(NormalScope.class);
   
    if (scopeType != null
        && ! getScope().equals(ApplicationScoped.class)) {
      return true;
    }
View Full Code Here

  }

  @Override
  public X getScopeAdapter(Bean<?> topBean, CreationalContextImpl<X> cxt)
  {
    NormalScope scopeType = getScope().getAnnotation(NormalScope.class);

    // ioc/0520
    if (scopeType != null) {
      //  && ! getScope().equals(ApplicationScoped.class)) {
      // && scopeType.normal()
View Full Code Here

TOP

Related Classes of javax.enterprise.context.NormalScope

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.