@@ -99,7 +99,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
9999 if (logger .isLogEnabled (Level .DEBUG ))
100100 {
101101 logger .log (Level .DEBUG ,
102- "doFindMethod: Looking for method " + targetClass .getName () + "." + getMethodName (), null );
102+ "doFindMethod: Looking for method {0}.{1}" , null , targetClass .getName (), getMethodName ());
103103 }
104104
105105 // Case 1 - Service reference parameter
@@ -111,8 +111,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
111111 {
112112 if (logger .isLogEnabled (Level .DEBUG ))
113113 {
114- logger .log (Level .DEBUG , "doFindMethod: Found Method " + method ,
115- null );
114+ logger .log (Level .DEBUG , "doFindMethod: Found Method {0}" ,null , method );
116115 }
117116 return new MethodInfo <>(method , Collections .singletonList (ValueUtils .ValueType .ref_serviceReference ));
118117 }
@@ -132,8 +131,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
132131 {
133132 if (logger .isLogEnabled (Level .DEBUG ))
134133 {
135- logger .log (Level .DEBUG , "doFindMethod: Found Method " + method ,
136- null );
134+ logger .log (Level .DEBUG , "doFindMethod: Found Method {0}" , null , method );
137135 }
138136 return new MethodInfo <>(method , Collections .singletonList (ValueUtils .ValueType .ref_serviceObjects ));
139137 }
@@ -153,8 +151,8 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
153151 {
154152 logger .log (
155153 Level .DEBUG ,
156- "doFindMethod: No method taking ServiceReference found, checking method taking "
157- + parameterClass .getName (), null );
154+ "doFindMethod: No method taking ServiceReference found, checking method taking {0}" ,
155+ null , parameterClass .getName () );
158156 }
159157
160158 // Case 3 - Service object parameter
@@ -165,8 +163,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
165163 {
166164 if (logger .isLogEnabled (Level .DEBUG ))
167165 {
168- logger .log (Level .DEBUG , "doFindMethod: Found Method " + method ,
169- null );
166+ logger .log (Level .DEBUG , "doFindMethod: Found Method {0}" , null , method );
170167 }
171168 return new MethodInfo <>(method ,
172169 Collections .singletonList (ValueUtils .ValueType .ref_serviceType ));
@@ -185,8 +182,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
185182 {
186183 if (logger .isLogEnabled (Level .DEBUG ))
187184 {
188- logger .log (Level .DEBUG , "doFindMethod: Found Method " + method ,
189- null );
185+ logger .log (Level .DEBUG , "doFindMethod: Found Method {0}" , null , method );
190186 }
191187 return new MethodInfo <>(method ,
192188 Collections .singletonList (ValueUtils .ValueType .ref_serviceType ));
@@ -208,7 +204,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
208204 if (logger .isLogEnabled (Level .DEBUG ))
209205 {
210206 logger .log (Level .DEBUG ,
211- "doFindMethod: Found Method " + method , null );
207+ "doFindMethod: Found Method {0}" , null , method );
212208 }
213209 return new MethodInfo <>(method ,
214210 Collections .singletonList (ValueUtils .ValueType .ref_map ));
@@ -233,7 +229,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
233229 if (logger .isLogEnabled (Level .DEBUG ))
234230 {
235231 logger .log (Level .DEBUG ,
236- "doFindMethod: Found Method " + method , null );
232+ "doFindMethod: Found Method {0}" , null , method );
237233 }
238234 List <ValueUtils .ValueType > paramTypes = new ArrayList <>(2 );
239235 paramTypes .add (ValueUtils .ValueType .ref_serviceType );
@@ -256,7 +252,7 @@ protected MethodInfo<List<ValueUtils.ValueType>> doFindMethod( final Class<?> ta
256252 if (logger .isLogEnabled (Level .DEBUG ))
257253 {
258254 logger .log (Level .DEBUG ,
259- "doFindMethod: Found Method " + method , null );
255+ "doFindMethod: Found Method {0}" , null , method );
260256 }
261257 List <ValueUtils .ValueType > paramTypes = new ArrayList <>(2 );
262258 paramTypes .add (ValueUtils .ValueType .ref_serviceType );
@@ -352,7 +348,7 @@ else if ( paramType.getName().equals(ClassUtils.FORMATTER_LOGGER_CLASS) )
352348 if (logger .isLogEnabled (Level .DEBUG ))
353349 {
354350 logger .log (Level .DEBUG ,
355- "doFindMethod: Found Method " + m , null );
351+ "doFindMethod: Found Method {0}" , null , m );
356352 }
357353 return new MethodInfo <>(m , paramTypes );
358354 }
@@ -366,8 +362,7 @@ else if (logger.isLogEnabled(Level.WARN))
366362 {
367363 logger .log (
368364 Level .WARN ,
369- "doFindMethod: Cannot check for methods taking parameter class " + m_referenceClassName + ": "
370- + targetClass .getName () + " does not see it" , null );
365+ "doFindMethod: Cannot check for methods taking parameter class {0}: {1} does not see it" , null , m_referenceClassName , targetClass .getName ());
371366 }
372367
373368 // if at least one suitable method could be found but none of
@@ -481,8 +476,7 @@ private Method getServiceObjectAssignableMethod( final Class<?> targetClass, fin
481476 {
482477 logger .log (
483478 Level .DEBUG ,
484- "getServiceObjectAssignableMethod: Checking " + candidateBindMethods .length
485- + " declared method in class " + targetClass .getName (), null );
479+ "getServiceObjectAssignableMethod: Checking {0} declared method in class {1}" , null , candidateBindMethods .length , targetClass .getName ());
486480 }
487481
488482 // Iterate over them
@@ -492,7 +486,7 @@ private Method getServiceObjectAssignableMethod( final Class<?> targetClass, fin
492486 if (logger .isLogEnabled (Level .DEBUG ))
493487 {
494488 logger .log (Level .DEBUG ,
495- "getServiceObjectAssignableMethod: Checking " + method , null );
489+ "getServiceObjectAssignableMethod: Checking {0}" , null , method );
496490 }
497491
498492 // Get the parameters for the current method
@@ -507,7 +501,7 @@ private Method getServiceObjectAssignableMethod( final Class<?> targetClass, fin
507501 if (logger .isLogEnabled (Level .DEBUG ))
508502 {
509503 logger .log (Level .DEBUG ,
510- "getServiceObjectAssignableMethod: Considering " + method , null );
504+ "getServiceObjectAssignableMethod: Considering {0}" , null , method );
511505 }
512506
513507 // Get the parameter type
@@ -530,8 +524,8 @@ else if (logger.isLogEnabled(Level.DEBUG))
530524 {
531525 logger .log (
532526 Level .DEBUG ,
533- "getServiceObjectAssignableMethod: Parameter failure: Required " + theParameter + " ; actual "
534- + parameterClass .getName (), null );
527+ "getServiceObjectAssignableMethod: Parameter failure: Required {0} ; actual {1}" ,
528+ null , theParameter , parameterClass .getName ());
535529 }
536530
537531 }
0 commit comments