org.directwebremoting.impl
Class DefaultHubBuilder

java.lang.Object
  extended by org.directwebremoting.impl.DefaultHubBuilder
All Implemented Interfaces:
HubFactory.HubBuilder

public class DefaultHubBuilder
extends java.lang.Object
implements HubFactory.HubBuilder

A HubBuilder that creates DefaultHubs.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultHubBuilder()
           
 
Method Summary
 Hub get()
          Accessor for the current Hub
 Hub get(javax.servlet.ServletContext servletContext)
          Accessor for the current Hub.
 void set(javax.servlet.ServletContext context)
          Make the current webapp know what the current config/context is.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHubBuilder

public DefaultHubBuilder()
Method Detail

set

public void set(javax.servlet.ServletContext context)
Description copied from interface: HubFactory.HubBuilder
Make the current webapp know what the current config/context is. This method is only for use internally to DWR.

Specified by:
set in interface HubFactory.HubBuilder
Parameters:
context - The servlet context

get

public Hub get()
Description copied from interface: HubFactory.HubBuilder
Accessor for the current Hub

Specified by:
get in interface HubFactory.HubBuilder
Returns:
The Hub that is associated with this web application

get

public Hub get(javax.servlet.ServletContext servletContext)
Description copied from interface: HubFactory.HubBuilder
Accessor for the current Hub. For some setups DWR may not be able to discover the correct environment (i.e. ServletContext), so we need to tell it.

Specified by:
get in interface HubFactory.HubBuilder
Parameters:
servletContext - The web application environment
Returns:
The Hub that is associated with this web application

Copyright ¬ 2005