org.apache.tapestry5.services
Interface EnvironmentalAccess<T>

Type Parameters:
T -

public interface EnvironmentalAccess<T>

Provides efficient, cached access to an environmental object.

Since:
5.0.19
See Also:
Environment.getAccess(Class)

Method Summary
 T peek()
          Peeks at the current top of the configured type's stack.
 T peekRequired()
          Peeks at the current top of the configured type's stack.
 

Method Detail

peek

T peek()
Peeks at the current top of the configured type's stack.

Returns:
current value of type, or null.

peekRequired

T peekRequired()
Peeks at the current top of the configured type's stack.

Returns:
the current value
Throws:
RuntimeException - if no environmental of that type has been added


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.