Author: chris.laprun(a)jboss.com
Date: 2011-09-20 12:35:46 -0400 (Tue, 20 Sep 2011)
New Revision: 7467
Modified:
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java
Log:
- Use containsConsumer instead of getConsumer to avoid creating a consumer when not
needed.
Modified:
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java
===================================================================
---
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java 2011-09-20
11:04:13 UTC (rev 7466)
+++
components/wsrp/trunk/admin-gui/src/main/java/org/gatein/wsrp/admin/ui/ConsumerManagerBean.java 2011-09-20
16:35:46 UTC (rev 7467)
@@ -1,6 +1,6 @@
/*
* JBoss, a division of Red Hat
- * Copyright 2010, Red Hat Middleware, LLC, and individual
+ * Copyright 2011, Red Hat Middleware, LLC, and individual
* contributors as indicated by the @authors tag. See the
* copyright.txt in the distribution for a full listing of
* individual contributors.
@@ -422,6 +422,6 @@
public boolean isAlreadyExisting(String objectName)
{
- return getRegistry().getConsumer(objectName) != null;
+ return getRegistry().containsConsumer(objectName);
}
}
Show replies by date