Package org.apache.struts.config

Examples of org.apache.struts.config.PlugInConfig


     * Return the configured plug-in actions for this module.  If there
     * are none, a zero-length array is returned.
     */
    public PlugInConfig[] findPlugInConfigs() {

        PlugInConfig results[] = new PlugInConfig[plugIns.size()];
        return ((PlugInConfig[]) plugIns.toArray(results));

    }
View Full Code Here


        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

        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

     * Return the configured plug-in actions for this module.  If there
     * are none, a zero-length array is returned.
     */
    public PlugInConfig[] findPlugInConfigs() {

        PlugInConfig results[] = new PlugInConfig[plugIns.size()];
        return ((PlugInConfig[]) plugIns.toArray(results));

    }
View Full Code Here

     * otherwise, log error messages and return <code>false</code>.</p>
     */
    protected boolean verifyPlugInConfigs() {

        boolean ok = true;
        PlugInConfig pics[] = config.findPlugInConfigs();
        for (int i = 0; i < pics.length; i++) {
            String className = pics[i].getClassName();
            if (className == null) {
                log(servlet.getInternal().getMessage
                    ("verifyPlugInConfigs.missing"));
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 config
     */
  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

    if (!isXStrutsPlugin) {
      throw new SalamandraConfigException("Salamandra PlugIn not found.");
    }

    PlugInConfig plugInConfig = config.findPlugInConfigs()[i];
   
    Map parameter = plugInConfig.getProperties();
   
    // get the configuration file name
    String pathconfig = (String) parameter.get(SalamandraPlugin.PARAM_CONFIG);

    // se non esiste esco dal metodo
View Full Code Here

        super.initModulePlugIns(moduleConfig);
        updateController(moduleConfig);
    }

    private static PlugInConfig createPlugInConfig() {
        PlugInConfig plugInConfig = new PlugInConfig();
        plugInConfig.setClassName(PLUGIN_CLASS_NAME);
        return plugInConfig;
    }
View Full Code Here

        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

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.