Examples of ConfigurationCallback


Examples of com.dbxml.util.ConfigurationCallback

      final Map helpMap = new HashMap();
      final List catList = new ArrayList();

      setProperties(cfg);

      cfg.processChildren(CATEGORY, new ConfigurationCallback() {
         public void process(Configuration cc) {
            String name = cc.getAttribute(NAME);
            lastCatName[0] = name;
            String desc = cc.getAttribute(DESCRIPTION);
            catList.add(StringUtilities.leftJustify(name, 15) + " " + desc);

            final StringBuffer sbHelp = new StringBuffer();
            sbHelp.append(cc.getAttribute(DESCRIPTION) + ":\n");
            cc.processChildren(COMMAND, new ConfigurationCallback() {
               public void process(Configuration c) {
                  try {
                     String cName = c.getAttribute(CLASS);
                     Class cl = Class.forName(cName);
                     Command cmd = (Command)cl.newInstance();
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

      // Add the hardcoded help Command
      commands.put("HELP", new CommandInfo("HELP", new Help(helpMap), "", sbHelp.toString()));
   }

   private void setProperties(Configuration cfg) {
      cfg.processChildren(SET, new ConfigurationCallback() {
         public void process(Configuration cc) {
            String name = cc.getAttribute(NAME);
            String value = cc.getAttribute(VALUE);
            try {
               setProperty(name, value);
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

   }

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

Examples of com.dbxml.util.ConfigurationCallback

      this.config = config;

      Configuration colConfig = config.getChild(COLLECTIONS);
      if ( colConfig != null ) {
         colConfig.processChildren(COLLECTION,
            new ConfigurationCallback() {
               public void process(Configuration cfg) throws dbXMLException {
                  Collection col = new Collection((Collection)CollectionManager.this);
                  col.setConfig(cfg);
                  collections.put(col.getName(), col);
               }
View Full Code Here

Examples of com.dbxml.util.ConfigurationCallback

         boolean dropped = collection.drop();
         if ( dropped ) {
            collections.remove(name);
            Configuration colConfig = config.getChild(COLLECTIONS);
            colConfig.processChildren(COLLECTION,
               new ConfigurationCallback() {
                  public void process(Configuration cfg) {
                     try {
                        if ( cfg.getAttribute(NAME).equals(name) )
                           cfg.delete();
                     }
View Full Code Here

Examples of de.iritgo.aktera.authentication.ConfigurationCallback

              new ConfirmationCallback(ConfirmationCallback.INFORMATION,
                      ConfirmationCallback.YES_NO_OPTION, ConfirmationCallback.NO),

              /* 2 */
              new TextInputCallback("Domain: "), /* 3 */
              new ConfigurationCallback(), /* 4 */
              new LoggerCallback(), /* 5 */
              new ServiceManagerCallback()
      }; /* 6 */

      callbackHandler.handle(callbacks);
 
View Full Code Here

Examples of org.apache.xindice.util.ConfigurationCallback

      this.config = config;

      Configuration colConfig = config.getChild(COLLECTIONS);
      if ( colConfig != null ) {
         colConfig.processChildren(COLLECTION,
            new ConfigurationCallback() {
               public void process(Configuration cfg) throws XindiceException {
                  // check for an existing Collection by name and, if found, skip creating a new Collection
                  // else, create a new child Collection, configure it an add it
                  // if the Collection already exists in our collections list,
                  // creating a new one will cause the old one to be discarded
View Full Code Here

Examples of org.apache.xindice.util.ConfigurationCallback

         boolean dropped = collection.drop();
         if ( dropped ) {
            collections.remove(name);
            Configuration colConfig = config.getChild(COLLECTIONS);
            colConfig.processChildren(COLLECTION,
               new ConfigurationCallback() {
                  public void process(Configuration cfg) {
                     try {
                        if ( cfg.getAttribute(NAME).equals(name) )
                           cfg.delete();
                     }
View Full Code Here

Examples of org.apache.xindice.util.ConfigurationCallback

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

      try {
         config.processChildren(INDEX,
            new ConfigurationCallback() {
               public void process(Configuration cfg) {
                  String className = cfg.getAttribute(CLASS);
                  try {
                     register(Class.forName(className), cfg);
                  }
View Full Code Here

Examples of org.apache.xindice.util.ConfigurationCallback

    */
   public boolean drop(final String name) {
      Indexer idx = get(name);
      unregister(name);
      config.processChildren(INDEX,
         new ConfigurationCallback() {
            public void process(Configuration cfg) {
               try {
                  if ( cfg.getAttribute(NAME).equals(name) )
                     cfg.delete();
               }
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.