File tree 1 file changed +0
-16
lines changed
sentinel-core/src/main/java/com/alibaba/csp/sentinel/slots
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 21
21
import com .alibaba .csp .sentinel .slotchain .ProcessorSlot ;
22
22
import com .alibaba .csp .sentinel .slotchain .ProcessorSlotChain ;
23
23
import com .alibaba .csp .sentinel .slotchain .SlotChainBuilder ;
24
- import com .alibaba .csp .sentinel .spi .SpiOrder ;
25
24
import com .alibaba .csp .sentinel .util .SpiLoader ;
26
25
27
26
import java .util .List ;
34
33
*/
35
34
public class DefaultSlotChainBuilder implements SlotChainBuilder {
36
35
37
- static {
38
- List <ProcessorSlot > sortedSlotList = SpiLoader .loadPrototypeInstanceListSorted (ProcessorSlot .class );
39
- for (ProcessorSlot slot : sortedSlotList ) {
40
- String slotClassCanonicalName = slot .getClass ().getCanonicalName ();
41
- int order ;
42
- if (slot .getClass ().isAnnotationPresent (SpiOrder .class )) {
43
- SpiOrder spiOrder = slot .getClass ().getAnnotation (SpiOrder .class );
44
- order = spiOrder .value ();
45
- } else {
46
- order = SpiOrder .LOWEST_PRECEDENCE ;
47
- }
48
- RecordLog .info ("[DefaultSlotChainBuilder]Found ProcessorSlot {} with order {}" , slotClassCanonicalName , order );
49
- }
50
- }
51
-
52
36
@ Override
53
37
public ProcessorSlotChain build () {
54
38
ProcessorSlotChain chain = new DefaultProcessorSlotChain ();
You can’t perform that action at this time.
0 commit comments