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

Move factory object to top-level package #68

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

smuir
Copy link
Contributor

@smuir smuir commented Apr 26, 2014

No description provided.

Make the cosmetic changes necessary when moving SiriusFactory into the
top-level com.comcast.xfinity.sirius package, out of the api.impl
subpackage.
Create a wrapper class that delegates factory method calls to the relocated
SiriusFactory object.
@smuir
Copy link
Contributor Author

smuir commented Apr 27, 2014

A quick thought: it might make more sense, to prevent creating any kind of false compatibility issues, to include this change in with the Sirius1Dot3 stuff, and have the factory return a Sirius1Dot3 interface rather than a plain old Sirius.

comcast-jonm added a commit to comcast-jonm/sirius that referenced this pull request Aug 7, 2014
This is a re-spin of Comcast#27 but also incorporates the intent of Comcast#68.
This should basically mean that a client of the Sirius library
ought only to directly use classes, objects, and traits from the
`com.comcast.xfinity.sirius.api` package, and that, going
forward, those are the files that must retain backwards
compatibility.

The main changes involved are:

* Additional extension methods for 1.3 are now collected in the
  Sirius1Dot3 trait that extends the existing Sirius trait.

* Existing SiriusFactory was hoisted up to api package and now
  returns a Sirius1Dot3 instead of a SiriusImpl. Clients ought
  to be depending on a trait rather than a concrete class here.

* There is still a SiriusFactory in the old location, but it
  just delegates to the one in the new location, then downcasts
  the return result to a SiriusImpl. This SiriusFactory is
  marked as deprecated.
@CLAassistant
Copy link

CLAassistant commented Jul 22, 2019

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

None yet

2 participants