db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/interceptor InterceptorFactory.java
Date Wed, 09 Nov 2005 00:54:49 GMT
arminw      2005/11/08 16:54:49

  Modified:    src/java/org/apache/ojb/broker/util/interceptor Tag:
                        OJB_1_0_RELEASE InterceptorFactory.java
  Log:
  add default property value to avoid logging warn message
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.10.2.2  +3 -3      db-ojb/src/java/org/apache/ojb/broker/util/interceptor/Attic/InterceptorFactory.java
  
  Index: InterceptorFactory.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/interceptor/Attic/InterceptorFactory.java,v
  retrieving revision 1.10.2.1
  retrieving revision 1.10.2.2
  diff -u -r1.10.2.1 -r1.10.2.2
  --- InterceptorFactory.java	25 Jan 2005 20:00:53 -0000	1.10.2.1
  +++ InterceptorFactory.java	9 Nov 2005 00:54:49 -0000	1.10.2.2
  @@ -65,8 +65,8 @@
   	 */
   	public void configure(Configuration pConfig) throws ConfigurationException
   	{
  -		Class clazz = pConfig.getClass("InterceptorClass", null);
  -		setInterceptorClassToBeUsed(clazz);
  +		Class clazz = pConfig.getClass("InterceptorClass", Object.class);
  +		if(!clazz.equals(Object.class)) setInterceptorClassToBeUsed(clazz);
   	}
   
   	public Object createInterceptorFor(Object instanceToIntercept)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message