creates a service that executes the given action as the #onstop stopevent implementation . this can be used to of a service implementation from a lambda expression , instead of creating an anonymous impl of service . concode_field_sep PlaceHolder placeHolder concode_field_sep String getName concode_elem_sep void onStart concode_elem_sep Service startup concode_elem_sep void onStop
Service function ( String arg0 , Action < ? super StopEvent > arg1 ) { return new Service ( ) { @ Override public String getName ( ) { return arg0 ; } @ Override public void onStop ( StopEvent arg2 ) throws Exception { arg1 . execute ( arg2 ) ; } } ; }