* add param project to injector

This commit is contained in:
李樟取 2017-07-02 23:18:44 +08:00
parent 2f4f7d55a4
commit 831d895ae2
2 changed files with 14 additions and 0 deletions

View File

@ -17,13 +17,21 @@
package com.qihoo360.replugin.gradle.plugin.injector
import org.gradle.api.Project
/**
* @author RePlugin Team
*/
public abstract class BaseInjector implements IClassInjector {
protected Project project
@Override
public Object name() {
return getClass().getSimpleName()
}
public void setProject(Project project) {
this.project = project;
}
}

View File

@ -18,12 +18,18 @@
package com.qihoo360.replugin.gradle.plugin.injector
import javassist.ClassPool
import org.gradle.api.Project
/**
* @author RePlugin Team
*/
interface IClassInjector {
/**
* project对象
* @param project
*/
void setProject(Project project)
/**
*
*/