Examples of IWebApplicationExtension


Examples of net.sourceforge.javautil.web.server.application.ext.IWebApplicationExtension

    for (String name : this.extensions.keySet()) {
      ClassDescriptor cd = ClassCache.getFor(ReflectionUtil.getClass(this.extensions.get(name).className, this.classContext));

      if (this.isExtensionLoaded(cd.getDescribedClass())) continue;
     
      IWebApplicationExtension extension = (IWebApplicationExtension) cd.newInstance(this);
     
      if (!extension.shouldLoad(webXml)) continue;
     
      this.loadedExtensions.add(extension);
      if (this.extensions.get(name).settings != null) {
        cd.deserializeProperties(extension, this.extensions.get(name).settings);
      }
View Full Code Here

Examples of net.sourceforge.javautil.web.server.application.ext.IWebApplicationExtension

      try {
        ClassDescriptor eclass = ClassCache.getFor( classContext.loadClass(match.getName()) );
        if (!this.isExtensionLoaded(eclass.getDescribedClass())) {
         
          boolean load = true;
          IWebApplicationExtension replace = null;
          for (IWebApplicationExtension ext : extensions) {
            if (eclass.getDescribedClass().isAssignableFrom(ext.getClass())) { load = false; break; }
            if (ext.getClass().isAssignableFrom(eclass.getDescribedClass())) {
              replace = ext; break;
            }
          }
          if (!load) continue;
          if (replace != null) { extensions.remove(replace); }
         
          IWebApplicationExtension extension = (IWebApplicationExtension) eclass.newInstance(this);
          extensions.add(extension);
         
          if (this.descriptor != null && this.descriptor.getDescriptorFor(extension) != null) {
            if (this.descriptor.getDescriptorFor(extension).getSettings() != null)
              eclass.deserializeProperties(extension, this.descriptor.getDescriptorFor(extension).getSettings());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.