org.jdesktop.wonderland.client.login
Interface PluginFilter

All Known Implementing Classes:
PluginFilter.DefaultPluginFilter, PluginFilter.NoPluginFilter

public interface PluginFilter

Interface for selecting what plugins get loaded by a ServerSessionManager.

Author:
jkaplan

Nested Class Summary
static class PluginFilter.DefaultPluginFilter
          Filter that always loads all plugins
static class PluginFilter.NoPluginFilter
          Filter that never loads plugins
 
Method Summary
 boolean shouldDownload(ServerSessionManager sessionManager, JarURI uri)
          Return true to load the given plugin jar file, or false not to.
 boolean shouldInitialize(ServerSessionManager sessionManager, ClientPlugin plugin)
          Return true to intiialize the given plugin, or false not to.
 

Method Detail

shouldDownload

boolean shouldDownload(ServerSessionManager sessionManager,
                       JarURI uri)
Return true to load the given plugin jar file, or false not to. This prevents unwanted jar files from being downloaded.

Parameters:
sessionManager - the sessionManager that wants to load plugins
uri - the jar URL to download
Returns:
true to download the jar, or false not to

shouldInitialize

boolean shouldInitialize(ServerSessionManager sessionManager,
                         ClientPlugin plugin)
Return true to intiialize the given plugin, or false not to.

Parameters:
sessionManager - the session manager that wants to load plugins
plugin - the plugin to load
Returns:
true to initialize the plugin, or false not to


Open Wonderland - http://openwonderland.org