RegisteredService function ( final Service arg0 ) { final Collection < RegisteredService > loc0 = convertToTreeSet ( ) ; if ( loc0 . isEmpty ( ) ) { return this . disabledRegisteredService ; } for ( final RegisteredService loc1 : loc0 ) { if ( loc1 . matches ( arg0 ) ) { return loc1 ; } } return null ; }
note , if the repository is empty , this implementation will return a default service to grant all access . this preserves default cas behavior . concode_field_sep ConcurrentHashMap<Long,RegisteredService> services concode_elem_sep RegisteredService disabledRegisteredService concode_elem_sep Logger log concode_elem_sep ServiceRegistryDao serviceRegistryDao concode_field_sep Collection<RegisteredService> getAllServices concode_elem_sep void reload concode_elem_sep void load concode_elem_sep boolean matchesExistingService concode_elem_sep void save concode_elem_sep RegisteredService constructDefaultRegisteredService concode_elem_sep RegisteredService delete concode_elem_sep TreeSet<RegisteredService> convertToTreeSet