public String getMethodNameFromDD ( List < LifecycleCallback > callbacks , String classname ) { String methodName = null ; for ( LifecycleCallback callback : callbacks ) { // lifecycle-callback-class default to the enclosing component class Client String callbackClassName ; callbackClassName = callback . getClassName ( ) ; if ( callbackClassName == null ) { callbackClassName = mainClassName ; } if ( callbackClassName . equals ( classname ) ) { if ( methodName == null ) { methodName = callback . getMethodName ( ) ; } else { Tr . warning ( tc , "DUPLICATE_CALLBACK_METHOD_CWWKC2454W" , new Object [ ] { methodName , classname } ) ; } } } return methodName ; }
Gets the lifecycle callback method name from the application client module deployment descriptor