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.plastic
Interface InstanceContext

All Known Implementing Classes:
  ClassInstantiatorImpl

    public interface InstanceContext

Defines per-instance context values for a transformed PlasticClass.

Method Summary
`
`<T> T`
` | `get(java.lang.Class<T> valueType)` Gets an instance context value which is identified by type.
`java.lang.Class<?>` | `getInstanceType()` Returns the type of the instance created with this context.

Method Detail

### getInstanceType

    java.lang.Class<?> getInstanceType()

  Returns the type of the instance created with this context. This is most often of interest to implementations of `ComputedValue`.

### get

    <T> T get(java.lang.Class<T> valueType)

  Gets an instance context value which is identified by type.

  Throws:
    `java.lang.IllegalArgumentException` - if no such value is available in the context.

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.