checks a single CFMLFactory for the thread

@param name
@param factory
@param id
@return matching thread or null
424583
private FDThreadImpl getByNativeIdentifier(String name, CFMLFactoryImpl factory, String id) {
	Map<Integer, PageContextImpl> pcs = factory.getActivePageContexts();
	Iterator<PageContextImpl> it = pcs.values().iterator();
	PageContextImpl pc;

	while (it.hasNext()) {
	    pc = it.next();
	    if (equals(pc, id)) return new FDThreadImpl(this, factory, name, pc);
	}
	return null;
    }
923402
public ICache getCache(String name) {
        return cacheFactory != null ? cacheFactory.createCache(name) : null;
    }
1237266
function(name, factory) {
                        if (_.isUndefined(factory)) {
                            factory = name;
                            name = undefined;
                        }

                        if (factory && factory.__clazz && factory.__clazz.__isSubclazzOf('/InjectorJS/Factories/Abstract')) {
                            return this.__setPropertyValue(['factory', factory.getName()], factory);
                        }

                        var fields = _.isString(name) ? name.split('.') : name || [];

                        return this.__setPropertyValue(['factory'].concat(fields), factory);
                    }
1289429
@Override
    public Class<? extends ChannelFactory> lookupFactory(String name) {
        Class<? extends ChannelFactory> clazz = null;
        synchronized (this.factories) {
            clazz = this.factories.get(name);
        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "lookupFactory: " + name + ": " + clazz);
        }
        if (null != clazz) {
            // if we found a registration and a provider, let it know
            ChannelFactoryProvider provider = this.providers.get(name);
            if (null != provider && !activatedProviders.contains(provider)) {
                this.activatedProviders.add(provider);
                provider.init();
            }
        }
        return clazz;
    }
868124
function modTryInvokeFactory( id ) {
        var module = modModules[ id ];

        if ( module && module.invokeFactory ) {
            module.invokeFactory();
        }
    }
501000
static public Thread getThread(final long id) {
        final Thread[] threads = getAllThreads();
        for (Thread thread : threads)
            if (thread.getId() == id)
                return thread;
        return null;
    }
1233328
public DetectorFactory getFactoryByShortName(final String shortName) {
        return findFirstMatchingFactory(factory -> factory.getShortName().equals(shortName));
    }
214937
@Override
    public synchronized VirtualConnectionFactory getOutboundVCFactory(String chainName) throws ChannelException, ChainException {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "getOutboundVCFactory: " + chainName);
        }
        if (null == chainName) {
            throw new InvalidChainNameException("Unable to get VCFactory for null chain name");
        }

        OutboundVirtualConnectionFactoryImpl vc = outboundVCFactories.get(chainName);
        if (vc == null) {
            // VC Factory does not exist
            ChainData chainData = chainDataMap.get(chainName);
            if (null != chainData) {
                // Create new VCF. Note this initializes the chain and sets the ref
                // count to 1.
                vc = createVirtualConnectionFactory(chainData);
                outboundVCFactories.put(chainName, vc);
            } else if (-1 != chainName.indexOf(ChannelDataImpl.CHILD_STRING)) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
                    Tr.exit(tc, "getOutboundVCFactory");
                }
                return getNestedOutboundVCFactory(chainName);
            } else {
                InvalidChainNameException exp = new InvalidChainNameException("Chain configuration not found in framework, " + chainName);
                // FFDCFilter.processException(exp,
                // getClass().getName()+".getOutboundVCFactory", "459", this, new
                // Object[] {chainName});
                throw exp;
            }
        } else {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                Tr.debug(tc, "Found existing VCF, " + chainName);
            }
            vc.incrementRefCount();
        }

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "getOutboundVCFactory");
        }
        return vc;
    }
1273121
public static ThreadFactory threadFactory(final String alias) {
    return new ThreadFactory() {
      private final ThreadGroup threadGroup = Thread.currentThread().getThreadGroup();
      private final AtomicInteger threadCount = new AtomicInteger();
      private final String poolAlias = (alias == null ? "_default_" : alias);

      @Override
      public Thread newThread(Runnable r) {
        Thread t = new Thread(threadGroup, r, "Ehcache [" + poolAlias + "]-" + threadCount.getAndIncrement());
        if(DEBUG) {
          threads.put(System.identityHashCode(t), new Exception(t.getName()));
        }
        return t;
      }
    };
  }
1119140
public void registerFactory(String name, String groupName, Factory factory) {
        getProxyBuilder().factories.put(name, factory);
        getRegistrationGroup(groupName).add(name);
        factory.onFactoryRegistration(this, name, groupName);
    }
1285938
function modTryInvokeFactory(id) {
        var mod = modModules[id];

        if (mod && mod.invokeFactory) {
            mod.invokeFactory();
        }
    }
345263
@Nullable
    public static ThreadFactory unwrap(@Nullable ThreadFactory threadFactory) {
        if (!isDisableInheritableThreadFactory(threadFactory)) return threadFactory;

        return ((DisableInheritableThreadFactory) threadFactory).unwrap();
    }
81400
def childFactory(self, ctx, name):
        
        try:
            o = self.webapp.fromWebID(name)
        except _WebIDFormatException:
            return None
        if o is None:
            return None
        return self.webViewer.wrapModel(o)
244305
public static CFMLEngine getInstance(final ServletConfig config, final EngineChangeListener listener) throws ServletException {
	getInstance(config);

	// add listener for update
	factory.addListener(listener);

	// read init param from config
	factory.readInitParam(config);

	factory.initEngineIfNecessary();
	singelton.addServletConfig(config);

	// make the FDController visible for the FDClient
	FDControllerFactory.makeVisible();

	return singelton;
    }
582227
public boolean hasLogger(final String name, final Class<? extends MessageFactory> messageFactoryClass) {
        return getOrCreateInnerMap(factoryClassKey(messageFactoryClass)).containsKey(name);
    }
262424
public ResourceFactory findResourceFactory(String name, Type clazz) {
        Map<String, ResourceEntry> map = this.store.get(clazz);
        if (map != null && map.containsKey(name)) return this;
        if (parent != null) return parent.findResourceFactory(name, clazz);
        return null;
    }
1177055
private SSLServerSocketFactory getServerSocketFactory(String id) throws IOException {
        // first use?
        SSLServerSocketFactory serverSocketFactory = serverSocketFactoryMap.get(id);
        if (serverSocketFactory == null) {
            // the SSLConfig is optional, so if it's not there, use the default SSLSocketFactory.
            if (id == null) {
                serverSocketFactory = (SSLServerSocketFactory) SSLServerSocketFactory.getDefault();
            } else {
                try {
                    serverSocketFactory = sslConfig.createSSLServerFactory(id);
                } catch (Exception e) {
                    Tr.error(tc, "Unable to create server SSL socket factory", e);
                    throw (IOException) new IOException("Unable to create server SSL socket factory: " + e.getMessage()).initCause(e);
                }
                serverSocketFactoryMap.put(id, serverSocketFactory);
            }
            // There's a bit of a timing problem with server-side ORBs.  Part of the ORB shutdown is to
            // establish a self-connection to shutdown the acceptor threads.  This requires a client
            // SSL socket factory.  Unfortunately, if this is occurring during server shutdown, the
            // FileKeystoreManager will get a NullPointerException because some name queries fail because
            // things are getting shutdown.  Therefore, if we need the server factory, assume we'll also
            // need the client factory to shutdown, and request it now.
            getSocketFactory(id);
        }
        return serverSocketFactory;
    }