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

Set default Singleton as default scope #30

Closed
VojtechBartos opened this issue Jul 17, 2013 · 4 comments
Closed

Set default Singleton as default scope #30

VojtechBartos opened this issue Jul 17, 2013 · 4 comments

Comments

@VojtechBartos
Copy link
Contributor

Hi guys,
is there any way to set up to default creating singletons ?

@jasperblues
Copy link
Member

Currently Prototype is the default. . . The idea was that you could be assured an object would not leak, unless you specifically declare that you need it around.. . its goes against e.g. Spring, but I thought it made sense for mobile. .. what do you think?

I would accept a pull request to specify the default scope for the container.

Jasper Blues
Landline: +63.2.826.2489
Skype: jasperblues
LinkedIn Twitter

On Jul 17, 2013, at 11:45 PM, Vojtěch Bartoš [email protected] wrote:

Hi guys,
is there any way to set up to default creating singletons ?


Reply to this email directly or view it on GitHub.

@VojtechBartos
Copy link
Contributor Author

I think it is good idea to have option set default scope. I have not experience with Spring but when i used IoC container i used most of instances as singletons. It is true that i am primary web developer not iOS developer, there i am still junior, but i will implement it and will send a pull request.

@jasperblues
Copy link
Member

It should be a very simple feature to implement. . . . I would greatly appreciate a pull request, however if you're not able to do so, I could implement the feature in the near future. (This weekend or next).

Kind Regards,

Jasper Blues
Landline: +63.2.826.2489
Skype: jasperblues
LinkedIn Twitter

On Jul 18, 2013, at 3:51 PM, Vojtěch Bartoš [email protected] wrote:

I think it is good idea to have option set default scope. I have not experience with Spring but when i used IoC container i used most of instances as singletons. It is true that i am primary web developer not iOS developer, there i am still junior, but i will implement it and will send a pull request.


Reply to this email directly or view it on GitHub.

@VojtechBartos
Copy link
Contributor Author

I will do it i hope this weekend :)

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

No branches or pull requests

2 participants