-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'lombok-support-module'
- Loading branch information
Showing
73 changed files
with
1,957 additions
and
125 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
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
13 changes: 13 additions & 0 deletions
13
core/src/main/java/com/webcohesion/enunciate/module/ContextModifyingModule.java
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 |
---|---|---|
@@ -1,9 +1,22 @@ | ||
package com.webcohesion.enunciate.module; | ||
|
||
import com.webcohesion.enunciate.javac.decorations.AnnotationMirrorDecoration; | ||
import com.webcohesion.enunciate.javac.decorations.ElementDecoration; | ||
import com.webcohesion.enunciate.javac.decorations.TypeMirrorDecoration; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* Marker interface for designating a module as one that modifies the Enunciate context. | ||
* | ||
* @author Ryan Heaton | ||
*/ | ||
public interface ContextModifyingModule extends EnunciateModule { | ||
|
||
List<ElementDecoration> getElementDecorations(); | ||
|
||
List<TypeMirrorDecoration> getTypeMirrorDecorations(); | ||
|
||
List<AnnotationMirrorDecoration> getAnnotationMirrorDecorations(); | ||
|
||
} |
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
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
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,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="example" basedir="." xmlns:mvn="urn:maven-artifact-ant"> | ||
|
||
<!--global references to other modules--> | ||
<property name="lib.dir" value="${basedir}/../../lib"/> | ||
|
||
<target name="clean"> | ||
<delete dir="target"/> | ||
</target> | ||
|
||
<target name="enunciate"> | ||
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant" loaderref="antlib.loader"> | ||
<classpath> | ||
<fileset dir="${lib.dir}/build"> | ||
<include name="maven-ant-tasks-*.jar"/> | ||
</fileset> | ||
</classpath> | ||
</typedef> | ||
|
||
<mvn:pom id="current.pom" file="${basedir}/pom.xml"/> | ||
<echo message="Current version is: ${current.pom.version}"/> | ||
|
||
<mvn:dependencies pathId="enunciate.classpath"> | ||
<dependency groupId="com.webcohesion.enunciate" artifactId="enunciate-top" version="${current.pom.version}"/> | ||
</mvn:dependencies> | ||
|
||
<mvn:dependencies pathId="project.classpath" pomRefId="current.pom"/> | ||
|
||
<taskdef name="enunciate" classname="com.webcohesion.enunciate.EnunciateTask"> | ||
<classpath refid="enunciate.classpath" /> | ||
</taskdef> | ||
|
||
<enunciate basedir="${basedir}/src/main/java" configFile="${basedir}/enunciate.xml" buildDir="${basedir}/target/enunciate-via-ant"> | ||
<include name="**/*.java" /> | ||
<classpath refid="project.classpath" /> | ||
</enunciate> | ||
</target> | ||
|
||
</project> |
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,96 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.webcohesion.enunciate</groupId> | ||
<artifactId>enunciate-examples</artifactId> | ||
<version>2.7.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>enunciate-examples-jax-rs-jackson-lombok</artifactId> | ||
<name>Enunciate - Jackson 2 API Lombok Example</name> | ||
<description>Enunciate Example: Jackson 2 API Lombok</description> | ||
<packaging>war</packaging> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.webcohesion.enunciate</groupId> | ||
<artifactId>enunciate-maven-plugin</artifactId> | ||
<version>${enunciate.version}</version> | ||
<executions> | ||
<execution> | ||
<id>assemble</id> | ||
<goals> | ||
<goal>assemble</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.webcohesion.enunciate</groupId> | ||
<artifactId>enunciate-lombok</artifactId> | ||
<version>${enunciate.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</plugin> | ||
<plugin> | ||
<!--skip deploy (this is just a test module)--> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
<reporting> | ||
<plugins> | ||
<plugin> | ||
<groupId>com.webcohesion.enunciate</groupId> | ||
<artifactId>enunciate-maven-plugin</artifactId> | ||
<version>${enunciate.version}</version> | ||
</plugin> | ||
</plugins> | ||
</reporting> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.webcohesion.enunciate</groupId> | ||
<artifactId>enunciate-core-annotations</artifactId> | ||
<version>${enunciate.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.sun.jersey</groupId> | ||
<artifactId>jersey-server</artifactId> | ||
<version>${jersey1.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>com.fasterxml.jackson.jaxrs</groupId> | ||
<artifactId>jackson-jaxrs-json-provider</artifactId> | ||
<version>${jackson2.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.servlet</groupId> | ||
<artifactId>javax.servlet-api</artifactId> | ||
|
||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.validation</groupId> | ||
<artifactId>validation-api</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
63 changes: 63 additions & 0 deletions
63
...c/main/java/com/webcohesion/enunciate/examples/jaxrsjackson/genealogy/data/Assertion.java
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,63 @@ | ||
/** | ||
* Copyright © 2006-2016 Web Cohesion ([email protected]) | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.webcohesion.enunciate.examples.jaxrsjackson.genealogy.data; | ||
|
||
/** | ||
* An assertion of a piece of information, usually associated with a source. | ||
* | ||
* @author Ryan Heaton | ||
*/ | ||
public abstract class Assertion { | ||
|
||
private String id; | ||
private String note; | ||
|
||
/** | ||
* The id of the assertion. | ||
* | ||
* @return The id of the assertion. | ||
*/ | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* The id of the assertion. | ||
* | ||
* @param id The id of the assertion. | ||
*/ | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* A note associated with this assertion. | ||
* | ||
* @return A note associated with this assertion. | ||
*/ | ||
public String getNote() { | ||
return note; | ||
} | ||
|
||
/** | ||
* A note associated with this assertion. | ||
* | ||
* @param note A note associated with this assertion. | ||
*/ | ||
public void setNote(String note) { | ||
this.note = note; | ||
} | ||
} |
Oops, something went wrong.