Package com.volantis.mcs.context

Examples of com.volantis.mcs.context.HandlerScriptRegistry


            // 'listener' element.
            if (logger.isDebugEnabled()) {
                logger.debug("Registering handler id '" + id + "' with script '"
                        + script + "'");
            }
            HandlerScriptRegistry scriptRegistry =
                    pageContext.getHandlerScriptRegistry();
            scriptRegistry.addScriptById(id, scriptReference);
        }
    }
View Full Code Here


        // Since it must be a fragment id all we need to do is remove the #.
        String handlerId = handlerAttribute.substring(1);
        // Then we look up the handler to see if it has been defined. If it
        // has not this is an error.
        final MarinerPageContext pageContext = getPageContext(context);
        HandlerScriptRegistry scriptRegistry =
                pageContext.getHandlerScriptRegistry();
        ScriptAssetReference handlerScript =
                scriptRegistry.getScriptById(handlerId);
        if (handlerScript == null) {
            throw new IllegalArgumentException("Handler attribute " +
                    handlerAttribute + "must refer to a defined handler " +
                    "element");
        }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.context.HandlerScriptRegistry

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.