private int getPriority ( ResourceReader o1 ) { int priority = 0 ; if ( o1 instanceof ServletContextResourceReader ) { priority = baseDirHighPriority ? 5 : 4 ; } else if ( o1 instanceof FileSystemResourceReader ) { priority = baseDirHighPriority ? 4 : 5 ; } else if ( o1 instanceof CssSmartSpritesResourceReader ) { priority = 1 ; } else if ( o1 instanceof ResourceGenerator ) { if ( ( ( ResourceGenerator ) o1 ) . getResolver ( ) . getType ( ) . equals ( ResolverType . PREFIXED ) ) { priority = 3 ; } else { priority = 2 ; } } return priority ; }
Returns the priority of the resource reader