Skip to content

Bind concrete service classes #73

@mcculls

Description

@mcculls

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions