org.teatrove.tea.engine
Interface ContextSource
- All Known Subinterfaces:
- DynamicContextSource
- All Known Implementing Classes:
- MergedContextSource
public interface ContextSource
Implementations of this class are responsible for providing context
instances as well as the context type.
- Author:
- Jonathan Colwell
- See Also:
Context
getContextType
Class<?> getContextType()
throws Exception
- Returns:
- the Class of the object returned by createContext.
- Throws:
Exception
createContext
Object createContext(Object param)
throws Exception
- A generic method to create context instances.
- Parameters:
param - engine specific parameter that
may be used to create the context instance
- Throws:
Exception
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.