Examples of lookup()


Examples of org.apache.camel.spi.TypeConverterRegistry.lookup()

            // short circuit the lookup
            return (InputStream)obj;
        }
       
        TypeConverterRegistry registry = exchange.getContext().getTypeConverterRegistry();
        TypeConverter tc = registry.lookup(InputStream.class, obj.getClass());
       
        if (tc != null) {
            return tc.convertTo(InputStream.class, exchange, obj);
        }
       

Examples of org.apache.cocoon.components.CocoonComponentManager.lookup()

                if (parentSelector != null) {

                    ExtendedComponentSelector localSelector = null;
                    try {
                        localSelector = (ExtendedComponentSelector)manager.lookup(role);

                        if (localSelector != parentSelector) {
                            // local selector wasn't given by chaining to the parent manager
                            localSelector.setParentSelector(parentSelector);
                        }

Examples of org.apache.ctakes.dictionary.lookup.algorithms.LookupAlgorithm.lookup()

    // perform lookup
    Collection lookupHitCol = null;

    LookupAlgorithm la = (LookupAlgorithm) ls.getLookupAlgorithm();
    lookupHitCol = la.lookup(lookupTokenList, ctxMap);

    Collection uniqueHitCol = filterHitDups(lookupHitCol);

    // consume hits
    ls.getLookupConsumer().consumeHits(jcas, uniqueHitCol.iterator());

Examples of org.apache.cxf.tools.corba.common.idltypes.IdlScopeBase.lookup()

                && name.length == 2 && i == 0
                && name[1].equals("Object")) {
                break;
            }
           
            IdlDefn idlDef = scope.lookup(name[i]);

            if (idlDef == null) {
                // Before creating module, check to see if a Corba type
                // represent this name aleady exists.
                // For example if type is a.b.c and we are about to create

Examples of org.apache.directory.api.ldap.model.schema.registries.AttributeTypeRegistry.lookup()

               
                matchingRuleUse.getApplicableAttributes().clear();

                for ( String oid : matchingRuleUse.getApplicableAttributeOids() )
                {
                    matchingRuleUse.getApplicableAttributes().add( atRegistry.lookup( oid ) );
                }
            }
            finally
            {
                matchingRuleUse.lock();

Examples of org.apache.directory.api.ldap.model.schema.registries.ObjectClassRegistry.lookup()

                {
                    ditContentRule.getAuxObjectClasses().clear();
   
                    for ( String oid : ditContentRule.getAuxObjectClassOids() )
                    {
                        ditContentRule.getAuxObjectClasses().add( ocRegistry.lookup( oid ) );
                    }
                }
            }
            finally
            {

Examples of org.apache.directory.ldap.client.api.LdapConnection.lookup()

        kate.add( "description", descr );

        con.add( kate );

        // Analyze entry and description attribute
        Entry kateReloaded = con.lookup( dn );
        assertNotNull( kateReloaded );
        Attribute attr = kateReloaded.get( "description" );
        assertNotNull( attr );
        assertEquals( 2, attr.size() );

Examples of org.apache.directory.ldap.client.api.LdapNetworkConnection.lookup()

            "mail:" );

        connection.add( entry );

        // Now fetch the entry
        Entry found = connection.lookup( "cn=test,ou=system" );

        assertNotNull( found );
        assertNotNull( found.get( "userPassword" ) );
        assertNotNull( found.get( "mail" ) );
        String userPassword = found.get( "userPassword" ).getString();

Examples of org.apache.directory.server.core.CoreSession.lookup()

            try
            {
                // We have to use the admin session here, otherwise we may have
                // trouble reading the entry due to insufficient access rights
                CoreSession adminSession = opContext.getSession().getDirectoryService().getAdminSession();
                opContext.setEntry( adminSession.lookup( opContext.getDn(), SchemaConstants.ALL_OPERATIONAL_ATTRIBUTES_ARRAY ) );
            }
            catch ( Exception e )
            {
                // might not exist
            }

Examples of org.apache.directory.server.core.OperationManager.lookup()

        // execute lookup/getRootDSE operation
        opCtx = new LookupOperationContext( session, target );
        opCtx.addRequestControls( JndiUtils.fromJndiControls( requestControls ) );
        OperationManager operationManager = service.getOperationManager();
        ServerEntry serverEntry = operationManager.lookup( opCtx );

        // clear the request controls and set the response controls
        requestControls = EMPTY_CONTROLS;
        responseControls = JndiUtils.toJndiControls( opCtx.getResponseControls() );
        return serverEntry;
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.