@Override public AnnotatedTypeConfigurator<X> configureAnnotatedType() { if (annotatedTypeSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled( ProcessAnnotatedType.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new AnnotatedTypeConfiguratorImpl<>(annotatedType); } return configurator; }
@Override public void setAnnotatedType(AnnotatedType<X> type) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled( ProcessAnnotatedType.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (type == null) { throw BootstrapLogger.LOG.annotationTypeNull(this); } replaceAnnotatedType(type); annotatedTypeSet = true; BootstrapLogger.LOG.setAnnotatedTypeCalled(getReceiver(), annotatedType, type); }