Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gastaldi/twitter-addon

Twitter addon for JBoss Forge
https://github.com/gastaldi/twitter-addon

Last synced: 2 days ago
JSON representation

Twitter addon for JBoss Forge

Awesome Lists containing this project

README

        

== twitter
:idprefix: id_
This addon provides *standalone* functionality, and *exports services* for use in other addons.

=== Depends on
[options="header"]
|===
|Addon |Exported |Optional
|ui
|yes
|no

|configuration
|yes
|no

|cdi
|yes
|no
|===

== Setup
This Addon requires the following installation steps.

=== Add configuration to pom.xml
To use this addon, you must add it as a dependency in the *pom.xml* of your `forge-addon` classified artifact:
[source,xml]
----

com.github.gastaldi
twitter
forge-addon
${version}

----
== Features
Twitter handler::
Allows invoking Twitter commands
+
[source,java]
----
@Inject private Twitter twitter;
...
twitter.updateStatus("Hello Twitter World!");
----
+
[TIP]
====
If your addon uses a container that does not support "@Inject" annotations, services such as the `Twitter` may also be
accessed via the `AddonRegistry`:
----
Imported imported = addonRegistry.getServices(Twitter.class);
Twitter twitter = imported.get();
----
====