Register's the references of the passed descriptor.

@param \AppserverIo\Psr\Deployment\DescriptorInterface $descriptor The descriptor to register the references for

@return void
349157
public function registerReferences(DescriptorInterface $descriptor)
    {

        //  register the EPB references
        foreach ($descriptor->getEpbReferences() as $epbReference) {
            $this->registerEpbReference($epbReference);
        }

        // register the resource references
        foreach ($descriptor->getResReferences() as $resReference) {
            $this->registerResReference($resReference);
        }

        // register the bean references
        foreach ($descriptor->getBeanReferences() as $beanReference) {
            $this->registerBeanReference($beanReference);
        }

        // register the persistence unit references
        foreach ($descriptor->getPersistenceUnitReferences() as $persistenceUnitReference) {
            $this->registerPersistenceUnitReference($persistenceUnitReference);
        }
    }
175681
def RegisterProtoDescriptors(db, *additional_descriptors):
  """"""
  db.RegisterFileDescriptor(artifact_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(client_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(config_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(cron_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(flow_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(hunt_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(output_plugin_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(reflection_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(stats_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(user_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(vfs_pb2.DESCRIPTOR)

  db.RegisterFileDescriptor(checks_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(deprecated_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(flows_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(jobs_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(osquery_pb2.DESCRIPTOR)
  db.RegisterFileDescriptor(wrappers_pb2.DESCRIPTOR)

  for d in additional_descriptors:
    db.RegisterFileDescriptor(d)
391305
protected function addClasses(array $classes, FileDescriptor $fileDescriptor): void
    {
        foreach ($classes as $class) {
            $classDescriptor = $this->getBuilder()->buildDescriptor($class);
            if ($classDescriptor) {
                $classDescriptor->setLocation($fileDescriptor, $class->getLocation()->getLineNumber());
                if (count($classDescriptor->getTags()->get('package', new Collection())) === 0) {
                    $classDescriptor->getTags()->set(
                        'package',
                        $fileDescriptor->getTags()->get('package', new Collection())
                    );
                }

                $fileDescriptor->getClasses()->set(
                    (string) ($classDescriptor->getFullyQualifiedStructuralElementName()),
                    $classDescriptor
                );
            }
        }
    }
278878
public function create(RequestDescriptor $descriptor)
    {
        $method = strtolower($descriptor->getMethod());

        if (!method_exists($this, $method)) {
            return $this->defaultRequest($descriptor);
        }

        return $this->$method($descriptor);
    }
214188
public function registerSubscriber(SubscriberInterface $subscriber)
    {
        $class = get_class($subscriber);
        $events = $subscriber->getEvents();

        foreach ($events as $event => $actions) {
            $this->registerEvent($event);
            $this->events[$event][$class] = $subscriber;
        }
    }
735922
private function addManagedExtension(PackageDescriptor $descriptor)
    {
        $className = $descriptor->getClass();
        if ($this->isClassLoadable($className) === false) {
            $this->flashLogger->error(Trans::__(
                'page.extend.error-class-invalid',
                ['%NAME%' => $descriptor->getName(), '%CLASS%' => $className]
            ));

            return;
        }

        /** @var ExtensionInterface $extension */
        $extension = new $className();
        if ($extension instanceof ExtensionInterface) {
            $baseDir = $this->extFs->getDir($descriptor->getPath());
            $webDir = $this->webFs->getDir($descriptor->getWebPath());
            $this->add($extension, $baseDir, $webDir, $descriptor->getName())
                ->setDescriptor($descriptor)
            ;
        } else {
            $this->flashLogger->error(Trans::__(
                'page.extend.error-class-implement',
                ['%NAME%' => $descriptor->getName(), '%CLASS%' => $className, '%TARGET%' => ExtensionInterface::class]
            ));
        }
    }
343656
protected function convertToArrayDescriptor($descriptor)
    {
        $arrayDescriptor = new CollectionDescriptor('array');
        $arrayDescriptor->setTypes(array($descriptor));
        $arrayDescriptor->setKeyTypes(array('mixed'));

        return $arrayDescriptor;
    }
1274123
protected function addArguments(Method $reflector, MethodDescriptor $descriptor): void
    {
        foreach ($reflector->getArguments() as $argument) {
            $this->addArgument($argument, $descriptor);
        }
    }
138744
public function populate(ProjectDescriptor $projectDescriptor): void
    {
        $this->loadCacheItemAsSettings($projectDescriptor, self::KEY_SETTINGS);

        foreach ($this->getCache() as $key) {
            $this->loadCacheItemAsFile($projectDescriptor, $key);
        }
    }
1254135
public function addDescriptors(array $descriptors): self
    {
        $this->descriptors = array_values(
            array_unique(
                array_merge($this->descriptors, $descriptors)
            )
        );

        return $this;
    }
1195119
protected function filterAndValidateDescriptor($descriptor)
    {
        if (!$descriptor instanceof Filterable) {
            return $descriptor;
        }

        // filter the descriptor; this may result in the descriptor being removed!
        $descriptor = $this->filter($descriptor);
        if (!$descriptor) {
            return null;
        }

        // Validate the descriptor and store any errors
        $descriptor->setErrors($this->validate($descriptor));

        return $descriptor;
	}
147926
public function registerTheme($descriptor, $type = null)
    {
        $path = $this->pathLocator->locateThemePath($descriptor, $type);
        $theme = $this->themeFactory->createTheme($path, $type);

        $this->registry->registerTheme($theme);

        return $theme;
    }
4626
public function register(Renderer $renderer) {
        $this->registerTokenRenderer(LinkInlineRule::NAME, 'renderInline', $renderer);
        $this->registerTokenRenderer(LinkReferenceRule::NAME, 'renderReference', $renderer);
        $this->registerTokenRenderer(LinkAutoRule::NAME, 'renderAuto', $renderer);
    }
1330677
private function _createNamespaceName($descriptor)
    {
        if (isset($this->customArguments['namespace'])) {
            return $this->customArguments['namespace'];
        }

        $t = $descriptor->getClass();
        $t = explode("\\", $t);
        array_pop($t);
        $name = implode("\\", $t);
        return $name;
    }
314580
public function registerLocator(ClassLocatorInterface $locator, $prepend = false )
    {
        $array = array($locator->getName() => $locator);

        if($prepend) {
            $this->_locators = $array + $this->_locators;
        } else {
            $this->_locators = $this->_locators + $array;
        }
    }
1176016
protected function get(RequestDescriptor $descriptor)
    {
        return new Request(
            $descriptor->getMethod(),
            $descriptor->getUrl(),
            $descriptor->getHeaders()
        );
    }
598214
protected function handleBackendOptions(Descriptor $descriptor, array $options) {
		if (isset($options['host'])) {
			$host = $options['host'];
			
			if (isset($options['port'])) {
				$host .= ':' . $options['port'];
			}
			
			$descriptor->host = $host;
		}
		
		if (isset($options['persistent'])) {
			$descriptor->persist = $options['persistent'] ? 'On' : 'Off';
		}
	}