[Yanel-commits] rev 42266 - public/yanel/trunk/src/core/java/org/wyona/yanel/core

michi at wyona.com michi at wyona.com
Mon Apr 6 13:32:34 CEST 2009


Author: michi
Date: 2009-04-06 13:32:34 +0200 (Mon, 06 Apr 2009)
New Revision: 42266

Modified:
   public/yanel/trunk/src/core/java/org/wyona/yanel/core/Yanel.java
Log:
various methods introduced such that one does not have to use the getBeanFactory method anymore

Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/Yanel.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/Yanel.java	2009-04-06 11:03:32 UTC (rev 42265)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/Yanel.java	2009-04-06 11:32:34 UTC (rev 42266)
@@ -125,7 +125,12 @@
         return yanel;
     }
    
+    /**
+     * Some resources are still using this, such as for example src/contributions/resources/wiki/src/java/org/wyona/yanel/impl/resources/WikiResource.java
+     * @deprecated
+     */
     public BeanFactory getBeanFactory() {
+        log.warn("DEPRECATED");
         return applicationContext;
     }
     
@@ -139,6 +144,38 @@
     }
     
     /**
+     * Get policy manager factory
+     * @param id Policy manager factory bean ID
+     */
+    public org.wyona.security.core.PolicyManagerFactory getPolicyManagerFactory(String id) {
+        return (org.wyona.security.core.PolicyManagerFactory)applicationContext.getBean(id);
+    }
+    
+    /**
+     * Get identity manager factory
+     * @param id Identity manager factory bean ID
+     */
+    public org.wyona.security.core.IdentityManagerFactory getIdentityManagerFactory(String id) {
+        return (org.wyona.security.core.IdentityManagerFactory)applicationContext.getBean(id);
+    }
+    
+    /**
+     * Get sitetree implementation
+     * @param id Sitetree implementation bean ID
+     */
+    public org.wyona.yanel.core.navigation.Sitetree getSitetreeImpl(String id) {
+        return (org.wyona.yanel.core.navigation.Sitetree)applicationContext.getBean(id);
+    }
+    
+    /**
+     * Get map implementation
+     * @param id Map implementation bean ID
+     */
+    public org.wyona.yanel.core.map.Map getMapImpl(String id) {
+        return (org.wyona.yanel.core.map.Map)applicationContext.getBean(id);
+    }
+    
+    /**
      *
      */
     public Map getMap() throws Exception {



More information about the Yanel-commits mailing list