java.lang.Object
io.jstach.opt.dropwizard.JStachioViewRenderer
- All Implemented Interfaces:
- io.dropwizard.views.common.ViewRenderer
Dropwizard view support. Doing the below will automatically pick up JStachio
 
 bootstrap.addBundle(new ViewBundle<>());
  
 JStachio jstachio = ...; // See JStachioFactory
 bootstrap.addBundle(new ViewBundle<>(new JStachioViewRenderer(jstachio)));
  - Author:
- agentgt
- 
Constructor SummaryConstructorsConstructorDescriptionServiceLoader will call thisJStachioViewRenderer(JStachio jstachio) Programmatically create the renderer with the given jstachio.
- 
Method SummaryModifier and TypeMethodDescriptionvoidfinal StringbooleanisRenderable(io.dropwizard.views.common.View view) protected JStachiojstachio()Internal getter for the jstachio backing this renderervoidrender(io.dropwizard.views.common.View view, Locale locale, OutputStream output) 
- 
Constructor Details- 
JStachioViewRendererpublic JStachioViewRenderer()ServiceLoader will call this
- 
JStachioViewRendererProgrammatically create the renderer with the given jstachio.- Parameters:
- jstachio- a jstachio instance.
- See Also:
 
 
- 
- 
Method Details- 
isRenderable- Specified by:
- isRenderablein interface- io.dropwizard.views.common.ViewRenderer
 
- 
renderpublic void render(io.dropwizard.views.common.View view, Locale locale, OutputStream output) throws IOException - Specified by:
- renderin interface- io.dropwizard.views.common.ViewRenderer
- Throws:
- IOException
 
- 
jstachioInternal getter for the jstachio backing this renderer- Returns:
- not null
- Throws:
- NullPointerException- if jstachio has not been set yet.
 
- 
configure- Specified by:
- configurein interface- io.dropwizard.views.common.ViewRenderer
 
- 
getConfigurationKey- Specified by:
- getConfigurationKeyin interface- io.dropwizard.views.common.ViewRenderer
 
 
-