public class Capabilities extends Object
| Constructor and Description |
|---|
Capabilities(Environment environment) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String name) |
Iterable<AddressTemplate> |
lookup(String name)
Looks up a capability from the local cache.
|
void |
register(Capability capability) |
void |
register(String name,
AddressTemplate first,
AddressTemplate... rest) |
void |
register(String name,
Iterable<AddressTemplate> templates) |
boolean |
supportsSuggestions() |
@Inject public Capabilities(Environment environment)
public boolean supportsSuggestions()
public Iterable<AddressTemplate> lookup(String name)
public boolean contains(String name)
public void register(String name, AddressTemplate first, AddressTemplate... rest)
public void register(String name, Iterable<AddressTemplate> templates)
public void register(Capability capability)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.