Examples of lookup()


Examples of de.netseeker.ejoe.core.EJServerRegistry.lookup()

    }

    public static void stopAllServers()
    {
        EJServerRegistry registry = EJServerRegistry.getInstance();
        EJServer server = registry.lookup();

        while ( server != null )
        {
            server.stop();
            server = registry.lookup();

Examples of edu.buffalo.cse.ir.wikiindexer.indexer.LocalDictionary.lookup()

    // test that it creates entries
    INDEXFIELD testarr[] = INDEXFIELD.values();

    for (INDEXFIELD fld : testarr) {
      LocalDictionary dict = new LocalDictionary(idxProps, fld);
      int retVal = dict.lookup("test");
      assertTrue(retVal > 0);

      // test same return value
      assertEquals(retVal, dict.lookup("test"));

Examples of edu.buffalo.cse.ir.wikiindexer.indexer.SharedDictionary.lookup()

   
    try {
      while (remaining > 0) {
        idoc = pool.take().get();
        if (idoc != null) {
          currDocId = docDict.lookup(idoc.getDocumentIdentifier());
          TokenStream stream;
          try {
            for (INDEXFIELD fld : INDEXFIELD.values()) {
              stream = idoc.getStream(fld);

Examples of edu.cmu.sphinx.util.props.ConfigurationManager.lookup()

      cm = new ConfigurationManager(args[0]);
    } else {
      cm = new ConfigurationManager(HarryPotter.class.getResource("harry.config.xml"));
    }

    final Recognizer recognizer = (Recognizer) cm.lookup("recognizer");
    recognizer.allocate();

    // start the microphone or exit if the programm if this is not possible
    Microphone microphone = (Microphone) cm.lookup("microphone");
    if (!microphone.startRecording()) {

Examples of edu.umd.cs.findbugs.ba.bcp.BindingSet.lookup()

        CFG cfg = classContext.getCFG(method);


        // Get the variable referenced in the pattern instance.
        BindingSet bindingSet = match.getBindingSet();
        Binding binding = bindingSet.lookup("f");

        // Look up the field as an XField.
        // If it is volatile, then the instance is not a bug.
        FieldVariable field = (FieldVariable) binding.getVariable();
        XField xfield = Hierarchy.findXField(field.getClassName(), field.getFieldName(), field.getFieldSig(),

Examples of factOrFiction.model.CardGroup.lookup()

       
        if(card != null) {
          CardGroup group = (CardGroup)card.getParent();
         
          group.remove( card );
          toSelect.addAll(group.lookup(card));
        }
      }
      editor.getSite().getSelectionProvider().setSelection( new StructuredSelection(toSelect) );
    } else if(groupCount == 1) {
      CardGroup group = (CardGroup)currentSelection.getFirstElement();

Examples of flex.messaging.FactoryInstance.lookup()

        RemotingDestination remotingDestination = (RemotingDestination) getDestination();
        // Note: this breaks the admin console right now as we use this to call
        // mbean methods.  Might have performance impact as well?
        //assertAccess(cl.getName());
        FactoryInstance factoryInstance = remotingDestination.getFactoryInstance();
        Object instance = factoryInstance.lookup();
        if (isStarted() && instance instanceof FlexComponent
                && !((FlexComponent)instance).isStarted())
        {
            ((FlexComponent)instance).start();
        }

Examples of gnu.javax.crypto.sasl.IAuthInfoProvider.lookup()

    user4.put(SRPRegistry.MD_NAME_FIELD, Registry.SHA_HASH);

    Map credentials;
    try
      {
        credentials = authenticator.lookup(user1);
        harness.fail("lookup(user1)");
      }
    catch (AuthenticationException x)
      {
        harness.check(true, "lookup(user1)");

Examples of gnu.javax.crypto.sasl.srp.PasswordFile.lookup()

        tpasswd.add(user, password, testSalt, SRPRegistry.N_2048_BITS);
      }
    else
      tpasswd.changePasswd(user, password);

    final String[] entry = tpasswd.lookup(user, md);
    final BigInteger v = new BigInteger(1, Util.fromBase64(entry[0]));
    final byte[] salt = Util.fromBase64(entry[1]);

    final String[] mpi = tpasswd.lookupConfig(entry[2]);
    final BigInteger N = new BigInteger(1, Util.fromBase64(mpi[0]));

Examples of gnu.javax.crypto.sasl.srp.SRPAuthInfoProvider.lookup()

    user4.put(SRPRegistry.MD_NAME_FIELD, Registry.SHA_HASH);

    Map credentials;
    try
      {
        credentials = authenticator.lookup(user1);
        harness.fail("lookup(user1)");
      }
    catch (AuthenticationException x)
      {
        harness.check(true, "lookup(user1)");
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.