@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * 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; } }
@Override public ScopeModel<Annotation> apply(Class<Annotation> from) { return new ScopeModel<Annotation>(getClassTransformer().getEnhancedAnnotation(from)); }
/** * 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; } }
@Override public ScopeModel<Annotation> apply(Class<Annotation> from) { return new ScopeModel<Annotation>(getClassTransformer().getEnhancedAnnotation(from)); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * 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; } }
@Override public ScopeModel<Annotation> apply(Class<Annotation> from) { return new ScopeModel<Annotation>(getClassTransformer().getEnhancedAnnotation(from)); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * 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; } }
@Override public ScopeModel<Annotation> apply(Class<Annotation> from) { return new ScopeModel<Annotation>(getClassTransformer().getEnhancedAnnotation(from)); }
@Override public boolean isPassivatingScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isPassivating(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }
/** * 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; } }
@Override public ScopeModel<Annotation> apply(Class<Annotation> from) { return new ScopeModel<Annotation>(getClassTransformer().getEnhancedAnnotation(from)); }
@Override public boolean isNormalScope(Class<? extends Annotation> annotationType) { ScopeModel<?> scope = getServices().get(MetaAnnotationStore.class).getScopeModel(annotationType); return scope.isValid() && scope.isNormal(); }
/** * Gets a string representation of the scope model * * @return The string representation */ @Override public String toString() { String valid = isValid() ? "Valid " : "Invalid"; String normal = isNormal() ? "normal " : "non-normal "; String passivating = isPassivating() ? "passivating " : "pon-passivating "; return valid + normal + passivating + " scope model for " + getRawType(); }