@Address(value="/subsystem=mongodb") @Implicit public class Mongodb<T extends Mongodb<T>> extends HashMap implements org.wildfly.swarm.config.runtime.Keyed
| Modifier and Type | Class and Description |
|---|---|
static class |
Mongodb.MongodbResources
Child mutators for Mongodb
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Mongodb() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
String |
getKey() |
T |
mongo(Mongo value)
Add the Mongo object to the list of subresources
|
T |
mongo(MongoSupplier supplier)
Install a supplied Mongo object to the list of subresources
|
T |
mongo(String childKey)
Create and configure a Mongo object to the list of subresources
|
T |
mongo(String childKey,
MongoConsumer consumer)
Create and configure a Mongo object to the list of subresources
|
T |
mongos(List<Mongo> value)
Add all Mongo objects to this subresource
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Mongodb.MongodbResources |
subresources() |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic String getKey()
getKey in interface org.wildfly.swarm.config.runtime.Keyedpublic void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public Mongodb.MongodbResources subresources()
public T mongos(List<Mongo> value)
value - List of Mongo objects.public T mongo(Mongo value)
value - The Mongo to addpublic T mongo(String childKey, MongoConsumer consumer)
key - The key for the Mongo resourceconfig - The MongoConsumer to usepublic T mongo(String childKey)
key - The key for the Mongo resourcepublic T mongo(MongoSupplier supplier)
Copyright © 2017 JBoss by Red Hat. All rights reserved.