public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager) { if(attributes.getStereotypes() == null) { throw MetadataLogger.LOG.stereotypesNull(attributes); } for (Class<? extends Annotation> annotation : attributes.getStereotypes()) { if (!manager.isStereotype(annotation)) { throw MetadataLogger.LOG.notAStereotype(annotation, attributes); } } }