public interface Project {
}
public abstract class AbstractProject implements Project {
}
public class ProjectImpl extends AbstractProject {
public ProjectImpl(final File rootDirectory)
{ projectRoot = rootDirectory; }}
@Singleton
public class CurrentProject
@Inject Project project;
should in this case just consider getCurrent() the only injection source because Abstract class cannot be instantatiated nor can the PRojectImpl since it has no-noarg constructor but does have a constructor with arguments.
- clones
-
JBIDE-7950 Abstract classes is being considered injectable
- Closed