Here you can find the source of matchType(MBeanNotificationInfo aInfo, String aMatch)
Parameter | Description |
---|---|
aInfo | a parameter |
aMatch | a parameter |
protected static String matchType(MBeanNotificationInfo aInfo, String aMatch)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import javax.management.MBeanNotificationInfo; public class Main { /**//from w ww . j av a 2 s .co m * Method used to determine the type of notification to be released. * * @param aInfo * @param aMatch * @return String */ protected static String matchType(MBeanNotificationInfo aInfo, String aMatch) { String[] lTypes = aInfo.getNotifTypes(); for (String lType : lTypes) { if (lType.endsWith(aMatch)) { return lType; } } return lTypes[0]; } }