Interface DeploymentContext
public interface DeploymentContext
The
DeploymentContext allows to access useful information at deployment time.
It is the responsibility of the implementation to give access to the component of its choice (ex: api definition, services components, ...).- Author:
- Jeoffrey HAEYAERT (jeoffrey.haeyaert at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescription<T> TgetComponent(Class<T> componentClass) Returns the component corresponding to the specifiedcomponentClass.io.gravitee.el.TemplateEngineGet theTemplateEnginethat can be used to evaluate EL expressions.
-
Method Details
-
getComponent
Returns the component corresponding to the specifiedcomponentClass.- Type Parameters:
T- the expected instance type.- Parameters:
componentClass- theClassof the expected component to retrieve.- Returns:
- the component or
nullif no component found.
-
getTemplateEngine
io.gravitee.el.TemplateEngine getTemplateEngine()Get theTemplateEnginethat can be used to evaluate EL expressions.- Returns:
- the El
TemplateEngine.
-