Examples of ConfigurationCallback


Examples of com.dbxml.util.ConfigurationCallback

      else
         return null;
   }

   public void removeDriverConfig(final String label) {
      driversCfg.processChildren(DRIVER, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String lbl = cfg.getAttribute(LABEL);
            if ( lbl.equals(label) )
               cfg.delete();
         }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      });
   }

   public void addDriverConfig(DriverConfig driverConfig) {
      final String label = driverConfig.getLabel();
      driversCfg.processChildren(DRIVER, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String lbl = cfg.getAttribute(LABEL);
            if ( lbl.equals(label) )
               cfg.delete();
         }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      }
   }

   public String[] listFileSystems() {
      final Set set = new TreeSet();
      filesystemsCfg.processChildren(FILESYSTEM, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            set.add(cfg.getAttribute(LABEL));
         }
      });
      return (String[])set.toArray(EmptyStrings);
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      return result;
   }

   public FileSystemConfig getFileSystem(final String label) {
      final FileSystemConfig fsCfg = new FileSystemConfig();
      filesystemsCfg.processChildren(FILESYSTEM, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String lbl = cfg.getAttribute(LABEL);
            if ( !lbl.equals(label) )
               return;
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      else
         return null;
   }

   public void removeFileSystem(final String label) {
      filesystemsCfg.processChildren(FILESYSTEM, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String lbl = cfg.getAttribute(LABEL);
            if ( lbl.equals(label) )
               cfg.delete();
         }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      });
   }

   public void addFileSystem(FileSystemConfig filesystemConfig) {
      final String label = filesystemConfig.getLabel();
      filesystemsCfg.processChildren(FILESYSTEM, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String lbl = cfg.getAttribute(LABEL);
            if ( lbl.equals(label) )
               cfg.delete();
         }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

   }

   public void setConfig(Configuration config) throws dbXMLException {
      super.setConfig(config);
      config.processChildren(TRIGGER,
         new ConfigurationCallback() {
            public void process(Configuration cfg) {
               String className = cfg.getAttribute(CLASS);
               try {
                  register(ClassResolver.get(className), cfg);
               }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      if ( trg == null )
         throw new TriggerException(FaultCodes.TRG_TRIGGER_NOT_FOUND, "Trigger '"+name+"' does not exist");

      unregister(name);
      config.processChildren(TRIGGER,
         new ConfigurationCallback() {
            public void process(Configuration cfg) {
               try {
                  if ( cfg.getAttribute(NAME).equals(name) )
                     cfg.delete();
               }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

   }

   public void setConfig(Configuration config) {
      this.config = config;
      config.processChildren(SERVICE,
         new ConfigurationCallback() {
            public void process(Configuration cfg) {
               String className = cfg.getAttribute(CLASS);
               try {
                  Object obj = ClassResolver.get(className).newInstance();
                  if ( obj instanceof Service ) {
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

   private static final String CLASS = "class";

   public void setConfig(Configuration config) throws dbXMLException {
      super.setConfig(config);

      config.processChildren(PAGEFILTER, new ConfigurationCallback() {
         public void process(Configuration cfg) {
            String className = cfg.getAttribute(CLASS);
            try {
               PageFilter pageFilter = (PageFilter)ClassResolver.get(className).newInstance();
               if ( pageFilter instanceof Configurable )
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.