|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.core.resources.model.impl.SiteControllerRegistry
public class SiteControllerRegistry
Default implementation of the controller registry
| 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 |
|---|
public SiteControllerRegistry()
| Method Detail |
|---|
public void registerController(java.lang.String schema,
java.lang.Class klass)
ISiteControllerRegistry
registerController in interface ISiteControllerRegistryschema - the site type (site URI schema)klass - the controller classpublic void unregisterController(java.lang.String schema)
ISiteControllerRegistry
unregisterController in interface ISiteControllerRegistryschema - the site type (site URI schema)public ISiteController getController(ISite site)
ISiteControllerRegistry
getController in interface ISiteControllerRegistrysite - the site
NullSiteController if no controller was registeredpublic ISiteController getController(java.lang.String schema)
ISiteControllerRegistry
getController in interface ISiteControllerRegistryschema - the site type (site URI schema)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||