org.nuxeo.core.resources.model
Interface ISiteControllerRegistry

All Known Implementing Classes:
SiteControllerRegistry

public interface ISiteControllerRegistry

A registry keeping associations between site types (site URI schemas) and controller classes

Author:
Bogdan Stefanescu

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
 

Method Detail

registerController

void registerController(java.lang.String schema,
                        java.lang.Class klass)
Register a controller class with the given site type

Parameters:
schema - the site type (site URI schema)
klass - the controller class

unregisterController

void unregisterController(java.lang.String schema)
Unregister the asscociated controller for the given site type if any

Parameters:
schema - the site type (site URI schema)

getController

ISiteController getController(ISite site)
get the controller for the given site

Parameters:
site - the site
Returns:
the controller or NullSiteController if no controller was registered

getController

ISiteController getController(java.lang.String schema)
get the controller corresponding to the given site type

Parameters:
schema - the site type (site URI schema)
Returns:
the controler or NullSiteController if no one was defined