protected static void addMethodBinders ( final BindingManager manager, final Method method )
    {
        final ControllerBinder[] binders = method.getAnnotationsByType ( ControllerBinder.class );

        if ( binders == null )
        {
            return;
        }

        for ( final ControllerBinder binder : binders )
        {
            try
            {
                final Binder binderImpl = binder.value ().newInstance ();
                if ( binderImpl instanceof ControllerBinderParametersAware )
                {
                    ( (ControllerBinderParametersAware)binderImpl ).setParameters ( binder.parameters () );
                }
                manager.addBinder ( binderImpl );
            }
            catch ( InstantiationException | IllegalAccessException e )
            {
                manager.addBinder ( new ErrorBinder ( e ) );
            }
        }
    }
protected static void addMethodBinders ( final BindingManager manager, final Method method )
    {
        final ControllerBinder[] binders = method.getAnnotationsByType ( ControllerBinder.class );

        if ( binders == null )
        {
            return;
        }

        for ( final ControllerBinder binder : binders )
        {
            try
            {
                final Binder binderImpl = binder.value ().newInstance ();
                if ( binderImpl instanceof ControllerBinderParametersAware )
                {
                    ( (ControllerBinderParametersAware)binderImpl ).setParameters ( binder.parameters () );
                }
                manager.addBinder ( binderImpl );
            }
            catch ( InstantiationException | IllegalAccessException e )
            {
                manager.addBinder ( new ErrorBinder ( e ) );
            }
        }
    }
protected static void addMethodBinders ( final BindingManager manager , final Method method ) { final ControllerBinder [ ] binders = method . getAnnotationsByType ( ControllerBinder . class ) ; if ( binders == null ) { return ; } for ( final ControllerBinder binder : binders ) { try { final Binder binderImpl = binder . value ( ) . newInstance ( ) ; if ( binderImpl instanceof ControllerBinderParametersAware ) { ( ( ControllerBinderParametersAware ) binderImpl ) . setParameters ( binder . parameters ( ) ) ; } manager . addBinder ( binderImpl ) ; } catch ( InstantiationException | IllegalAccessException e ) { manager . addBinder ( new ErrorBinder ( e ) ) ; } } }
Add custom binders assigned to the method
<p>
Custom binders assigned to the method will be added to the binding
manager instance.
</p>

@param manager
the manager to add binders to
@param method
the method to evaluate for additional binders
Add custom binders assigned to the method <p > Custom binders assigned to the method will be added to the binding manager instance . < / p >