android-dynamical-loading icon indicating copy to clipboard operation
android-dynamical-loading copied to clipboard

SimplePlugin/SoLibPlugin声明为abstract的目的不太明确

Open Tyeeee opened this issue 9 years ago • 1 comments

如果不想被创建对象的话似乎可以私有构造函数,但我看了构造函数是public,是否需要更正去掉abstract?

Tyeeee avatar Jan 06 '17 12:01 Tyeeee

@WorkerThread public abstract B createBehavior(Context context) throws Exception;

是不是这才是你的想要在Plugin类中定义的,和创建对象没什么关系。

不过你现在写了个默认实现 @WorkerThread public B createBehavior(Context context) throws Exception { return null; }

Tyeeee avatar Jan 06 '17 12:01 Tyeeee