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

Start Stop annotation to be trigger the methods at Impl level. #78

Open
mcculls opened this issue Jun 22, 2015 · 1 comment
Open

Start Stop annotation to be trigger the methods at Impl level. #78

mcculls opened this issue Jun 22, 2015 · 1 comment

Comments

@mcculls
Copy link
Member

mcculls commented Jun 22, 2015

Originally reported on Google Code with ID 75

What steps will reproduce the problem?

In a PeaberryActivationModule :     bind(PriceManager.class).to(PriceManagerImpl.class).in(Scopes.SINGLETON);
bindService(PriceManager.class).export();

PriceManager.class only have the method
Object getSomething(Object arg);

PriceManagerImpl.class override it's interface method and add @Start void start() and
@Stop void stop() methods.

What is the expected output? What do you see instead?

Expect the methods with @Start and @Stop to be executed.
I tested it and I should declare the @Stop and @Start method at the interface level,
but I don't want my interface to allow such power method because there will be more
than 1 service that will be using the PriceManager Singleton.

What version of the product are you using? On what operating system?
Peaberry 1.3 on windows 7.

Please provide any additional information below.

To get the expected result, I add a third line as follow :         bind(PriceManager.class).to(PriceManagerImpl.class).in(Scopes.SINGLETON);
bindService(PriceManager.class).export();

// Allow the @Start and @Stop to trigger.
bind(PriceManagerImpl.class).in(Scopes.SINGLETON);

Is it possible to allow @Start and @Stop method to be ran on both side ?

Reported by leclerc.luc on 2012-12-11 16:28:00

@mcculls
Copy link
Member Author

mcculls commented Jun 22, 2015

I tried to switch the type in the form, from "Defect" to "Feature", but it seems to
have be stuck to Defect...

Reported by leclerc.luc on 2012-12-11 17:16:53

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant