geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vamsic...@apache.org
Subject svn commit: r487523 - in /geronimo/server: branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/ branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/consol...
Date Fri, 15 Dec 2006 11:55:40 GMT
Author: vamsic007
Date: Fri Dec 15 03:55:39 2006
New Revision: 487523

URL: http://svn.apache.org/viewvc?view=rev&rev=487523
Log:
Use of PortletManager.getManagedBeans(request, CertificationAuthority.class) is resulting
in ProxyManager warning messages like "Could not load interface org.apache.geronimo.security.ca.GeronimoCertificationAuthority
in provided ClassLoader for ... ".  Switching to KernelManagementHelper.getGBeansImplementing(CertificationAuthority.class)
etc to supress the waring messages.

Modified:
    geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
    geronimo/server/branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
    geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java

Modified: geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java?view=diff&rev=487523&r1=487522&r2=487523
==============================================================================
--- geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
(original)
+++ geronimo/server/branches/1.2/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
Fri Dec 15 03:55:39 2006
@@ -89,7 +89,7 @@
      * @return  null if a CA GBean is not running.
      */
     protected CertificationAuthority getCertificationAuthority(PortletRequest request) {
-        Object[] cas = PortletManager.getManagedBeans(request, CertificationAuthority.class);
+        Object[] cas = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificationAuthority.class);
         return (CertificationAuthority)(cas != null && cas.length > 0 ? cas[0]
: null);
     }
 
@@ -109,7 +109,7 @@
      * @return  null if a CertificateRequestStore GBean is not running.
      */
     protected CertificateRequestStore getCertificateRequestStore(PortletRequest request)
{
-        Object[] crs = PortletManager.getManagedBeans(request, CertificateRequestStore.class);
+        Object[] crs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateRequestStore.class);
         return (CertificateRequestStore)(crs != null && crs.length > 0 ? crs[0]
: null);
     }
 
@@ -119,7 +119,7 @@
      * @return  null if a CertificateStore GBean is not running.
      */
     protected CertificateStore getCertificateStore(PortletRequest request) {
-        Object[] cs = PortletManager.getManagedBeans(request, CertificateStore.class);
+        Object[] cs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateStore.class);
         return (CertificateStore)(cs != null && cs.length > 0 ? cs[0] : null);
     }
 }

Modified: geronimo/server/branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java?view=diff&rev=487523&r1=487522&r2=487523
==============================================================================
--- geronimo/server/branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
(original)
+++ geronimo/server/branches/2.0-M1/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
Fri Dec 15 03:55:39 2006
@@ -89,7 +89,7 @@
      * @return  null if a CA GBean is not running.
      */
     protected CertificationAuthority getCertificationAuthority(PortletRequest request) {
-        Object[] cas = PortletManager.getManagedBeans(request, CertificationAuthority.class);
+        Object[] cas = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificationAuthority.class);
         return (CertificationAuthority)(cas != null && cas.length > 0 ? cas[0]
: null);
     }
 
@@ -109,7 +109,7 @@
      * @return  null if a CertificateRequestStore GBean is not running.
      */
     protected CertificateRequestStore getCertificateRequestStore(PortletRequest request)
{
-        Object[] crs = PortletManager.getManagedBeans(request, CertificateRequestStore.class);
+        Object[] crs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateRequestStore.class);
         return (CertificateRequestStore)(crs != null && crs.length > 0 ? crs[0]
: null);
     }
 
@@ -119,7 +119,7 @@
      * @return  null if a CertificateStore GBean is not running.
      */
     protected CertificateStore getCertificateStore(PortletRequest request) {
-        Object[] cs = PortletManager.getManagedBeans(request, CertificateStore.class);
+        Object[] cs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateStore.class);
         return (CertificateStore)(cs != null && cs.length > 0 ? cs[0] : null);
     }
 }

Modified: geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java?view=diff&rev=487523&r1=487522&r2=487523
==============================================================================
--- geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
(original)
+++ geronimo/server/trunk/applications/console/geronimo-console-standard/src/main/java/org/apache/geronimo/console/ca/BaseCAHandler.java
Fri Dec 15 03:55:39 2006
@@ -89,7 +89,7 @@
      * @return  null if a CA GBean is not running.
      */
     protected CertificationAuthority getCertificationAuthority(PortletRequest request) {
-        Object[] cas = PortletManager.getManagedBeans(request, CertificationAuthority.class);
+        Object[] cas = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificationAuthority.class);
         return (CertificationAuthority)(cas != null && cas.length > 0 ? cas[0]
: null);
     }
 
@@ -109,7 +109,7 @@
      * @return  null if a CertificateRequestStore GBean is not running.
      */
     protected CertificateRequestStore getCertificateRequestStore(PortletRequest request)
{
-        Object[] crs = PortletManager.getManagedBeans(request, CertificateRequestStore.class);
+        Object[] crs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateRequestStore.class);
         return (CertificateRequestStore)(crs != null && crs.length > 0 ? crs[0]
: null);
     }
 
@@ -119,7 +119,7 @@
      * @return  null if a CertificateStore GBean is not running.
      */
     protected CertificateStore getCertificateStore(PortletRequest request) {
-        Object[] cs = PortletManager.getManagedBeans(request, CertificateStore.class);
+        Object[] cs = PortletManager.getManagementHelper(request).getGBeansImplementing(CertificateStore.class);
         return (CertificateStore)(cs != null && cs.length > 0 ? cs[0] : null);
     }
 }



Mime
View raw message