geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1088199 - /geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java
Date Sun, 03 Apr 2011 01:35:00 GMT
Author: xuhaihong
Date: Sun Apr  3 01:35:00 2011
New Revision: 1088199

URL: http://svn.apache.org/viewvc?rev=1088199&view=rev
Log:
Return SecurityService and TransactionService

Modified:
    geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java

Modified: geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java?rev=1088199&r1=1088198&r2=1088199&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java
(original)
+++ geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoWebBeansPlugin.java
Sun Apr  3 01:35:00 2011
@@ -229,6 +229,12 @@ public class GeronimoWebBeansPlugin
     public Properties doPrivilegedGetSystemProperties() {
         return System.getProperties();
     }
-    
 
+    @Override
+    public <T> T getSupportedService(Class<T> serviceClass) {
+        if (serviceClass == SecurityService.class || serviceClass == TransactionService.class)
{
+            return serviceClass.cast(this);
+        }
+        return super.getSupportedService(serviceClass);
+    }
 }



Mime
View raw message