org.nuxeo.core.resources.model.impl
Class SiteControllerRegistry

java.lang.Object
  extended by org.nuxeo.core.resources.model.impl.SiteControllerRegistry
All Implemented Interfaces:
ISiteControllerRegistry

public class SiteControllerRegistry
extends java.lang.Object
implements ISiteControllerRegistry

Default implementation of the controller registry

Author:
Bogdan Stefanescu

Constructor Summary
SiteControllerRegistry()
           
 
Method Summary
 ISiteController getController(ISite site)
          get the controller for the given site
 ISiteController getController(java.lang.String schema)
          get the controller corresponding to the given site type
 void registerController(java.lang.String schema, java.lang.Class klass)
          Register a controller class with the given site type
 void unregisterController(java.lang.String schema)
          Unregister the asscociated controller for the given site type if any
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiteControllerRegistry

public SiteControllerRegistry()
Method Detail

registerController

public void registerController(java.lang.String schema,
                               java.lang.Class klass)
Description copied from interface: ISiteControllerRegistry
Register a controller class with the given site type

Specified by:
registerController in interface ISiteControllerRegistry
Parameters:
schema - the site type (site URI schema)
klass - the controller class

unregisterController

public void unregisterController(java.lang.String schema)
Description copied from interface: ISiteControllerRegistry
Unregister the asscociated controller for the given site type if any

Specified by:
unregisterController in interface ISiteControllerRegistry
Parameters:
schema - the site type (site URI schema)

getController

public ISiteController getController(ISite site)
Description copied from interface: ISiteControllerRegistry
get the controller for the given site

Specified by:
getController in interface ISiteControllerRegistry
Parameters:
site - the site
Returns:
the controller or NullSiteController if no controller was registered

getController

public ISiteController getController(java.lang.String schema)
Description copied from interface: ISiteControllerRegistry
get the controller corresponding to the given site type

Specified by:
getController in interface ISiteControllerRegistry
Parameters:
schema - the site type (site URI schema)
Returns:
the controler or NullSiteController if no one was defined