-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
82 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
== parser-java | ||
:idprefix: id_ | ||
|
||
This addon provides *standalone* functionality, and *exports services* for use in other addons. | ||
|
||
=== Depends on | ||
|
||
[options="header"] | ||
|=== | ||
|Addon |Exported |Optional | ||
|
||
|resources | ||
|no | ||
|yes | ||
|
||
|
||
|projects | ||
|no | ||
|yes | ||
|
||
|ui-spi | ||
|no | ||
|yes | ||
|
||
|org.jboss.forge.furnace:container-cdi | ||
|no | ||
|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] | ||
---- | ||
<dependency> | ||
<groupId>org.jboss.forge.addon</groupId> | ||
<artifactId>parser-java</artifactId> | ||
<classifier>forge-addon</classifier> | ||
<version>${version}</version> | ||
</dependency> | ||
---- | ||
|
||
== Features | ||
|
||
Injecting JavaSourceFactory:: Allows creation and parsing of Java sources | ||
|
||
[source,java] | ||
---- | ||
@Inject | ||
JavaSourceFactory factory; | ||
JavaClass myClass = factory.parse(JavaClass.class, "public class MyClass{}"); | ||
---- | ||
|
||
Facets addon integration:: Read and persist java sources easily in your project | ||
|
||
[source,java] | ||
---- | ||
Project project = ... | ||
JavaSourceFacet facet = project.getFacet(JavaSourceFacet.class); | ||
... | ||
---- | ||
|
||
Resources addon integration:: Custom resources for dealing with java types, methods and fields | ||
|
||
ui-spi integration:: Registers the _InputType.JAVA_CLASS_PICKER_ for UIInput<JavaResource> injections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters