⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 registrynotification.java

📁 提供ESB 应用mule源代码 提供ESB 应用mule源代码
💻 JAVA
字号:
/* * $Id: RegistryNotification.java 12420 2008-07-29 18:58:27Z tcarlson $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.context.notification;import org.mule.api.context.notification.ServerNotification;import org.mule.api.registry.Registry;/** * <code>RegistryNotification</code> is fired when an event such as a Registry * being started occurs. The payload of this event will always * be a reference to the Registry ID. * * @see org.mule.api.registry.Registry * @see org.mule.api.MuleContext */public class RegistryNotification extends ServerNotification{    /**     * Serial version     */    private static final long serialVersionUID = -3246036188021581121L;    public static final int REGISTRY_INITIALISING = REGISTRY_EVENT_ACTION_START_RANGE + 1;    public static final int REGISTRY_INITIALISED = REGISTRY_EVENT_ACTION_START_RANGE + 2;    public static final int REGISTRY_DISPOSING = REGISTRY_EVENT_ACTION_START_RANGE + 3;    public static final int REGISTRY_DISPOSED = REGISTRY_EVENT_ACTION_START_RANGE + 4;    static {        registerAction("registry initialising", REGISTRY_INITIALISING);        registerAction("registry initialised", REGISTRY_INITIALISED);        registerAction("registry disposing", REGISTRY_DISPOSING);        registerAction("registry disposed", REGISTRY_DISPOSED);    }    public RegistryNotification(Registry registry, String action)    {        this(registry, getActionId(action));    }    public RegistryNotification(Registry registry, int action)    {        super(registry.getRegistryId(), action);        resourceIdentifier = registry.getRegistryId();    }    public String toString()    {        return EVENT_NAME + "{" + "action=" + getActionName(action) + ", resourceId=" + resourceIdentifier                + ", timestamp=" + timestamp + "}";    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -