|
@@ -74,9 +74,7 @@ import org.springframework.util.Assert;
|
|
*/
|
|
*/
|
|
@Configuration
|
|
@Configuration
|
|
public class GlobalMethodSecurityConfiguration implements ImportAware {
|
|
public class GlobalMethodSecurityConfiguration implements ImportAware {
|
|
- @Autowired
|
|
|
|
private ApplicationContext context;
|
|
private ApplicationContext context;
|
|
- @Autowired(required=false)
|
|
|
|
private ObjectPostProcessor<Object> objectPostProcessor = new ObjectPostProcessor<Object>() {
|
|
private ObjectPostProcessor<Object> objectPostProcessor = new ObjectPostProcessor<Object>() {
|
|
@Override
|
|
@Override
|
|
public <T> T postProcess(T object) {
|
|
public <T> T postProcess(T object) {
|
|
@@ -337,6 +335,16 @@ public class GlobalMethodSecurityConfiguration implements ImportAware {
|
|
.fromMap(annotationAttributes);
|
|
.fromMap(annotationAttributes);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ public void setApplicationContext(ApplicationContext context) {
|
|
|
|
+ this.context = context;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Autowired(required=false)
|
|
|
|
+ public void setObjectPostProcessor(ObjectPostProcessor<Object> objectPostProcessor) {
|
|
|
|
+ this.objectPostProcessor = objectPostProcessor;
|
|
|
|
+ }
|
|
|
|
+
|
|
@SuppressWarnings("unchecked")
|
|
@SuppressWarnings("unchecked")
|
|
private <T> T lazyBean(Class<T> interfaceName) {
|
|
private <T> T lazyBean(Class<T> interfaceName) {
|
|
LazyInitTargetSource lazyTargetSource = new LazyInitTargetSource();
|
|
LazyInitTargetSource lazyTargetSource = new LazyInitTargetSource();
|