public final class FragmentInvoker extends Object
Objects are immutable.
| Constructor and Description | 
|---|
FragmentInvoker(Object bean,
               Method method,
               String template,
               org.springframework.core.convert.ConversionService conversionService)
Creates a new  
FragmentInvoker. | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
getBean()
The Spring bean that was annotated with  
FragmentRenderer. | 
Method | 
getMethod()
The target method that was annotated with  
Fragment. | 
String | 
getTemplate()
The JSP template that was defined with the  
Fragment, or null if none
 was defined. | 
String | 
invoke(FragmentContext context)
Invokes the fragment renderer. 
 | 
public FragmentInvoker(Object bean, Method method, String template, org.springframework.core.convert.ConversionService conversionService)
FragmentInvoker.bean - target Spring bean to be invokedmethod - target method to be invokedtemplate - JSP template to be used for rendering, or null if none is
            definedconversionService - ConversionService to be used for convertingpublic Object getBean()
FragmentRenderer.public String getTemplate()
Fragment, or null if none
 was defined.public String invoke(FragmentContext context) throws CillaServiceException
context - FragmentContext containing all necessary data for invokingnull.CillaServiceExceptionCopyright © 2009–2016. All rights reserved.