@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public ObserverMethodConfigurator<T> configureObserverMethod() { if (observerMethodSet) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } checkWithinObserverNotification(); if (configurator == null) { configurator = new ObserverMethodConfiguratorImpl<>(observerMethod, getReceiver()); } BootstrapLogger.LOG.configureObserverMethodCalled(getReceiver(), observerMethod); return configurator; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }
@Override public void setObserverMethod(ObserverMethod<T> observerMethod) { if (configurator != null) { throw BootstrapLogger.LOG.configuratorAndSetMethodBothCalled(ProcessObserverMethod.class.getSimpleName(), getReceiver()); } Preconditions.checkArgumentNotNull(observerMethod, "observerMethod"); checkWithinObserverNotification(); replaceObserverMethod(observerMethod); observerMethodSet = true; }