Examples of lookup()


Examples of org.geotools.data.DataAccessFactory.Param.lookUp()

        if( param.type != type ){
            return null; // not a good idea
        }
        Object value;
        try {
            value = param.lookUp( connectionParams );
        } catch (IOException e) {
            return null; // silient
        }
        return type.cast( value );
    }

Examples of org.geotools.data.DataStoreFactorySpi.Param.lookUp()

            }

            Object value;

            try {
                value = param.lookUp(params);
            } catch (IOException erp) {

                ActionErrors errors = new ActionErrors();
                errors.add(ActionErrors.GLOBAL_ERROR,
                    new ActionError("error.cannotProcessConnectionParams"));

Examples of org.glassfish.resourcebase.resources.naming.ResourceNamingService.lookup()

            debug("status is outdated: " + this);               
                Hashtable env = new Hashtable();
                env.put(ConnectorConstants.DYNAMIC_RECONFIGURATION_PROXY_CALL, "TRUE");
                //TODO ASR : resource-naming-service need to support "env" for module/app scope also
                ResourceNamingService namingService = ConnectorRuntime.getRuntime().getResourceNamingService();
                actualObject = namingService.lookup(resourceInfo, resourceInfo.getName(), env);
                debug("actualObject : " + actualObject);
            }else{
                debug("status is true: " + this);
            }

Examples of org.globus.workspace.remoting.RemotingClient.lookup()

        catch (RemoteException e) {
            handleRemoteException(e);
        }

        try {
            final Remote remote = client.lookup(this.bindingName);
            logger.debug("Found remote object " + remote.toString());
            return remote;
        }
        catch (RemoteException e) {
            handleRemoteException(e);

Examples of org.gradle.api.internal.plugins.DefaultPluginRegistry.lookup()

        ClassPath classPath = classPathFactory.create();
        ClassLoaderScope loaderScope = parent.createChild();
        loaderScope.local(classPath);
        loaderScope.lock();
        PluginRegistry pluginRegistry = new DefaultPluginRegistry(pluginInspector, loaderScope.getLocalClassLoader());
        PotentialPluginWithId lookup = pluginRegistry.lookup(pluginId.toString());
        if (lookup == null) {
            throw new UnknownPluginException("Plugin with id '" + pluginId + "' not found.");

        }
        return lookup.asClass();

Examples of org.gradle.api.internal.plugins.PluginRegistry.lookup()

        ClassPath classPath = classPathFactory.create();
        ClassLoaderScope loaderScope = parent.createChild();
        loaderScope.local(classPath);
        loaderScope.lock();
        PluginRegistry pluginRegistry = new DefaultPluginRegistry(pluginInspector, loaderScope.getLocalClassLoader());
        PotentialPluginWithId lookup = pluginRegistry.lookup(pluginId.toString());
        if (lookup == null) {
            throw new UnknownPluginException("Plugin with id '" + pluginId + "' not found.");

        }
        return lookup.asClass();

Examples of org.gradle.mvn3.org.codehaus.plexus.DefaultPlexusContainer.lookup()

        ContainerConfiguration containerConfiguration = new DefaultContainerConfiguration()
                .setClassWorld(new ClassWorld("plexus.core", ClassWorld.class.getClassLoader()))
                .setName("mavenCore");

        DefaultPlexusContainer container = new DefaultPlexusContainer(containerConfiguration);
        ProjectBuilder builder = container.lookup(ProjectBuilder.class);
        MavenExecutionRequest executionRequest = new DefaultMavenExecutionRequest();
        final Properties properties = new Properties();
        properties.putAll(SystemProperties.asMap());
        executionRequest.setSystemProperties(properties);
        MavenExecutionRequestPopulator populator = container.lookup(MavenExecutionRequestPopulator.class);

Examples of org.grails.encoder.EncodingStateRegistryLookup.lookup()

        return getWriterForEncoder(encoder, lookupDefaultEncodingStateRegistry());
    }

    protected EncodingStateRegistry lookupDefaultEncodingStateRegistry() {
        EncodingStateRegistryLookup encodingStateRegistryLookup = EncodingStateRegistryLookupHolder.getEncodingStateRegistryLookup();
        return encodingStateRegistryLookup != null ? encodingStateRegistryLookup.lookup() : null;
    }

    public Writer getWriterForEncoder(Encoder encoder, EncodingStateRegistry encodingStateRegistry) {
        return getWriterForEncoder(encoder, encodingStateRegistry, false);
    }

Examples of org.hornetq.jms.server.embedded.EmbeddedJMS.lookup()

      {
         EmbeddedJMS jmsServer = new EmbeddedJMS();
         jmsServer.start();
         System.out.println("Started Embedded JMS Server");

         ConnectionFactory cf = (ConnectionFactory)jmsServer.lookup("/cf");
         Queue queue = (Queue)jmsServer.lookup("/queue/exampleQueue");

         // Step 10. Send and receive a message using JMS API
         Connection connection = null;
         try

Examples of org.hornetq.spi.core.naming.BindingRegistry.lookup()

   }

   public static void publish(String destination, Serializable object, String contentType) throws Exception
   {
      BindingRegistry reg = server.getRegistry();
      Destination dest = (Destination) reg.lookup(destination);
      ConnectionFactory factory = (ConnectionFactory) reg.lookup("ConnectionFactory");
      Connection conn = factory.createConnection();
      Session session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);

      try
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.