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

Simplify package structure for 1.0 styx-api module #240

Merged
merged 6 commits into from
Aug 23, 2018

Conversation

mikkokar
Copy link
Contributor

@mikkokar mikkokar commented Aug 23, 2018

Reduces number of java packages in styx-api module. Results in a more consistent and less cluttered API structure.

  • All HTTP message & interceptor related definitions are now in the com.hotels.styx.api package.

  • Any SPI extensions go under com.hotels.styx.api.extension.<name>.spi. However to minimise impact on existing plugins the plugin definitions still live in com.hotels.styx.api.plugins.

This PR also moves some unnecessary classes away from the API module.

@mikkokar mikkokar requested review from kvosper, dvlato and VivianLopes and removed request for kvosper August 23, 2018 08:42
@@ -46,7 +40,7 @@
*/
public abstract class AbstractStyxService implements StyxService {
private final String name;
private final AtomicReference<StyxServiceStatus> status = new AtomicReference<>(CREATED);
private final AtomicReference<StyxServiceStatus> status = new AtomicReference<>(StyxServiceStatus.CREATED);
Copy link
Contributor

Choose a reason for hiding this comment

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

Please reintroduce the static imports.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

@mikkokar mikkokar merged commit 1f565c4 into ExpediaGroup:styx-1.0-dev Aug 23, 2018
@mikkokar mikkokar deleted the api-packages branch April 1, 2019 08:39
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