public Role(String roleName,List<ObjectName> roleValue) throws IllegalArgumentException {
  if (roleName == null || roleValue == null) {
    String excMsg="Invalid parameter";
    throw new IllegalArgumentException(excMsg);
  }
  setRoleName(roleName);
  setRoleValue(roleValue);
  return;
}

public Role ( String roleName , List < ObjectName > roleValue ) throws IllegalArgumentException { if ( roleName == null || roleValue == null ) { String excMsg = "Invalid parameter" ; throw new IllegalArgumentException ( excMsg ) ; } setRoleName ( roleName ) ; setRoleValue ( roleValue ) ; return ; }
< p > make a new role object . no check is made that the objectnames in the role value exist in an mbean server . that check will be made when the role is set in a relation .
