-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Originally reported on Google Code with ID 70
Using Peaberry 1.2:
When I want to bind a concrete service (without an interface) I am receiving an Exception:
The array of service names is empty
at jpa.example1.GuiceModule.configure(GuiceModule.java:24)
while locating org.ops4j.peaberry.Export<jpa.example1.ConcreteService>
I am using this code:
public class GuiceModule extends PeaberryActivationModule{
@Override
protected void configure() {
// 1. Does not work
bind(export(ConcreteService.class))
.toProvider(service(ConcreteService.class).export());
// 2. Does not work
bindService(ConcreteService.class).export();
}
Reported by dennie.nl
on 2011-12-22 08:34:10