@Override protected boolean isOptional(Extension annotation) { return annotation.optional(); }
private Level logLevel(IndexItem<Extension, Object> item) { return item.annotation().optional() ? Level.FINE : Level.WARNING; } }
@Override protected boolean isOptional(Extension annotation) { return annotation.optional(); }
public static Boolean isOptional(final Annotation annotation) { if (annotation != null) { if (annotation instanceof Extension) { return Boolean.valueOf(((Extension)annotation).optional()); } if (annotation instanceof ExtensionQualifier) { return Boolean.valueOf(((ExtensionQualifier)annotation).extension().optional()); } } return null; }
public static Boolean isOptional(final Annotation annotation) { if (annotation != null) { if (annotation instanceof Extension) { return Boolean.valueOf(((Extension)annotation).optional()); } if (annotation instanceof ExtensionQualifier) { return Boolean.valueOf(((ExtensionQualifier)annotation).extension().optional()); } } return null; }
public static Boolean isOptional(final Class<?> type) { if (type != null) { Extension extension = type.getAnnotation(Extension.class); if (extension != null) { return Boolean.valueOf(extension.optional()); } ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class); if (qualifier != null) { return Boolean.valueOf(qualifier.extension().optional()); } } return null; }
public static Boolean isOptional(final Class<?> type) { if (type != null) { Extension extension = type.getAnnotation(Extension.class); if (extension != null) { return Boolean.valueOf(extension.optional()); } ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class); if (qualifier != null) { return Boolean.valueOf(qualifier.extension().optional()); } } return null; }
private Level logLevel(IndexItem<Extension, Object> item) { return item.annotation().optional() ? Level.FINE : Level.WARNING; } }
public void configure( final Binder binder ) { for ( final SpaceIndexItem<Extension, Object> item : SpaceIndex.load( Extension.class, Object.class, space, globalIndex ) ) { try { // ignore the legacy SezPoz ExtensionFinder if ( !Sezpoz.class.equals( item.element() ) ) { bindItem( binder, item ); } } catch ( final Throwable e ) { if (item.annotation().optional()) { log.debug("Failed to bind optional extension: {}", item, e); } else { log.warn("Failed to bind extension: {}", item, e); } } } }
public void configure( final Binder binder ) { for ( final SpaceIndexItem<Extension, Object> item : SpaceIndex.load( Extension.class, Object.class, space, globalIndex ) ) { try { // ignore the legacy SezPoz ExtensionFinder if ( !Sezpoz.class.equals( item.element() ) ) { bindItem( binder, item ); } } catch ( final Throwable e ) { if (item.annotation().optional()) { log.debug("Failed to bind optional extension: {}", item, e); } else { log.warn("Failed to bind extension: {}", item, e); } } } }
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING, "Failed to scout " + item.className(), e); } catch (ClassNotFoundException e) {
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING, "Failed to scout "+item.className(), e); } catch (ClassNotFoundException e) {
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING, "Failed to scout "+item.className(), e); } catch (ClassNotFoundException e) {
LOGGER.log(item.annotation().optional() ? Level.FINE : Level.WARNING, "Failed to scout "+item.className(), e); } catch (ClassNotFoundException e) {