1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2014 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
16
16
17
17
package example .scannable ;
18
18
19
+ import java .util .Comparator ;
19
20
import java .util .List ;
20
21
import java .util .concurrent .Future ;
21
22
import javax .annotation .PostConstruct ;
27
28
import org .springframework .context .ApplicationEventPublisher ;
28
29
import org .springframework .context .ConfigurableApplicationContext ;
29
30
import org .springframework .context .MessageSource ;
30
- import org .springframework .context .annotation .Lazy ;
31
31
import org .springframework .context .annotation .DependsOn ;
32
+ import org .springframework .context .annotation .Lazy ;
32
33
import org .springframework .context .support .AbstractApplicationContext ;
33
34
import org .springframework .core .io .ResourceLoader ;
34
35
import org .springframework .core .io .support .ResourcePatternResolver ;
43
44
@ Service @ Lazy @ DependsOn ("myNamedComponent" )
44
45
public class FooServiceImpl implements FooService {
45
46
47
+ // Just to test ASM5's bytecode parsing of INVOKESPECIAL/STATIC on interfaces
48
+ private static final Comparator <MessageBean > COMPARATOR_BY_MESSAGE = Comparator .comparing (MessageBean ::getMessage );
49
+
50
+
46
51
@ Autowired private FooDao fooDao ;
47
52
48
53
@ Autowired public BeanFactory beanFactory ;
@@ -65,6 +70,7 @@ public class FooServiceImpl implements FooService {
65
70
66
71
private boolean initCalled = false ;
67
72
73
+
68
74
@ PostConstruct
69
75
private void init () {
70
76
if (this .initCalled ) {
0 commit comments