|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.waffle.testing.registrar.RegistrarHelper
public class RegistrarHelper
Registrar helper class. Retrieves controller instances registered in a Registrar and allows the registration of all the components in a given context level.
| Nested Class Summary | |
|---|---|
static class |
RegistrarHelper.StubServletContext
ServletContext stub that returns a PicoComponentRegistry backed by the context itself. |
static class |
RegistrarHelper.StubServletRequest
HttpServletRequest stub that allows request-scoped components to depend on it |
| Constructor Summary | |
|---|---|
RegistrarHelper()
|
|
| Method Summary | |
|---|---|
void |
componentsFor(java.lang.Class<?> registrarType,
ContextLevel level)
Registers the components for the given registrar and level |
java.lang.Object |
controllerFor(java.lang.Class<?> registrarType,
ContextLevel level,
java.lang.String path)
Returns the registered controller |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegistrarHelper()
| Method Detail |
|---|
public void componentsFor(java.lang.Class<?> registrarType,
ContextLevel level)
registrarType - the Class representing the registrar typelevel - the ContextLevel
public java.lang.Object controllerFor(java.lang.Class<?> registrarType,
ContextLevel level,
java.lang.String path)
registrarType - the Class representing the registrar typelevel - the ContextLevelpath - the path under which the controller is registered
null if not found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||