initializeSystem-Hook: Erstellt die Notification-Types.
770630
public function registerNotificationTyps()
    {
        if (isset($GLOBALS['con4gis']['queue']['notificationtypes']) &&
            is_array($GLOBALS['con4gis']['queue']['notificationtypes']) &&
            count($GLOBALS['con4gis']['queue']['notificationtypes'])
        ){
            foreach ($GLOBALS['con4gis']['queue']['notificationtypes'] as $nt => $kinds) {
                foreach ($kinds as $key => $kind) {
                    if (is_array($kind)) {
                        // Key ist der Name der Art ($kind) und $kind enthält zusätzliche Tags.
                        $tags = array_merge($this->tags, $kind);
                        $kind = $key;
                    } else {
                        $tags = $this->tags;
                    }

                    $this->setField($nt, $kind, $tags);
                }
            }
        }
    }
903372
protected void notifyInit () {
		final String sourceMethod = "notifyInit"; //$NON-NLS-1$
		IServiceReference[] refs = null;
		try {
			if(_aggregator != null && _aggregator.getPlatformServices() != null){
				refs = _aggregator.getPlatformServices().getServiceReferences(ICacheManagerListener.class.getName(),"(name=" + _aggregator.getName() + ")");	//$NON-NLS-1$ //$NON-NLS-2$
				if (refs != null) {
					for (IServiceReference ref : refs) {
						ICacheManagerListener listener = (ICacheManagerListener)_aggregator.getPlatformServices().getService(ref);
						if (listener != null) {
							try {
								listener.initialized(this);
							} catch (Throwable t) {
								if (log.isLoggable(Level.WARNING)) {
									log.logp(Level.WARNING, CacheManagerImpl.class.getName(), sourceMethod, t.getMessage(), t);
								}
							} finally {
								_aggregator.getPlatformServices().ungetService(ref);
							}
						}
					}
				}
			}
		} catch (PlatformServicesException e) {
			if (log.isLoggable(Level.SEVERE)) {
				log.log(Level.SEVERE, e.getMessage(), e);
			}
		}
	}
423232
private void notifyStart()
    {
        if (eventHandler instanceof LifecycleAware)
        {
            try
            {
                ((LifecycleAware) eventHandler).onStart();
            }
            catch (final Throwable ex)
            {
                exceptionHandler.handleOnStartException(ex);
            }
        }
    }
104005
def new_style_notification(notify)
      # Given `notifies :restart, "service[foo]"` the target is the
      # `"service[foo]"` string portion.
      target_path = 'args_add_block/args_add/descendant::
        tstring_content[count(ancestor::dyna_symbol) = 0]/@value'
      target = notify.xpath("arg_paren/#{target_path} | #{target_path}").to_s

      # Test the target string against the standard syntax for a new-style
      # notification: `resource_type[resource_name]`.
      match = target.match(/^([^\[]+)\[(.*)\]$/)
      return nil unless match

      # Convert the captured resource type and name to symbols.
      resource_type, resource_name =
        match.captures.tap { |m| m[0] = m[0].to_sym }

      # Normally the `resource_name` will be a simple string. However in the
      # case where it has an embedded sub-expression then we will return the
      # AST to the caller to handle.
      if notify.xpath("descendant::string_embexpr").empty?
        return nil if resource_name.empty?
      else
        resource_name =
          notify.xpath("args_add_block/args_add/string_literal")
      end
      { resource_name: resource_name, resource_type: resource_type }
    end
1231743
public void init() {
        int numProcessors = Runtime.getRuntime().availableProcessors();
        cacheRedisClientPools = CacheBuilder.newBuilder().concurrencyLevel(numProcessors)
                .expireAfterAccess(3600, TimeUnit.SECONDS)
                .removalListener(new RemovalListener<String, JedisClientPool>() {
                    @Override
                    public void onRemoval(RemovalNotification<String, JedisClientPool> notification) {
                        JedisClientPool pool = notification.getValue();
                        pool.destroy();
                    }
                }).build();
    }
210566
def _initialize_plugin_system(self) -> None:
        """"""
        self._preloop_hooks = []
        self._postloop_hooks = []
        self._postparsing_hooks = []
        self._precmd_hooks = []
        self._postcmd_hooks = []
        self._cmdfinalization_hooks = []
1051260
private void initNotificationBuilder(Context context) {

        // inti builder.
        mNotificationBuilder = new NotificationCompat.Builder(context);
        mNotificationView = new RemoteViews(context.getPackageName(),
                R.layout.simple_sound_cloud_notification);
        mNotificationExpandedView = new RemoteViews(context.getPackageName(),
                R.layout.simple_sound_cloud_notification_expanded);

        // add right icon on Lollipop.
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            addSmallIcon(mNotificationView);
            addSmallIcon(mNotificationExpandedView);
        }

        // set pending intents
        mNotificationView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_previous, mPreviousPendingIntent);
        mNotificationExpandedView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_previous, mPreviousPendingIntent);
        mNotificationView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_next, mNextPendingIntent);
        mNotificationExpandedView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_next, mNextPendingIntent);
        mNotificationView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_play, mTogglePlaybackPendingIntent);
        mNotificationExpandedView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_play, mTogglePlaybackPendingIntent);
        mNotificationView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_clear, mClearPendingIntent);
        mNotificationExpandedView.setOnClickPendingIntent(
                R.id.simple_sound_cloud_notification_clear, mClearPendingIntent);

        // add icon for action bar.
        mNotificationBuilder.setSmallIcon(mNotificationConfig.getNotificationIcon());

        // set the remote view.
        mNotificationBuilder.setContent(mNotificationView);

        // set the notification priority.
        mNotificationBuilder.setPriority(NotificationCompat.PRIORITY_HIGH);

        mNotificationBuilder.setStyle(new NotificationCompat.DecoratedCustomViewStyle());

        // set the content intent.
        Class<?> playerActivity = mNotificationConfig.getNotificationActivity();
        if (playerActivity != null) {
            Intent i = new Intent(context, playerActivity);
            PendingIntent contentIntent = PendingIntent.getActivity(context, REQUEST_DISPLAYING_CONTROLLER,
                    i, PendingIntent.FLAG_UPDATE_CURRENT);
            mNotificationBuilder.setContentIntent(contentIntent);
        }
    }
1137721
private void initListeners()
  {
    ClassLoader parent = getParent();

    for (; parent != null; parent = parent.getParent()) {
      if (parent instanceof EnvironmentClassLoader) {
        EnvironmentClassLoader loader = (EnvironmentClassLoader) parent;

        if (_stopListener == null)
          _stopListener = new WeakStopListener(this);

        loader.addListener(_stopListener);

        return;
      }
    }
  }
585257
public function initialize()
    {
        $this->data = new stdClass();
        $this->data->events = [];
        $this->data->media = self::NOTIFICATION_MEDIA;
    }
314859
public static function initialize() {

		$instance = new static();

		/**
		 * Fires right before hook listeners are registered.
		 *
		 * @param HookListenersRegistry $registry
		 */
		do_action( self::ACTION_REGISTER, $instance );

		array_walk(
			$instance->listeners,
			function ( HookListenerInterface $listener ) use ( $instance ) {

				/**
				 * Filters whether to enable the hook listener.
				 *
				 * @param bool                  $enable
				 * @param HookListenerInterface $listener
				 */
				if ( apply_filters( self::FILTER_ENABLED, TRUE, $listener ) ) {
					$hooks = (array) $listener->listen_to();
					array_walk( $hooks, [ $instance, 'listen_hook' ], $listener );
				}
			}
		);

		unset( $instance->listeners );
		$instance->listeners = [];
	}
1151475
def notify(step, options = {})
      notifiers.each do |notifier|
        notifier.notify(step, default_payload.merge(options))
      end
    end
25368
public void typeSystemInit(TypeSystem aTypeSystem) throws AnalysisEngineProcessException {
   // initialize types for the regex concepts
   if (this.regexConcepts != null) {
     try {
       for (int i = 0; i < this.regexConcepts.length; i++) {
         ((Concept_impl) this.regexConcepts[i]).typeInit(aTypeSystem);
       }
     } catch (ResourceInitializationException ex) {
       throw new RegexAnnotatorProcessException(ex);
     }
   }
 }
378856
protected function initPluginType()
    {
        $dispatcher = $this->client->getEventDispatcher();
        $dispatcher->addListener(SolariumEvents::PRE_EXECUTE_REQUEST, array($this, 'preExecuteRequest'), 1000);
        $dispatcher->addListener(SolariumEvents::POST_EXECUTE_REQUEST, array($this, 'postExecuteRequest'), -1000);
    }
547567
private void checkUndefinedNotification(Notification notification) {
        String type = notification.getType();
        PathAddress source = notification.getSource();
        Map<String, NotificationEntry> descriptions = getRootResourceRegistration().getNotificationDescriptions(source, true);
        if (!descriptions.keySet().contains(type)) {
            missingNotificationDescriptionWarnings.add(ControllerLogger.ROOT_LOGGER.notificationIsNotDescribed(type, source));
        }
    }
1135608
private void init() {

		handlers.put(FlowType.Action,   	new ActionHandler());
		handlers.put(FlowType.Decision, 	new DecisionHandler());
		handlers.put(FlowType.Return,   	new ReturnHandler());
		handlers.put(FlowType.ForEach,  	new ForEachHandler());
		handlers.put(FlowType.Store, 		new StoreHandler());
		handlers.put(FlowType.Aggregation,  new AggregationHandler());
		handlers.put(FlowType.Exception, 	new ExceptionHandler());
		handlers.put(FlowType.Filter,		new FilterHandler());
		handlers.put(FlowType.Fork,			new ForkHandler());
	}
958371
protected function registerNotificationSerializers()
    {
        $blueprints = [];
        $serializers = [
            'discussionRenamed' => BasicDiscussionSerializer::class
        ];

        $this->app->make('events')->fire(
            new ConfigureNotificationTypes($blueprints, $serializers)
        );

        foreach ($serializers as $type => $serializer) {
            NotificationSerializer::setSubjectSerializer($type, $serializer);
        }
    }
21310
@SuppressLint("SetTextI18n")
	public void setNotifications(Integer notifications) {

		if ((notifications != null) && (notifications > 0)) {
			setVisibility(VISIBLE);
			if (notifications > maximum) {
				this.setText(maximum + "+");
			} else {
				this.setText(notifications.toString());
			}
		} else {
			setVisibility(GONE);
		}
	}