public class GeneratorOptionsHandler extends Object implements Handler<GeneratorConfig>
| Modifier and Type | Field and Description |
|---|---|
protected Function<String,InputStream> |
read |
protected Resources |
resources |
| Constructor and Description |
|---|
GeneratorOptionsHandler(Resources resources,
Function<String,InputStream> read) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(Class<? extends Configuration> type) |
void |
handle(GeneratorConfig config) |
int |
order() |
protected List<io.dekorate.deps.kubernetes.api.model.HasMetadata> |
read(String name)
Red a list of
HasMetadata from the specified resource. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFallbackConfigprotected final Resources resources
protected final Function<String,InputStream> read
public GeneratorOptionsHandler(Resources resources, Function<String,InputStream> read)
public int order()
order in interface Handler<GeneratorConfig>public void handle(GeneratorConfig config)
handle in interface Handler<GeneratorConfig>public boolean canHandle(Class<? extends Configuration> type)
canHandle in interface Handler<GeneratorConfig>protected List<io.dekorate.deps.kubernetes.api.model.HasMetadata> read(String name)
HasMetadata from the specified resource.name - The name of the resource.HasMetadata or empty list if no resource found.Copyright © 2018–2019 Red Hat. All rights reserved.