Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.internal.services
Interface ComponentModelSource

All Known Implementing Classes:
  ComponentModelSourceImpl

    public interface ComponentModelSource

Access to component models (as provided via `ComponentInstantiatorSource`).

This is a good candidate to move into the public services package.

Since:
  5.1.0.0

Method Summary
`ComponentModel` | `getModel(java.lang.String componentClassName)` Returns the model for a particular component class name.
`ComponentModel` | `getPageModel(java.lang.String pageName)` Returns the model for a page.

Method Detail

### getModel

    ComponentModel getModel(java.lang.String componentClassName)

  Returns the model for a particular component class name.

  Parameters:
    `componentClassName` - name of component class
  Returns:
    model for component
  Throws:
    `java.lang.IllegalArgumentException` - if component class name does not match a known component

### getPageModel

    ComponentModel getPageModel(java.lang.String pageName)

  Returns the model for a page. The page name is resolved to a component class name.

  Parameters:
    `pageName` - name of page
  Returns:
    the model for the page
  Throws:
    `java.lang.IllegalArgumentException` - if the page name is not a known page name

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.