-
Notifications
You must be signed in to change notification settings - Fork 1.1k
GH-10083: Apply Nullability to some core support packages #10360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3bb9a51
56f532d
a0ce80d
9cdcb30
66aebbb
70e49b9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,6 +183,11 @@ public void setTransactionSynchronizationFactory( | |
this.transactionSynchronizationFactory = transactionSynchronizationFactory; | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "polling-endpoint"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
} | ||
|
||
/** | ||
* Return the default error channel if the error handler is explicitly provided and | ||
* it is a {@link MessagePublishingErrorHandler}. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,4 +123,9 @@ private void logComponentSubscriptionEvent(boolean add) { | |
} | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "event-driven"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, |
||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -111,6 +111,11 @@ public void setOutputChannelName(String outputChannelName) { | |
return this.outputChannel; | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "message-producer"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think neither of abstract class should provide an impl. |
||
} | ||
|
||
public void setErrorChannel(MessageChannel errorChannel) { | ||
this.errorChannel = errorChannel; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -208,6 +208,11 @@ protected void doStop() { | |
} | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "reactive-streams"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
|
||
private static final class MessageHandlerSubscriber | ||
implements CoreSubscriber<Message<?>>, Disposable, Lifecycle { | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** | ||
* Provides classes supporting use of the channel. | ||
*/ | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.channel; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/** | ||
* Provides classes supporting use of the application context. | ||
*/ | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.context; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
/** | ||
* Provides classes supporting message conversion. | ||
*/ | ||
@org.springframework.lang.NonNullApi | ||
@org.springframework.lang.NonNullFields | ||
@org.jspecify.annotations.NullMarked | ||
package org.springframework.integration.support.converter; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,6 +131,11 @@ public void processAfterRollback(IntegrationResourceHolder holder) { | |
doProcess(holder, this.afterRollbackExpression, this.afterRollbackChannel, "afterRollback"); | ||
} | ||
|
||
@Override | ||
public String getComponentType() { | ||
return "processor"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one also must not be an |
||
} | ||
|
||
private void doProcess(IntegrationResourceHolder holder, Expression expression, | ||
@Nullable MessageChannel messageChannel, String expressionType) { | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: this is not an
IntegrationObjectSupport
.But separate story.