Skip to content
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

Init params and custom instance factories to the ServletBuildItem #1045

Merged

Conversation

stuartwdouglas
Copy link
Member

@stuartwdouglas stuartwdouglas commented Feb 25, 2019

See title.


import org.jboss.builder.item.MultiBuildItem;

import io.undertow.servlet.api.InstanceFactory;

public final class ServletBuildItem extends MultiBuildItem {
Copy link
Member

Choose a reason for hiding this comment

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

As an aside, I wonder if we should have builders for these complex build items, so they can be immutable?

Copy link
Member Author

Choose a reason for hiding this comment

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

We should

return instanceFactory;
}

public ServletBuildItem setInstanceFactory(InstanceFactory<? extends Servlet> instanceFactory) {
Copy link
Member

Choose a reason for hiding this comment

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

Is this something that should be set on creation?

@stuartwdouglas stuartwdouglas merged commit d95775f into quarkusio:master Feb 27, 2019
@gsmet gsmet added this to the 0.10.0 milestone Feb 27, 2019
@cescoffier cescoffier changed the title Add support for init params and custom instance factories to the Serv… Init params and custom instance factories to the ServletBuildItem Mar 1, 2019
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.

3 participants