|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.sitebricks.routing.DefaultPageBook
@ThreadSafe public class DefaultPageBook
contains active uri/widget mappings
| Nested Class Summary | |
|---|---|
static class |
DefaultPageBook.InstanceBoundPage
|
static class |
DefaultPageBook.PageTuple
|
| Nested classes/interfaces inherited from interface com.google.sitebricks.routing.PageBook |
|---|
PageBook.Page, PageBook.Routing |
| Constructor Summary | |
|---|---|
DefaultPageBook(com.google.inject.Injector injector)
|
|
| Method Summary | |
|---|---|
DefaultPageBook.PageTuple |
at(String uri,
Class<?> clazz)
Register a page class at the given contextual URI. |
void |
at(String uri,
List<ActionDescriptor> actionDescriptors,
Map<Class<? extends Annotation>,String> methodSet)
|
PageBook.Page |
decorate(Class<?> pageClass)
Indicates that the template for this class is to be inserted into a superclass template using @Decorated |
PageBook.Page |
embedAs(Class<?> clazz,
String as)
Registers a page class as an embeddable. |
PageBook.Page |
forClass(Class<?> pageClass)
Very similar to PageBook.forInstance(Object), except that it takes a class literal instead and does NOT do super crawling. |
PageBook.Page |
forInstance(Object instance)
Similar to PageBook.get(java.lang.String) except that instead of returning a page for a URI, it returns the page matching the class of the provided instance, and uses the instance itself to deliver the page. |
PageBook.Page |
forName(String name)
|
PageBook.Page |
get(String uri)
|
Collection<List<PageBook.Page>> |
getPageMap()
|
PageBook.Page |
nonCompilingGet(String uri)
Same as PageBook.get(java.lang.String) except guaranteed not to trigger a cascading compile of page bricks. |
PageBook.Page |
serviceAt(String uri,
Class<?> pageClass)
Same as PageBook.at(java.lang.String, java.lang.Class>) but registers a headless web service instead. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Inject public DefaultPageBook(com.google.inject.Injector injector)
| Method Detail |
|---|
public Collection<List<PageBook.Page>> getPageMap()
getPageMap in interface PageBook
public PageBook.Page serviceAt(String uri,
Class<?> pageClass)
PageBook
serviceAt in interface PageBook
public DefaultPageBook.PageTuple at(String uri,
Class<?> clazz)
PageBook
at in interface PageBookPageBook.Page representing the given class
without a compiled template applied.
public void at(String uri,
List<ActionDescriptor> actionDescriptors,
Map<Class<? extends Annotation>,String> methodSet)
at in interface PageBook
public PageBook.Page embedAs(Class<?> clazz,
String as)
PageBook
embedAs in interface PageBookas - The annotation name to register this widget as.
Example: "Hello" will make this page class
available for embedding as @Hello.
public PageBook.Page decorate(Class<?> pageClass)
PageBook
decorate in interface PageBookpublic PageBook.Page nonCompilingGet(String uri)
PageBook
nonCompilingGet in interface PageBook@Nullable public PageBook.Page get(String uri)
get in interface PageBookuri - A contextual URI where a page (maybe) registered.
PageBook.Page object thatis capable of rendpublic PageBook.Page forName(String name)
forName in interface PageBook@Nullable public PageBook.Page forInstance(Object instance)
PageBook
forInstance in interface PageBookinstance - An instance of some page registered by an @At
annotation or similar method in this sitebricks app.public PageBook.Page forClass(Class<?> pageClass)
PageBook
forClass in interface PageBook
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||