Commit d1223627 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Constructor is now public to work with group providers better (JM-315).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1579 b35dd754-fafc-0310-a699-88a17e54d16e
parent 662a67d4
...@@ -53,7 +53,9 @@ public class Group implements Cacheable { ...@@ -53,7 +53,9 @@ public class Group implements Cacheable {
private Collection<String> administrators; private Collection<String> administrators;
/** /**
* Constructs a new group. * Constructs a new group. Note: this constructor is intended for implementors of the
* {@link GroupProvider} interface. To create a new group, use the
* {@link GroupManager#createGroup(String)} method.
* *
* @param provider the group provider. * @param provider the group provider.
* @param name the name. * @param name the name.
...@@ -61,7 +63,7 @@ public class Group implements Cacheable { ...@@ -61,7 +63,7 @@ public class Group implements Cacheable {
* @param members a Collection of the group members. * @param members a Collection of the group members.
* @param administrators a Collection of the group administrators. * @param administrators a Collection of the group administrators.
*/ */
protected Group(GroupProvider provider, String name, String description, public Group(GroupProvider provider, String name, String description,
Collection<String> members, Collection<String> administrators) Collection<String> members, Collection<String> administrators)
{ {
this.provider = provider; this.provider = provider;
...@@ -332,6 +334,9 @@ public class Group implements Cacheable { ...@@ -332,6 +334,9 @@ public class Group implements Cacheable {
private class PropertiesMap extends AbstractMap { private class PropertiesMap extends AbstractMap {
public Object put(Object key, Object value) { public Object put(Object key, Object value) {
if (key == null || value == null) {
throw new NullPointerException();
}
Map eventParams = new HashMap(); Map eventParams = new HashMap();
Object answer; Object answer;
String keyString = (String) key; String keyString = (String) key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment