Package com.volantis.mcs.protocols.gallery.renderers

Examples of com.volantis.mcs.protocols.gallery.renderers.ElementRenderer


     */
    public ElementRenderer getElementRenderer(Class attributesClass)
            throws ProtocolException {

        // First, try to get already instantiated instance of the renderer.
        ElementRenderer renderer = (ElementRenderer)renderersMap.get(attributesClass);
       
        // If it wasn't instantiated yet, do it now.
        if (null == renderer) {
            Class rendererClass = (Class)renderersClassMap.get(attributesClass);
           
View Full Code Here


    // Javadoc inherited
    public XDIMEResult callOpenOnProtocol(XDIMEContextInternal context, XDIMEAttributes attributes)
        throws XDIMEException {
        try {
            ElementRenderer renderer = getElementRenderer(context);
            if (null == renderer){
                // Do fallback if ticker is not supported by the protocol
                return doFallbackOpen(context, attributes);       
            }
            renderer.renderOpen(getProtocol(context), protocolAttributes);
           
            if (!renderer.shouldRenderContents(getProtocol(context), protocolAttributes)) {
                return XDIMEResult.SKIP_ELEMENT_BODY;
            }
        } catch (ProtocolException e) {
            LOGGER.error("rendering-error", getTagName(), e);
View Full Code Here

     }
   
    // Javadoc inherited
     public void callCloseOnProtocol(XDIMEContextInternal context) throws XDIMEException {
         try {
             ElementRenderer renderer = getElementRenderer(context);
             if (null == renderer){
                 // Do fallback if ticker is not supported by the protocol
                 doFallbackClose(context);
                 return;
             }
             renderer.renderClose(getProtocol(context), protocolAttributes);
         } catch (ProtocolException e) {
             LOGGER.error("rendering-error", getTagName(), e);

             throw new XDIMEException(EXCEPTION_LOCALIZER.format(
                 "rendering-error", getTagName()), e);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.protocols.gallery.renderers.ElementRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.