mirror of
https://gitee.com/replugin/RePlugin.git
synced 2024-12-02 11:48:02 +08:00
* add param project to injector
This commit is contained in:
parent
2f4f7d55a4
commit
831d895ae2
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
/**
|
||||
* 注入器名称
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user