KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > container > jmx > ExoQueryExp


1 /***************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. *
3  * Please look at license.txt in info directory for more license detail. *
4  **************************************************************************/

5 package org.exoplatform.container.jmx;
6
7 import javax.management.QueryExp JavaDoc;
8 import javax.management.MBeanServer JavaDoc ;
9 import javax.management.* ;
10
11 /**
12  * Jul 30, 2004
13  * @author: Tuan Nguyen
14  * @email: tuan08@users.sourceforge.net
15  * @version: $Id: ExoQueryExp.java,v 1.1 2004/07/31 14:52:22 tuan08 Exp $
16  */

17 public class ExoQueryExp implements QueryExp JavaDoc {
18     
19   private String JavaDoc domain_ ;
20   
21   public ExoQueryExp(String JavaDoc domain) {
22     domain_ = domain ;
23   }
24   
25   public void setMBeanServer(MBeanServer JavaDoc s) {
26     
27   }
28   
29   public boolean apply(ObjectName name) throws BadStringOperationException,
30                                                                                 BadBinaryOpValueExpException,
31                                                                                 BadAttributeValueExpException,
32                                                                                 InvalidApplicationException {
33         return domain_.equals(name.getDomain());
34     }
35 }
Popular Tags