Search in sources :

Example 16 with MessageRecordFactory

use of jp.ossc.nimbus.service.message.MessageRecordFactory in project nimbus by nimbus-org.

the class GroupCategoryService method setLabels.

// GroupCategoryServiceMBeanのJavaDoc
public void setLabels(Properties labels) throws IllegalArgumentException {
    final Iterator ranges = labels.keySet().iterator();
    while (ranges.hasNext()) {
        final String rangeStr = (String) ranges.next();
        final Range range = parseRange(rangeStr);
        if (labelMap.containsKey(new Integer(range.min)) || labelMap.containsKey(new Integer(range.max))) {
            final MessageRecordFactory message = getMessageRecordFactory();
            throw new IllegalArgumentException(message.findMessage(SCGRY00003));
        }
        labelMap.put(range, labels.get(rangeStr));
    }
}
Also used : MessageRecordFactory(jp.ossc.nimbus.service.message.MessageRecordFactory)

Aggregations

MessageRecordFactory (jp.ossc.nimbus.service.message.MessageRecordFactory)16 Log (org.apache.commons.logging.Log)2 LogConfigurationException (org.apache.commons.logging.LogConfigurationException)2