Skip to content

Commit ff10438

Browse files
committed
new blog post - genereated
1 parent 608d098 commit ff10438

File tree

4 files changed

+674
-7
lines changed

4 files changed

+674
-7
lines changed

_blog-src/_posts/2015-07-24-plugin-components.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ new plugin. Your next step is to actually use it! Using a custom component is
199199
simple as referencing it in the `apiman.properties` file. You'll need to remove
200200
this line first:
201201

202-
```
202+
{% highlight text %}
203203
apiman-gateway.registry=io.apiman.gateway.engine.ispn.InfinispanRegistry
204-
```
204+
{% endhighlight %}
205205

206206
and then add something like this:
207207

208-
```
208+
{% highlight text %}
209209
apiman-gateway.registry=plugin:GROUP_ID:ARTIFACT_ID:VERSION/org.example.apiman.gateway.MongoDbRegistry
210-
```
210+
{% endhighlight %}
211211

212212
The format of the value of `apiman-gateway.registry` is very important - when
213213
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
218218
will obviously be helpful since it will probably need connection details. So
219219
really your configuration might look something like this:
220220

221-
```
221+
{% highlight text %}
222222
apiman-gateway.registry=plugin:GROUP_ID:ARTIFACT_ID:VERSION/org.example.apiman.gateway.MongoDbRegistry
223223
apiman-gateway.registry.mongo.host=localhost
224224
apiman-gateway.registry.mongo.port=27017
225225
apiman-gateway.registry.mongo.username=sa
226226
apiman-gateway.registry.mongo.password=sa123!
227227
apiman-gateway.registry.mongo.database=apiman
228-
```
228+
{% endhighlight %}
229229

230230
These configuration options will be passed to your component in its constructor if
231231
your class has a `Map<String,String>` constructor.

0 commit comments

Comments
 (0)