* Implement getDbProperties() for db.properties introspection.
* Implement getDbSource().
This commit is contained in:
		
							parent
							
								
									61f9b6476e
								
							
						
					
					
						commit
						d8a508c55e
					
				
					 1 changed files with 19 additions and 2 deletions
				
			
		|  | @ -17,6 +17,7 @@ | |||
| package helma.framework.core; | ||||
| 
 | ||||
| import helma.objectmodel.INode; | ||||
| import helma.objectmodel.db.DbSource; | ||||
| import helma.util.CronJob; | ||||
| import helma.util.SystemMap; | ||||
| import helma.util.WrappedMap; | ||||
|  | @ -391,9 +392,9 @@ public class ApplicationBean implements Serializable { | |||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Get a wrapper around the app's properties | ||||
|      * | ||||
|      * | ||||
|      * @return ... | ||||
|      * @return a readonly wrapper around the application's app properties | ||||
|      */ | ||||
|     public Map getProperties() { | ||||
|         if (properties == null) { | ||||
|  | @ -402,6 +403,22 @@ public class ApplicationBean implements Serializable { | |||
|         return properties; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Get a wrapper around the app's db properties | ||||
|      * | ||||
|      * @return a readonly wrapper around the application's db properties | ||||
|      */ | ||||
|     public Map getDbProperties() { | ||||
|         return new WrappedMap(app.getDbProperties(), true); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Return a DbSource object for a given name. | ||||
|      */ | ||||
|     public DbSource getDbSource(String name) { | ||||
|         return app.getDbSource(name); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * | ||||
|      * | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue