final class ConsumerServiceImpl extends java.lang.Object implements ConsumerService
Modifier and Type | Field and Description |
---|---|
private ConsumerRepository |
repo |
Constructor and Description |
---|
ConsumerServiceImpl(ConsumerRepository repo) |
private final ConsumerRepository repo
@Inject public ConsumerServiceImpl(ConsumerRepository repo)
public Consumer get(java.lang.String consumerKey)
ConsumerService
get
in interface ConsumerService
consumerKey
- the consumer key.public Consumer create(java.lang.String name)
ConsumerService
create
in interface ConsumerService
name
- name associated with this consumer.public Consumer save(Consumer consumer)
ConsumerService
save
in interface ConsumerService
consumer
- to save