public static BeanMethodActionRule newInstance ( String id , String beanId , String methodName , Boolean hidden ) throws IllegalRuleException { if ( methodName == null ) { throw new IllegalRuleException ( "The 'action' element requires an 'method' attribute" ) ; } BeanMethodActionRule beanMethodActionRule = new BeanMethodActionRule ( ) ; beanMethodActionRule . setActionId ( id ) ; beanMethodActionRule . setBeanId ( beanId ) ; beanMethodActionRule . setMethodName ( methodName ) ; beanMethodActionRule . setHidden ( hidden ) ; return beanMethodActionRule ; }
Returns a new instance of BeanActionRule .