public class SimplePluginManager<T> extends Object implements PluginManager<T>
构造器和说明 |
---|
SimplePluginManager(Class<? extends T>... classNames) |
SimplePluginManager(String... classNames) |
public SimplePluginManager(String... classNames) throws PluginException
PluginException
public SimplePluginManager(Class<? extends T>... classNames) throws PluginException
PluginException
public T get() throws NoPluginCanWorkException
PluginManager
get
在接口中 PluginManager<T>
NoPluginCanWorkException
- 如果没有任何插件是可用的public List<T> gets()
PluginManager
gets
在接口中 PluginManager<T>
protected void loadPlugin(Class<? extends T> pluginClass) throws PluginException
PluginException
Copyright © 2017. All rights reserved.