Package org.apache.struts.config

Examples of org.apache.struts.config.PlugInConfig


        if (log.isDebugEnabled()) {
            log.debug("Initializing module path '" + config.getPrefix() + "' plug ins");
        }

        PlugInConfig plugInConfigs[] = config.findPlugInConfigs();
        PlugIn plugIns[] = new PlugIn[plugInConfigs.length];

        getServletContext().setAttribute(Globals.PLUG_INS_KEY + config.getPrefix(), plugIns);
        for (int i = 0; i < plugIns.length; i++) {
            try {
View Full Code Here


            ModuleConfigFactory.createFactory().createModuleConfig(moduleName);

        context.setAttribute(Globals.MODULE_KEY + moduleName, moduleConfig);

        // Set tiles plugin
        PlugInConfig pluginConfig = new PlugInConfig();
        pluginConfig.setClassName("org.apache.struts.tiles.TilesPlugin");

        pluginConfig.addProperty(
            "moduleAware",
            (moduleAware == true ? "true" : "false"));

        pluginConfig.addProperty(
            "definitions-config",
            "/org/apache/struts/tiles/config/" + configFileName);

        moduleConfig.addPlugInConfig(pluginConfig);
        return moduleConfig;
View Full Code Here

     * Fake call to init module plugins
     * @param moduleConfig
     */
  public void initModulePlugIns( ModuleConfig moduleConfig)
  {
  PlugInConfig plugInConfigs[] = moduleConfig.findPlugInConfigs();
  PlugIn plugIns[] = new PlugIn[plugInConfigs.length];

  context.setAttribute(Globals.PLUG_INS_KEY + moduleConfig.getPrefix(), plugIns);
  for (int i = 0; i < plugIns.length; i++) {
      try {
View Full Code Here

    protected void initModulePlugIns(ModuleConfig config)
    throws ServletException
    {
        boolean needTilesProcessor = false;
        PlugInConfig plugInConfigs[] = config.findPlugInConfigs();
        for ( int i = 0; !needTilesProcessor && i < plugInConfigs.length; i++ )
        {
            Class pluginClass = null;
            try
            {
View Full Code Here

TOP

Related Classes of org.apache.struts.config.PlugInConfig

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.