Skip to content
This repository has been archived by the owner on Nov 20, 2019. It is now read-only.

[CROSSDATA-818]Removed Server config as trait #775

Merged
merged 5 commits into from Nov 16, 2016

Conversation

pianista215
Copy link
Member

@pianista215 pianista215 commented Nov 14, 2016

Description

Changing the inheritance of "ServerConfig" to a composition pattern

Testing

  • Unit, integration tests

Documentation

  • Changelog update
  • Documentation link

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.4%) to 34.304% when pulling 44d65bf on pianista215:feature/remove_trait_config into 5425f79 on Stratio:master.

@pianista215 pianista215 changed the title [WIP][CROSSDATA-818]Removed Server config as trait [CROSSDATA-818]Removed Server config as trait Nov 15, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.4%) to 34.304% when pulling 6426e51 on pianista215:feature/remove_trait_config into 5425f79 on Stratio:master.

class ServerActor(cluster: Cluster, sessionProvider: XDSessionProvider)
extends Actor with ServerConfig {
class ServerActor(cluster: Cluster, sessionProvider: XDSessionProvider, serverConfig: ServerConfig)
extends Actor {
Copy link
Contributor

@pfcoperez pfcoperez Nov 15, 2016

Choose a reason for hiding this comment

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

This is a silly style preference: In order to minimize changes here and avoid some repetitions, you could import your config attributes:

import serverConfig._

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.4%) to 34.314% when pulling 7fafa13 on pianista215:feature/remove_trait_config into 5425f79 on Stratio:master.

@pianista215 pianista215 merged commit 565925b into Stratio:master Nov 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants