1 8 package mx4j.examples.services.relation; 9 10 import javax.management.relation.RelationTypeSupport ; 11 import javax.management.relation.RoleInfo ; 12 13 16 public class SimplePersonalLibrary extends RelationTypeSupport 17 { 18 19 public SimplePersonalLibrary(String relationTypeName) 20 { 21 super(relationTypeName); 22 23 try 24 { 25 RoleInfo ownerRoleInfo = new RoleInfo ("owner", 26 "mx4j.examples.services.relation.SimpleOwner", 28 true, true, 1, 1, 32 "Owner"); 33 addRoleInfo(ownerRoleInfo); 34 35 RoleInfo booksRoleInfo = new RoleInfo ("books", 36 "mx4j.examples.services.relation.SimpleBooks", 37 true, 38 true, 39 1, 4, 41 "Books"); 42 addRoleInfo(booksRoleInfo); 43 } 44 catch (Exception ex) 45 { 46 throw new RuntimeException (ex.getMessage()); 47 } 48 } 49 } | Popular Tags |