Popularity
0.6
Stable
Activity
1.8
-
3
2
2

Description

GhostFish is a fast and lightweight dependency injection container. It can inject application scoped beans in other beans or even non-managed objects.

Most of the work is done by the annotation processor.

Example

@ApplicationScoped public class SampleService {

public String helloWorld() { return "Hello, world!"; }

@PostConstruct private void init() { // code } }

public class MainActivity extends AppCompatActivity {

@Inject private SampleService sampleService; @Override protected void onCreate(Bundle savedInstanceState) { ... TextView textView = findViewById(R.id.message); textView.setText(sampleService.helloWorld()); ... } }

Programming language: Java

android-ghostfish alternatives and related packages

Based on the "Dependency Injection" category

Do you think we are missing an alternative of android-ghostfish or a related project?

Add another 'Dependency Injection' Package

android-ghostfish Recommendations

There are no recommendations yet. Be the first to promote android-ghostfish!

Have you used android-ghostfish? Share your experience. Write a short recommendation and android-ghostfish, you and your project will be promoted on Awesome Android.
Recommend android-ghostfish

Recently added android-ghostfish resources

Do you know of a usefull tutorial, book or news relevant to android-ghostfish?
Be the first to add one!