All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.example.mortar.mortarscreen.WithModule Maven / Gradle / Ivy

The newest version!
package com.example.mortar.mortarscreen;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import mortar.MortarScope;

/**
 * Marks a screen as defining a {@link MortarScope}, with the class of a Dagger module
 * to instantiate via reflection. The module must be a static type with a default
 * constructor. For more flexibility, use {@link WithModuleFactory}.
 *
 * @see ScreenScoper
 */
@Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME)
public @interface WithModule {
  Class value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy