{"id":18342388,"url":"https://github.com/johncarl81/transfuse","last_synced_at":"2025-04-05T16:08:06.894Z","repository":{"id":1688400,"uuid":"2416378","full_name":"johncarl81/transfuse","owner":"johncarl81","description":":syringe: Transfuse - A Dependency Injection and Integration framework for Google Android","archived":false,"fork":false,"pushed_at":"2021-07-19T22:17:24.000Z","size":13664,"stargazers_count":221,"open_issues_count":30,"forks_count":28,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-29T15:07:06.111Z","etag":null,"topics":["android","android-architecture","annotation-processor","dependency-injection","framework","java"],"latest_commit_sha":null,"homepage":"http://androidtransfuse.org/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johncarl81.png","metadata":{"files":{"readme":"README.asciidoc","changelog":"CHANGELOG.asciidoc","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-09-19T15:57:21.000Z","updated_at":"2025-03-23T00:49:14.000Z","dependencies_parsed_at":"2022-08-06T11:00:34.101Z","dependency_job_id":null,"html_url":"https://github.com/johncarl81/transfuse","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncarl81%2Ftransfuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncarl81%2Ftransfuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncarl81%2Ftransfuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johncarl81%2Ftransfuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johncarl81","download_url":"https://codeload.github.com/johncarl81/transfuse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361689,"owners_count":20926643,"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":["android","android-architecture","annotation-processor","dependency-injection","framework","java"],"created_at":"2024-11-05T20:30:02.173Z","updated_at":"2025-04-05T16:08:06.870Z","avatar_url":"https://github.com/johncarl81.png","language":"Java","funding_links":[],"categories":["Libs","IoC","Annotation"],"sub_categories":["\u003cA NAME=\"Injector\"\u003e\u003c/A\u003eInjector"],"readme":"= image:http://androidtransfuse.org/images/icon.png[Transfuse] Transfuse\n\nimage:https://badges.gitter.im/johncarl81/transfuse.svg[link=\"https://gitter.im/johncarl81/transfuse?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge\"]\nimage:https://travis-ci.org/johncarl81/transfuse.png?branch=master[\"Build Status\", link=\"https://travis-ci.org/johncarl81/transfuse\"]\nimage:https://maven-badges.herokuapp.com/maven-central/org.androidtransfuse/transfuse-api/badge.svg[\"Maven Central\", link=\"https://maven-badges.herokuapp.com/maven-central/org.androidtransfuse/transfuse-api\"]\n\nTransfuse is a Java Dependency Injection (DI) and integration library geared specifically for the Google Android API.\n\nThere are several key features that make Transfuse a great framework to use with Android:\n\n* Dependency Injection - Transfuse implements the http://www.jcp.org/en/jsr/detail?id=330[JSR-330] standard annotations and passes the included https://github.com/johncarl81/transfuse/blob/master/transfuse/src/test/java/org/androidtransfuse/JSR330TckTest.java[unit tests].\n* POJO Components - Transfuse gives users the ability to develop Android components in Plain Old Java Objects (POJO), enabling a testable, decoupled and flexible style.\n* Compile Time Code Generation - Transfuse is remarkably small, lightweight and fast due to the technique of generating supporting code at compile time.\n* Manifest Management - Transfuse manages the Android Manifest, eliminating the duplicated effort of declaring and registering components.\n\nAll of these features help eliminate boilerplate plumbing code and make Android applications much easier to write.\n\n=== Example\n\nUsing Transfuse, an Android Activity looks like the following:\n\n[source,java]\n--\n@Activity(label = \"@string/app_name\")\n@Layout(R.layout.main)\npublic class HelloTransfuse {\n\n    @Inject @View(R.id.textview)\n    TextView textView;\n\n    @Inject @Resource(R.string.hello)\n    String helloText;\n\n    @OnCreate\n    public void hello() {\n        textView.setText(helloText);\n    }\n}\n--\n\n\n\u003c1\u003e Now, Activities no longer extend the android.app.Activity class.\n\u003c2\u003e The Android Activity lifecycle is handled via lightweight events.\nAny component within the injection graph may define event methods to be called during those phases of the lifecycle.\n\u003c3\u003e All specialty injections, such as injecting View elements, are designated with qualifier injections (@View, @Resource, etc.).\n\u003c4\u003e Activity Manifest metadata, such as the label, are now defined on the class level instead of the AndroidManifest.xml file.\nThis puts all the relevant information regarding the Activity in one place.\nTransfuse handles the job of registering the Activity and all the associated metadata in the AndroidManifest.xml file.\n\nInterested?  Check out  http://androidtransfuse.org/[the website] for details.\n\n=== Download\n\nYou may download Transfuse as a Maven dependency:\n\n[source,xml]\n--\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.androidtransfuse\u003c/groupId\u003e\n    \u003cartifactId\u003etransfuse\u003c/artifactId\u003e\n    \u003cversion\u003e${transfuse.version}\u003c/version\u003e\n    \u003cscope\u003eprovided\u003c/scope\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.androidtransfuse\u003c/groupId\u003e\n    \u003cartifactId\u003etransfuse-api\u003c/artifactId\u003e\n    \u003cversion\u003e${transfuse.version}\u003c/version\u003e\n\u003c/dependency\u003e\n--\n\nor Gradle:\n[source,groovy]\n--\napt \"org.androidtransfuse:transfuse:${transfuseVersion}\"\ncompile \"org.androidtransfuse:transfuse-api:${transfuseVersion}\"\n--\n\nOr from http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.androidtransfuse%22[Maven Central].\n\n== License\n----\nCopyright 2011-2015 John Ericksen\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n----\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncarl81%2Ftransfuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohncarl81%2Ftransfuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohncarl81%2Ftransfuse/lists"}