private boolean isProcessXMLNeeded ( InjectionProcessorProvider < ? , ? > provider ) { final boolean isTraceOn = TraceComponent . isAnyTracingEnabled ( ) ; if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . entry ( tc , "isProcessXMLNeeded: " + provider ) ; List < Class < ? extends JNDIEnvironmentRef > > refClasses = provider . getJNDIEnvironmentRefClasses ( ) ; if ( refClasses == null ) { if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isProcessXMLNeeded: true (unknown)" ) ; return true ; } for ( Class < ? extends JNDIEnvironmentRef > refClass : refClasses ) { List < ? extends JNDIEnvironmentRef > refs = ivNameSpaceConfig . getJNDIEnvironmentRefs ( refClass ) ; if ( refs != null && ! refs . isEmpty ( ) ) { if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isProcessXMLNeeded: true (" + refClass . getName ( ) + ")" ) ; return true ; } } if ( isTraceOn && tc . isEntryEnabled ( ) ) Tr . exit ( tc , "isProcessXMLNeeded: false" ) ; return false ; }
Returns true if the specified processor must be created to process XML .