Skip to content

Conversation

@trask
Copy link
Member

@trask trask commented Jan 27, 2026

Rename

  • getHandler() -> createHandler()
  • getExecInterceptor() -> createExecInterceptor()
  • getExecInitializer() -> createExecInitializer()


/** Returns {@link ExecInterceptor} instance to support Ratpack Registry binding. */
public ExecInterceptor getExecInterceptor() {
public static ExecInterceptor getExecInterceptor() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would be a binary incompatible change, is that ok?

Copy link
Member Author

@trask trask Jan 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it's not ideal to not have deprecation cycle, but we don't make any guarantees about non-stable artifacts

that said, I don't love these method names, I have now renamed them to createExec*, since they're stateless empty objects anyways and so having a single shared instance isn't important

Copy link
Contributor

@laurit laurit Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering whether leaving these as non-static would look nicer. It could help if we needed to change them to non-singletons and configure them in some way.

@trask trask force-pushed the ratpack branch 2 times, most recently from 9f8bba2 to a5133a7 Compare January 27, 2026 20:14
@trask trask marked this pull request as ready for review January 27, 2026 20:19
@trask trask requested a review from a team as a code owner January 27, 2026 20:19
@trask trask changed the title Ratpack library instrumentation: rename getHandler to createHandler Ratpack library instrumentation: rename three methods Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants