in audit/src/main/java/org/apache/karaf/audit/Activator.java [367:451]
private String _type() {
switch (event.getTopic()) {
case "org/apache/karaf/shell/console/EXECUTED":
return TYPE_SHELL;
case "org/osgi/service/log/LogEntry/LOG_ERROR":
case "org/osgi/service/log/LogEntry/LOG_WARNING":
case "org/osgi/service/log/LogEntry/LOG_INFO":
case "org/osgi/service/log/LogEntry/LOG_DEBUG":
case "org/osgi/service/log/LogEntry/LOG_OTHER":
return TYPE_LOG;
case "org/osgi/framework/ServiceEvent/REGISTERED":
case "org/osgi/framework/ServiceEvent/MODIFIED":
case "org/osgi/framework/ServiceEvent/UNREGISTERING":
return TYPE_SERVICE;
case "org/osgi/framework/BundleEvent/INSTALLED":
case "org/osgi/framework/BundleEvent/STARTED":
case "org/osgi/framework/BundleEvent/STOPPED":
case "org/osgi/framework/BundleEvent/UPDATED":
case "org/osgi/framework/BundleEvent/UNINSTALLED":
case "org/osgi/framework/BundleEvent/RESOLVED":
case "org/osgi/framework/BundleEvent/UNRESOLVED":
case "org/osgi/framework/BundleEvent/STARTING":
case "org/osgi/framework/BundleEvent/STOPPING":
return TYPE_BUNDLE;
case "org/apache/karaf/login/ATTEMPT":
case "org/apache/karaf/login/SUCCESS":
case "org/apache/karaf/login/FAILURE":
case "org/apache/karaf/login/LOGOUT":
return TYPE_LOGIN;
case "javax/management/MBeanServer/CREATEMBEAN":
case "javax/management/MBeanServer/REGISTERMBEAN":
case "javax/management/MBeanServer/UNREGISTERMBEAN":
case "javax/management/MBeanServer/GETOBJECTINSTANCE":
case "javax/management/MBeanServer/QUERYMBEANS":
case "javax/management/MBeanServer/ISREGISTERED":
case "javax/management/MBeanServer/GETMBEANCOUNT":
case "javax/management/MBeanServer/GETATTRIBUTE":
case "javax/management/MBeanServer/GETATTRIBUTES":
case "javax/management/MBeanServer/SETATTRIBUTE":
case "javax/management/MBeanServer/SETATTRIBUTES":
case "javax/management/MBeanServer/INVOKE":
case "javax/management/MBeanServer/GETDEFAULTDOMAIN":
case "javax/management/MBeanServer/GETDOMAINS":
case "javax/management/MBeanServer/ADDNOTIFICATIONLISTENER":
case "javax/management/MBeanServer/GETMBEANINFO":
case "javax/management/MBeanServer/ISINSTANCEOF":
case "javax/management/MBeanServer/INSTANTIATE":
case "javax/management/MBeanServer/DESERIALIZE":
case "javax/management/MBeanServer/GETCLASSLOADERFOR":
case "javax/management/MBeanServer/GETCLASSLOADER":
return TYPE_JMX;
case "org/osgi/framework/FrameworkEvent/STARTED":
case "org/osgi/framework/FrameworkEvent/ERROR":
case "org/osgi/framework/FrameworkEvent/PACKAGES_REFRESHED":
case "org/osgi/framework/FrameworkEvent/STARTLEVEL_CHANGED":
case "org/osgi/framework/FrameworkEvent/WARNING":
case "org/osgi/framework/FrameworkEvent/INFO":
case "org/osgi/framework/FrameworkEvent/STOPPED":
case "org/osgi/framework/FrameworkEvent/STOPPED_UPDATE":
case "org/osgi/framework/FrameworkEvent/STOPPED_BOOTCLASSPATH_MODIFIED":
case "org/osgi/framework/FrameworkEvent/WAIT_TIMEDOUT":
return TYPE_FRAMEWORK;
case "org/osgi/service/web/DEPLOYING":
case "org/osgi/service/web/DEPLOYED":
case "org/osgi/service/web/UNDEPLOYING":
case "org/osgi/service/web/UNDEPLOYED":
return TYPE_WEB;
case "org/apache/karaf/features/repositories/ADDED":
case "org/apache/karaf/features/repositories/REMOVED":
return TYPE_REPOSITORIES;
case "org/apache/karaf/features/features/INSTALLED":
case "org/apache/karaf/features/features/UNINSTALLED":
return TYPE_FEATURES;
case "org/osgi/service/blueprint/container/CREATING":
case "org/osgi/service/blueprint/container/CREATED":
case "org/osgi/service/blueprint/container/DESTROYING":
case "org/osgi/service/blueprint/container/DESTROYED":
case "org/osgi/service/blueprint/container/FAILURE":
case "org/osgi/service/blueprint/container/GRACE_PERIOD":
case "org/osgi/service/blueprint/container/WAITING":
return TYPE_BLUEPRINT;
default:
return TYPE_UNKNOWN;
}
}