-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from xstefank/issue35
issue35 Do not define JAX-RS annotations on @compensate methods
- Loading branch information
Showing
19 changed files
with
1,128 additions
and
439 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
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
54 changes: 54 additions & 0 deletions
54
...va/org/eclipse/microprofile/lra/participant/InvalidLRAParticipantDefinitionException.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,54 @@ | ||
/* | ||
******************************************************************************* | ||
* Copyright (c) 2019 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* 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 org.eclipse.microprofile.lra.participant; | ||
|
||
/** | ||
* Runtime exception thrown when invalid non-JAX-RS LRA signature definition is detected. | ||
* | ||
* The prohibited valid signatures are: | ||
* Return type: | ||
* - void: successfull execution is mapped to `Compensated` or `Completed` participant statuses, | ||
* error execution is handled by exceptions thrown in the participant method | ||
* - not applicable for `@Status` participant methods | ||
* - {@link org.eclipse.microprofile.lra.annotation.ParticipantStatus} | ||
* - {@link javax.ws.rs.core.Response}: handled similarly as for JAX-RS participant methods | ||
* - java.util.concurrent.CompletionStage: with the parameter of any of the previously | ||
* defined types | ||
* | ||
* Arguments: up to 2 arguments of types in this order: | ||
* - {@link java.net.URI}: representing current LRA context identification | ||
* - {@link java.net.URI}: representing potentional parent LRA context identification | ||
* | ||
* Any other signature will result in deployment / start time of this type. | ||
*/ | ||
public class InvalidLRAParticipantDefinitionException extends RuntimeException { | ||
|
||
public InvalidLRAParticipantDefinitionException(String message) { | ||
super(message); | ||
} | ||
|
||
public InvalidLRAParticipantDefinitionException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public InvalidLRAParticipantDefinitionException(Throwable cause) { | ||
super(cause); | ||
} | ||
} |
52 changes: 0 additions & 52 deletions
52
api/src/main/java/org/eclipse/microprofile/lra/participant/JoinLRAException.java
This file was deleted.
Oops, something went wrong.
68 changes: 0 additions & 68 deletions
68
api/src/main/java/org/eclipse/microprofile/lra/participant/LRAManagement.java
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
api/src/main/java/org/eclipse/microprofile/lra/participant/LRAParticipant.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.