bluemix-config-parser

Bluemix Config Parser

Лицензия

Лицензия

Категории

Категории

CLI Взаимодействие с пользователем config Библиотеки уровня приложения Configuration
Группа

Группа

com.clianz
Идентификатор

Идентификатор

bluemix-config-parser
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

bluemix-config-parser
Bluemix Config Parser
Ссылка на сайт

Ссылка на сайт

http://github.com/icha024/bluemix-config-parser
Система контроля версий

Система контроля версий

http://github.com/icha024/bluemix-config-parser

Скачать bluemix-config-parser

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.clianz/bluemix-config-parser/ -->
<dependency>
    <groupId>com.clianz</groupId>
    <artifactId>bluemix-config-parser</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.clianz/bluemix-config-parser/
implementation 'com.clianz:bluemix-config-parser:0.0.5'
// https://jarcasting.com/artifacts/com.clianz/bluemix-config-parser/
implementation ("com.clianz:bluemix-config-parser:0.0.5")
'com.clianz:bluemix-config-parser:jar:0.0.5'
<dependency org="com.clianz" name="bluemix-config-parser" rev="0.0.5">
  <artifact name="bluemix-config-parser" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.clianz', module='bluemix-config-parser', version='0.0.5')
)
libraryDependencies += "com.clianz" % "bluemix-config-parser" % "0.0.5"
[com.clianz/bluemix-config-parser "0.0.5"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
com.google.code.gson : gson jar 2.5

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.16.6

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

Модули Проекта

Данный проект не имеет модулей.

Bluemix Config Parser

Build Status

##No more messy JSON config parsing!

When using Bluemix (CloudFoundry), services configuration are read by parsing the JSON from VCAP_SERVICES environment variable. This is a handy util library for parsing Bluemix VCAP_SERVICES configurations JSON. Common configs classess are provided so it'll even work with auto-completion on your favorite IDE.

Usage example

String password = BluemixConfigStore.getConfig().getCloudantNoSQLDB().getCredentials().getPassword();

Installing with Maven

<dependency>
  <groupId>com.clianz</groupId>
  <artifactId>bluemix-config-parser</artifactId>
  <version>0.0.5</version>
</dependency>

Configurations supported

Most of the common services on Bluemix are currently supported:

  • Business rules
  • Clear DB
  • Cloud AMQP (RabbitMQ)
  • Cloudant
  • Concept Expansion
  • Concept Insight
  • Dash DB
  • Data Cache
  • Document Conversion
  • Geospartial Analytics
  • IMF Push
  • Monitoring and Analytics
  • MQ Light
  • Relationship Extraction
  • Rank and Retrieve
  • Sesson Cache
  • SQL DB (DB2)
  • Trade-off Analytics
  • Twitter Insights
  • Weather Insights
  • Workflow
  • Workload Scheduler
  • Twilio
  • Elastic Search by Compose
  • Mongo DB by Compose
  • PostgreSQL by Compose
  • Redis by Compose

Add more bindings to other services if you need, let's do this once and for all for everyone.

Local development deployment

For local development, there are two common ways to setup environment:

  • Set VCAP_SERVICES JSON config for your dev space as an environment variable.

  • Or, start your app with a JVM variable pointing to a file containing your dev config, eg.

    -DVCAP_SERVICES_FILENAME=myDevConfig.json
    

Contributing

Pull requests are welcome. Project page: https://github.com/icha024/bluemix-config-parser/

Just fork this project, follow the pattern to add bindings/tests, then raise a pull request.

Версии библиотеки

Версия
0.0.5