File tree Expand file tree Collapse file tree 4 files changed +674
-7
lines changed
api-manager/api-gateway/plugins/development/maven/2015/07/24 Expand file tree Collapse file tree 4 files changed +674
-7
lines changed Original file line number Diff line number Diff line change @@ -199,15 +199,15 @@ new plugin. Your next step is to actually use it! Using a custom component is
199
199
simple as referencing it in the ` apiman.properties ` file. You'll need to remove
200
200
this line first:
201
201
202
- ```
202
+ {% highlight text %}
203
203
apiman-gateway.registry=io.apiman.gateway.engine.ispn.InfinispanRegistry
204
- ```
204
+ {% endhighlight %}
205
205
206
206
and then add something like this:
207
207
208
- ```
208
+ {% highlight text %}
209
209
apiman-gateway.registry=plugin:GROUP_ID:ARTIFACT_ID: VERSION /org.example.apiman.gateway.MongoDbRegistry
210
- ```
210
+ {% endhighlight %}
211
211
212
212
The format of the value of ` apiman-gateway.registry ` is very important - when
213
213
using a plugin you must specify the maven information of your plugin so that
@@ -218,14 +218,14 @@ Note that you can also provide configuration parameters to your component. That
218
218
will obviously be helpful since it will probably need connection details. So
219
219
really your configuration might look something like this:
220
220
221
- ```
221
+ {% highlight text %}
222
222
apiman-gateway.registry=plugin:GROUP_ID:ARTIFACT_ID: VERSION /org.example.apiman.gateway.MongoDbRegistry
223
223
apiman-gateway.registry.mongo.host=localhost
224
224
apiman-gateway.registry.mongo.port=27017
225
225
apiman-gateway.registry.mongo.username=sa
226
226
apiman-gateway.registry.mongo.password=sa123!
227
227
apiman-gateway.registry.mongo.database=apiman
228
- ```
228
+ {% endhighlight %}
229
229
230
230
These configuration options will be passed to your component in its constructor if
231
231
your class has a ` Map<String,String> ` constructor.
You can’t perform that action at this time.
0 commit comments