Coverage Report - org.apache.tapestry.IJSONRender
 
Classes in this File Line Coverage Branch Coverage Complexity
IJSONRender
N/A
N/A
1
 
 1  
 // Copyright Mar 18, 2006 The Apache Software Foundation
 2  
 //
 3  
 // Licensed under the Apache License, Version 2.0 (the "License");
 4  
 // you may not use this file except in compliance with the License.
 5  
 // You may obtain a copy of the License at
 6  
 //
 7  
 //     http://www.apache.org/licenses/LICENSE-2.0
 8  
 //
 9  
 // Unless required by applicable law or agreed to in writing, software
 10  
 // distributed under the License is distributed on an "AS IS" BASIS,
 11  
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
 // See the License for the specific language governing permissions and
 13  
 // limitations under the License.
 14  
 package org.apache.tapestry;
 15  
 
 16  
 import org.apache.tapestry.json.IJSONWriter;
 17  
 
 18  
 
 19  
 /**
 20  
  * Defines a component/page/class that is capable of rendering json
 21  
  * responses via {@link IJSONWriter} writers.
 22  
  * 
 23  
  * @author jkuhnert
 24  
  */
 25  
 public interface IJSONRender
 26  
 {
 27  
 
 28  
     /**
 29  
      * Renders a JSON object response back to the client. It should be assumed that
 30  
      * if this method is called on a component it or one of the components it contains
 31  
      * has been requested explicitly for rendering.
 32  
      * 
 33  
      * @param writer
 34  
      *          The json object writer used to write valid JSON responses.
 35  
      * @param cycle
 36  
      *          Contextual request object.
 37  
      */
 38  
     void renderComponent(IJSONWriter writer, IRequestCycle cycle);
 39  
 }