org.jdesktop.wonderland.client.login
Class PluginFilter.NoPluginFilter

java.lang.Object
  extended by org.jdesktop.wonderland.client.login.PluginFilter.NoPluginFilter
All Implemented Interfaces:
PluginFilter
Enclosing interface:
PluginFilter

public static class PluginFilter.NoPluginFilter
extends java.lang.Object
implements PluginFilter

Filter that never loads plugins


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jdesktop.wonderland.client.login.PluginFilter
PluginFilter.DefaultPluginFilter, PluginFilter.NoPluginFilter
 
Constructor Summary
PluginFilter.NoPluginFilter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginFilter.NoPluginFilter

public PluginFilter.NoPluginFilter()
Method Detail

shouldDownload

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

Specified by:
shouldDownload in interface PluginFilter
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

public boolean shouldInitialize(ServerSessionManager sessionManager,
                                ClientPlugin plugin)
Description copied from interface: PluginFilter
Return true to intiialize the given plugin, or false not to.

Specified by:
shouldInitialize in interface PluginFilter
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