{"id":21100282,"url":"https://github.com/pscheidl/fortee","last_synced_at":"2025-07-27T12:11:20.436Z","repository":{"id":57722194,"uuid":"87506336","full_name":"Pscheidl/FortEE","owner":"Pscheidl","description":"Jakarta EE / Java EE fault-tolerance guard leveraging the Optional pattern. Its power lies in its simplicity. ","archived":false,"fork":false,"pushed_at":"2024-03-01T17:37:37.000Z","size":167,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T04:12:44.624Z","etag":null,"topics":["annotations","cdi-extension","fault-tolerance","jakartaee","java","javaee","simplicity"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pscheidl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-07T05:03:07.000Z","updated_at":"2024-03-01T17:37:38.000Z","dependencies_parsed_at":"2024-11-14T21:30:59.682Z","dependency_job_id":null,"html_url":"https://github.com/Pscheidl/FortEE","commit_stats":null,"previous_names":["pscheidl/benguard"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2FFortEE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2FFortEE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2FFortEE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2FFortEE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pscheidl","download_url":"https://codeload.github.com/Pscheidl/FortEE/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254576299,"owners_count":22094332,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["annotations","cdi-extension","fault-tolerance","jakartaee","java","javaee","simplicity"],"created_at":"2024-11-19T23:09:11.691Z","updated_at":"2025-05-16T17:30:28.393Z","avatar_url":"https://github.com/Pscheidl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FortEE\n\n[![Build Status](https://travis-ci.org/Pscheidl/FortEE.svg?branch=master)](https://travis-ci.org/Pscheidl/FortEE)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/cab8a9609a9a4362a18c1ff3f759cf02)](https://www.codacy.com/app/pavel.junior/FortEE?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=Pscheidl/FortEE\u0026amp;utm_campaign=Badge_Grade)\n\nFortEE is a Jakarta EE / Java EE fault-tolerance guard leveraging the Optional pattern. Its power lies in its simplicity. On methods returning Optional\u003cT\u003e, a @Failsafe annotation can be placed. Any uncaught exceptional states are then converted into an Optional.empty(). Synchronous or asynchronous invocation is not enforced.\n\n- Simple and fast\n- Startup-time check\n- Tiny in size\n- Compatible with Jakarta EE 8, requires Java EE 7\n\n\n## Maven\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.pscheidl\u003c/groupId\u003e\n    \u003cartifactId\u003efortee\u003c/artifactId\u003e\n    \u003cversion\u003e1.2.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n## Gradle\n```groovy\ncompile 'com.github.pscheidl:fortee:1.2.0'\n```\n**Release notes**\n- Released on 14th of June 2020\n- The `@Semisafe` annotation ignored exceptions not only listed as a value of that annotation,\nbut also exceptions directly specified in the mehod's definition, e.g. `public Optional\u003cString\u003e doSomething() throws UnsupportedOperationException` will let the\n`UnsupportedOperationException` through.\n- Test suite ran against WildFly 20.0.0-Final.\n\n## How it works ?\n\nFor more information, please visit [FortEE wikipedia](https://github.com/Pscheidl/FortEE/wiki). \n\nGuard against all checked and unchecked exceptions.\n\n```java\n@Named\npublic class ServiceImplementation implements SomeService {\n\n// Will return Optional.empty()\n@Failsafe\npublic Optional\u003cString\u003e maybeFail(){\n  throw new RuntimeException(\"Failed on purpose\");\n}\n\n}\n```\n\nGuard against all exceptions but the declared ones, or the ones listed in the `@Semisafe` annotation..\n\n```java\n@Named\npublic class ServiceImplementation implements SomeService {\n\n// Will end with RuntimeException\n@Semisafe\npublic Optional\u003cString\u003e maybeFail() throws RuntimeException {\n  throw new RuntimeException(\"Failed on purpose\");\n}\n\n}\n```\n\nAlternatively, the exception to be let through can be specified inside the `@Semisafe` annotation.\n\n```java\n@Named\npublic class ServiceImplementation implements SomeService {\n\n// Will end with RuntimeException\n@Semisafe({RuntimeException.class})\npublic Optional\u003cString\u003e maybeFail(){\n  throw new RuntimeException(\"Failed on purpose\");\n}\n\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpscheidl%2Ffortee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpscheidl%2Ffortee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpscheidl%2Ffortee/lists"}