@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
private Class<? extends Annotation> initScope() { if (scope != null) { return scope; } if (!stereotypes.isEmpty()) { MetaAnnotationStore metaAnnotationStore = beanManager.getServices().get(MetaAnnotationStore.class); Set<Annotation> possibleScopeTypes = new HashSet<>(); for (Class<? extends Annotation> stereotype : stereotypes) { StereotypeModel<? extends Annotation> model = metaAnnotationStore.getStereotype(stereotype); if (model.isValid()) { possibleScopeTypes.add(model.getDefaultScopeType()); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } } if (possibleScopeTypes.size() == 1) { return possibleScopeTypes.iterator().next().annotationType(); } else { throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(BeanAttributesConfigurator.class.getSimpleName(), Formats.formatTypes(stereotypes, false), possibleScopeTypes, ""); } } return Dependent.class; }
private Class<? extends Annotation> initScope() { if (scope != null) { return scope; } if (!stereotypes.isEmpty()) { MetaAnnotationStore metaAnnotationStore = beanManager.getServices().get(MetaAnnotationStore.class); Set<Annotation> possibleScopeTypes = new HashSet<>(); for (Class<? extends Annotation> stereotype : stereotypes) { StereotypeModel<? extends Annotation> model = metaAnnotationStore.getStereotype(stereotype); if (model.isValid()) { possibleScopeTypes.add(model.getDefaultScopeType()); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } } if (possibleScopeTypes.size() == 1) { return possibleScopeTypes.iterator().next().annotationType(); } else { throw BeanLogger.LOG.multipleScopesFoundFromStereotypes(BeanAttributesConfigurator.class.getSimpleName(), Formats.formatTypes(stereotypes, false), possibleScopeTypes, ""); } } return Dependent.class; }
@Override public boolean isStereotype(Class<? extends Annotation> annotationType) { return getServices().get(MetaAnnotationStore.class).getStereotype(annotationType).isValid(); }
private static boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
private static boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
private static boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
private boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
private static boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
private static boolean isAlternativeStereotype(BeanManagerImpl beanManager, Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = beanManager.getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid() && model.isAlternative()) { return true; } return false; }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }
@Override public Set<Annotation> getStereotypeDefinition(Class<? extends Annotation> stereotype) { final StereotypeModel<? extends Annotation> model = getServices().get(MetaAnnotationStore.class).getStereotype(stereotype); if (model.isValid()) { return model.getMetaAnnotations(); } else { throw BeanManagerLogger.LOG.notStereotype(stereotype); } }