Examples of Resolver


Examples of abbot.script.Resolver

        return getContext().getComponentReferences();
    }

    /** From abbot.Resolver. */
    public String getContext(Step step) {
        Resolver r = getContext();
        if (r != null)
            return r.getContext(step);
        return "unknown";
    }
View Full Code Here

Examples of com.dbxml.labrador.Resolver

         // Get the Describer for the specified type
         Describer describer = broker.getDescriber(type);

         // Retrieve the best Resolver
         Resolver resolver = broker.getBestResolver(id);

         // Retrieve the Discovery interface from the Resolver
         Discovery discovery = resolver.getDiscovery(id);

         // Stream the description to the StringWriter
         StringWriter sw = new StringWriter(BUFFER_SIZE);
         describer.describe(id, discovery, sw);
         result = sw.toString();
View Full Code Here

Examples of com.dotcms.repackage.org.xbill.DNS.Resolver

import com.dotcms.repackage.org.xbill.DNS.Type;

public class DNSUtil {
  public static String reverseDns(String hostIp) throws IOException {
    Record opt = null;
    Resolver res = new ExtendedResolver();
    res.setTimeout(10);
    Name name = ReverseMap.fromAddress(hostIp);
    int type = Type.PTR;
    int dclass = DClass.IN;
    Record rec = Record.newRecord(name, type, dclass);
    Message query = Message.newQuery(rec);
    Message response = res.send(query);

    Record[] answers = response.getSectionArray(Section.ANSWER);
    if (answers.length == 0)
      return hostIp;
    else
View Full Code Here

Examples of com.dp4j.ast.Resolver

        encClass = (TypeElement) e.getEnclosingElement();
        PackageElement packageOf = elementUtils.getPackageOf(e);
        List<? extends Element> pkgClasses = packageOf.getEnclosedElements();

        rs = new Resolver(elementUtils, trees, tm, encClass, typeUtils, symTable, pkgClasses);

        final JCMethodDecl tree = (JCMethodDecl) elementUtils.getTree(e);

        thisExp = tm.This((Type) encClass.asType());
View Full Code Here

Examples of com.dyuproject.ioc.Resource.Resolver

                    URLResolver.DEFAULT.resolve(resource, context);
                    return;
                }
        }
        String type = path.substring(0, idx).trim();
        Resolver resolver = getResolver(type);
        if(resolver==null)
            FileResolver.DEFAULT.resolve(resource, context);
        else
        {
            path = path.substring(idx+1).trim();
            if(path.length()==0)
                throw new IOException("invalid resource: " + path);
           
            resource.setPath(path);
            resolver.resolve(resource, context);
        }
    }
View Full Code Here

Examples of com.feth.play.module.pa.PlayAuthenticate.Resolver

public class Global extends GlobalSettings {

  @Override
  public void onStart(final Application app) {
    PlayAuthenticate.setResolver(new Resolver() {

      @Override
      public Call login() {
        // Your login page
        return controllers.routes.Application.login();
View Full Code Here

Examples of com.google.gwt.uibinder.rebind.Tokenator.Resolver

    return tokenator.nextToken(placeholder);
  }

  protected String stripTokens(String value) {
    String rtn = Tokenator.detokenate(value, new Resolver() {
      public String resolveToken(String token) {
        return "";
      }
    });
    return rtn;
View Full Code Here

Examples of com.lotus.sametime.lookup.Resolver

            }
        }
    }

    private void resolve() throws CruiseControlException {
        Resolver resolver = lookupService.createResolver(false, false, this.isResolveUsers(), this.isResolveGroups());
        resolver.addResolveListener(this);
       
        try {
            this.recipientUserSet = new HashSet();
            this.recipientGroupSet = new HashSet();
            this.resolvedNameSet = new HashSet();
       
            if (LOG.isDebugEnabled()) {
                LOG.debug("resolving: " + this.usernamesToResolveSet);
            }
            resolver.resolve(
               (String[]) this.usernamesToResolveSet.toArray(new String[this.usernamesToResolveSet.size()]));
       
            // how long do we wait to resolve?
            boolean bored = false;
            long waitStart = System.currentTimeMillis();
            while (!this.isResolvedAllUsersAndGroups() && !bored && !this.isResolveError()) {
                try {
                    Thread.sleep(this.getSleepMillis());
                } catch (InterruptedException ex) {
                    throw new RuntimeException("sleep interrupted: " + ex);
                }
                bored = System.currentTimeMillis() - waitStart > this.getTimeoutMillis();
            }
            if (this.resolveFailMessage != null
                && RESOLVE_FAIL_ERROR.equalsIgnoreCase(this.getHandleResolveFails())) {
                throw new CruiseControlException(this.resolveFailMessage);
            }
            if (this.resolveConflictMessage != null
                && RESOLVE_CONFLICTS_ERROR.equalsIgnoreCase(this.getHandleResolveConflicts())) {
                throw new CruiseControlException(this.resolveConflictMessage);
            }
            if (bored && !this.isResolvedAllUsersAndGroups()) {
                throw new CruiseControlException("bored waiting for user/group resolving");
            }
        } finally {
            resolver.removeResolveListener(this);
        }
    }
View Full Code Here

Examples of com.sun.corba.se.spi.resolver.Resolver

     * then it is used, otherwise the bootstrapping protocol is used.
     * @return A list of the initial services available.
     */
    public String[] list_initial_services()
    {
        Resolver res ;

        synchronized( this ) {
            checkShutdownState();
            res = resolver ;
        }

        synchronized (resolverLock) {
            java.util.Set keys = res.list() ;
            return (String[])keys.toArray( new String[keys.size()] ) ;
        }
    }
View Full Code Here

Examples of com.sun.xml.parser.Resolver

    private XMLTree parse(InputSource is, boolean validate)
    throws IOException, SAXParseException, SAXException {
        Parser parser = (validate) ?
      new ValidatingParser(true) : new Parser();
  Resolver resolver = new Resolver();
  XmlDocumentBuilder builder = new XmlDocumentBuilder();
  // Server.xml is not validated and has no DTD ( and will change for a while)
  //   URL serverURL = this.getClass().getResource(
  //             Constants.DTD.Server.Resource);
  URL webApplicationURL = this.getClass().getResource(
            Constants.WEB_XML_Resource);

//   resolver.registerCatalogEntry(Constants.DTD.Server.PublicId,
//             serverURL.toString());
  resolver.registerCatalogEntry(
      Constants.WEB_XML_PublicId,
      webApplicationURL.toString());

  try {
      // parser.setFastStandalone(true);
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.