public class PluginRepositoryLoader extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PluginRepositoryLoader.PluginRepositoryLoaderListener |
Modifier and Type | Method and Description |
---|---|
static void |
addListener(PluginRepositoryLoader.PluginRepositoryLoaderListener listener)
Add a listener
|
static boolean |
failed()
Returns true if an error occurred during the plugin loading process.
|
static PluginDescriptor |
getPlugin(java.lang.String className) |
static java.util.List<PluginDescriptor.PluginOnlineIdent> |
getPluginIdents(RepositoryPreferences.RepositoryInfo repos)
Return the plugins identifier list from a repository URL
|
static java.util.ArrayList<PluginDescriptor> |
getPlugins() |
static java.util.List<PluginDescriptor> |
getPlugins(RepositoryPreferences.RepositoryInfo repos)
Return the plugins list from the specified repository
|
static java.util.List<PluginDescriptor> |
getPlugins(java.lang.String className) |
static boolean |
isBasicLoaded()
Deprecated.
use
isLoaded() instead. |
static boolean |
isDescriptorsLoaded()
Deprecated.
descriptor loading is now done per descriptor when needed
|
static boolean |
isImagesLoaded()
Deprecated.
image loading is now done per descriptor when needed
|
static boolean |
isLoaded() |
static boolean |
isLoading() |
static void |
reload()
Reload all plugins from all active repositories (old list is cleared).
|
static void |
removeListener(PluginRepositoryLoader.PluginRepositoryLoaderListener listener)
Remove a listener
|
static void |
waitBasicLoaded()
Deprecated.
use
waitLoaded() instead. |
static void |
waitDescriptorsLoaded()
Deprecated.
descriptor loading is now done per descriptor when needed
|
static void |
waitLoaded()
Wait until basic informations are loaded.
|
public static java.util.List<PluginDescriptor.PluginOnlineIdent> getPluginIdents(RepositoryPreferences.RepositoryInfo repos)
public static void reload()
waitLoaded()
method to wait for basic data to be loaded.public static java.util.ArrayList<PluginDescriptor> getPlugins()
public static PluginDescriptor getPlugin(java.lang.String className)
public static java.util.List<PluginDescriptor> getPlugins(java.lang.String className)
public static java.util.List<PluginDescriptor> getPlugins(RepositoryPreferences.RepositoryInfo repos)
public static boolean isLoading()
public static boolean isLoaded()
public static void waitLoaded()
@Deprecated public static boolean isBasicLoaded()
isLoaded()
instead.@Deprecated public static boolean isDescriptorsLoaded()
@Deprecated public static boolean isImagesLoaded()
@Deprecated public static void waitBasicLoaded()
waitLoaded()
instead.@Deprecated public static void waitDescriptorsLoaded()
public static boolean failed()
public static void addListener(PluginRepositoryLoader.PluginRepositoryLoaderListener listener)
listener
- public static void removeListener(PluginRepositoryLoader.PluginRepositoryLoaderListener listener)
listener
-