Created
July 14, 2018 12:38
-
-
Save guliash/19169282ac1757a1840dcee6595da48c to your computer and use it in GitHub Desktop.
Fake components
This file contains hidden or 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
package com.guliash.dagger; | |
import dagger.Component; | |
import javax.inject.Scope; | |
public class Main { | |
public static void main(String[] args) { | |
} | |
} | |
@Scope | |
@interface ScopeA {} | |
@ScopeA | |
@Component | |
interface ComponentA extends MaskComponentA { | |
} | |
interface MaskComponentA { | |
} | |
@Scope | |
@interface ScopeB {} | |
interface MaskComponentB { | |
} | |
@ScopeB | |
@Component | |
interface ComponentB extends MaskComponentB { | |
} | |
@Scope | |
@interface ScopeC {} | |
@ScopeC | |
@Component(dependencies = {MaskComponentA.class, MaskComponentB.class}) | |
interface ComponentC {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment