Examples of lookup()


Examples of org.jboss.byteman.rule.binding.Bindings.lookup()

        // ensure that there is a binding in the bindings set for this parameter
        // we will type check the binding later

        Bindings bindings = getBindings();

        binding = bindings.lookup(name);

        if (binding == null) {
            binding = new Binding(rule, name, null);
            bindings.append(binding);
        }

Examples of org.jboss.ejb3.common.registrar.spi.Ejb3Registrar.lookup()

      @Deprecated
      Ejb3Registrar registrar = Ejb3RegistrarLocator.locateRegistrar();

      // Get the resolver
      EndpointResolver resolver = registrar.lookup(MC_BIND_NAME_ENDPOINT_RESOLVER, EndpointResolver.class);
      this.ejbClassName = descriptor.getBeanClass().getSimpleName();
      endpointMcBindName = resolver.resolve(deploymentUnit, ejbClassName);
      this.stateful = descriptor.isStateful();
   }

Examples of org.jboss.fresh.registry.RegistryContext.lookup()

        con.setAutoCommit(false);
      }
    } else {
      if (dts == null) {
        RegistryContext ctx = new RegistryContext();
        dts = (DataSource) ctx.lookup(ds);
      }

      con = dts.getConnection();
      log.info("Got connection from pool: " + con + " (autocommit:" + con.getAutoCommit() + ')');
      con.setAutoCommit(false);

Examples of org.jboss.marshalling.reflect.SerializableClassRegistry.lookup()

    private static SerializableClassDescriptor getSerializableClassDescriptor(final Class<?> subject, final ClassDescriptor superDescriptor) {
        return AccessController.doPrivileged(new PrivilegedAction<SerializableClassDescriptor>() {
            public SerializableClassDescriptor run() {
                final SerializableClassRegistry reg = SerializableClassRegistry.getInstance();
                final SerializableClass serializableClass = reg.lookup(subject);
                final SerializableField[] fields = serializableClass.getFields();
                final boolean hasWriteObject = serializableClass.hasWriteObject();
                try {
                    return new BasicSerializableClassDescriptor(serializableClass, superDescriptor, fields, Externalizable.class.isAssignableFrom(subject) ? Protocol.ID_EXTERNALIZABLE_CLASS : hasWriteObject ? Protocol.ID_WRITE_OBJECT_CLASS : Protocol.ID_SERIALIZABLE_CLASS);
                } catch (ClassNotFoundException e) {

Examples of org.jboss.security.plugins.SecurityDomainContext.lookup()

      Object binding = securityDomainCtx.getSecurityManager();
      // Look for requests against the security domain context
      if( name.size() == 2 )
      {
         String request = name.get(1);
         binding = securityDomainCtx.lookup(request);
      }
      return binding;
   }
  
   private SecurityDomainContext lookupSecurityDomain(String securityDomain)

Examples of org.jboss.wsf.spi.security.JAASSecurityDomainAdaptorResolver.lookup()

            throw new WSSecurityException("Could not get a jaas security domain resolver implementation implementing " + JAASSecurityDomainAdaptorResolver.class
                  + "; this is container specific, so please check your classpath is properly set if running on client side.");
         }
         try
         {
            sd = sdResolver.lookup(securityDomainConf.getJndi());
         }
         catch (Exception e)
         {
            throw new WSSecurityException("JNDI failure handling " + securityDomainConf.getJndi(), e);
         }

Examples of org.jemmy.interfaces.Parent.lookup()

                        setResult(!((MenuButton)menuWrap.getControl()).isShowing());
                    }
                }.dispatch(getEnvironment())) {
                if (SplitMenuButton.class.isAssignableFrom(menuWrap.getControl().getClass())) {
                    Parent parent = (Parent) menuWrap.as(Parent.class, Node.class);
                    parent.lookup(Node.class, new ByStyleClass<Node>("arrow-button")).wrap().mouse().click();
                } else {
                    menuWrap.mouse().click();
                }
            }
        }

Examples of org.jitterbit.integration.server.db.lookup.DbLookup.lookup()

    @Override
    protected DbLookupResult doWork(JdbcSession session) throws EngineSessionException, ServerAccessException {
        try {
            DbLookup lookup = session.getDbLookup(entityId, connParams);
            lookup.setAutoCommit(autoCommit);
            return lookup.lookup(sql);
        } catch (ServerDbException e) {
            throw new EngineSessionException(e);
        } catch (SQLException e) {
            throw new EngineSessionException(e);
        }

Examples of org.jnode.net.nfs.nfs2.NFS2Client.lookup()

        }

        NFS2Client nfsClient = getNFS2Client();
        LookupResult lookupResult;
        try {
            lookupResult = nfsClient.lookup(directoryEntry.getFileHandle(), name);
        } catch (NFS2Exception e) {
            throw new IOException("Can not call the rpc method." + e.getMessage(), e);
        }
        entry = new NFS2Entry(
            (NFS2FileSystem) getFileSystem(), this, name,

Examples of org.jnp.interfaces.Naming.lookup()

         SimplePrincipal jduke = new SimplePrincipal("jduke");
         SecurityAssociation.setPrincipal(jduke);
         SecurityAssociation.setCredential("theduke".toCharArray());

         // Lookup the previous Hello binding
         String value = (String) naming.lookup(hello);
         assertTrue("lookup(Hello) == HelloBinding", value.equals("HelloBinding"));
         getLog().info("lookup(Hello) = "+value);
      }
      finally
      {
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.