@ThreadSafe
@Service(value={io.fabric8.api.PlaceholderResolver.class,PortPlaceholderResolver.class})
@Properties(value=@Property(name="scheme",value="port"))
public final class PortPlaceholderResolver
extends io.fabric8.api.scr.AbstractComponent
implements io.fabric8.api.PlaceholderResolver
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOLVER_SCHEME |
| Constructor and Description |
|---|
PortPlaceholderResolver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getScheme() |
String |
resolve(io.fabric8.api.FabricService fabricService,
Map<String,Map<String,String>> configs,
String pid,
String key,
String value)
Returns the next free port number, starting from the specified value.
|
public static final String RESOLVER_SCHEME
public String getScheme()
getScheme in interface io.fabric8.api.PlaceholderResolverpublic String resolve(io.fabric8.api.FabricService fabricService, Map<String,Map<String,String>> configs, String pid, String key, String value)
resolve in interface io.fabric8.api.PlaceholderResolverCopyright © 2011–2014 Red Hat. All rights reserved.