/** * 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); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { for(ExternalScope extScope : additionalScopes) { if (extScope.getScope().equals(annotationType)) { return extScope.isPassivating(); } } NormalScope scope = annotationType.getAnnotation(NormalScope.class); if(scope != null) { return scope.passivating(); } return false; }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }
/** * Constructor * * @param scope The scope type */ public ScopeModel(EnhancedAnnotation<T> enhancedAnnotatedAnnotation) { super(enhancedAnnotatedAnnotation); if (isValid()) { if (enhancedAnnotatedAnnotation.isAnnotationPresent(NormalScope.class)) { this.passivating = enhancedAnnotatedAnnotation.getAnnotation(NormalScope.class).passivating(); this.normal = true; } else { this.normal = false; this.passivating = false; } } else { this.normal = false; this.passivating = false; } }