Issue 75 in peaberry: Start Stop annotation to be trigger the methods at Impl level.

10 views
Skip to first unread message

peab...@googlecode.com

unread,
Dec 11, 2012, 11:28:09 AM12/11/12
to guice...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 75 by leclerc....@gmail.com: Start Stop annotation to be trigger
the methods at Impl level.
http://code.google.com/p/peaberry/issues/detail?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 ?


peab...@googlecode.com

unread,
Dec 11, 2012, 12:17:07 PM12/11/12
to guice...@googlegroups.com

Comment #1 on issue 75 by leclerc....@gmail.com: Start Stop annotation to
be trigger the methods at Impl level.
http://code.google.com/p/peaberry/issues/detail?id=75

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

peab...@googlecode.com

unread,
Jun 21, 2015, 9:53:44 PM6/21/15
to guice...@googlegroups.com
Updates:
Status: Duplicate

Comment #2 on issue 75 by mccu...@gmail.com: Start Stop annotation to be
trigger the methods at Impl level.
https://code.google.com/p/peaberry/issues/detail?id=75

Moved to https://github.com/ops4j/peaberry/issues/78

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages