removed Bootstrapper in favor of multiext
This commit is contained in:
@@ -29,6 +29,10 @@ grant codeBase "file:${catalina.base}/ext/-" {
|
||||
}
|
||||
```
|
||||
|
||||
### Dependencies
|
||||
|
||||
This extension requires the [`multiext-activiti-app-ext`](https://git.inteligr8.com/inteligr8/multiext-activiti-app-ext). Without it, APS will fail to startup. It is very small and requires no additional configuration.
|
||||
|
||||
## Support Matrix
|
||||
|
||||
| Auth Activiti App Extension | Activiti App |
|
||||
|
@@ -1,32 +0,0 @@
|
||||
package com.inteligr8.activiti.auth;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.context.ApplicationContext;
|
||||
import org.springframework.context.annotation.Primary;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.activiti.api.boot.BootstrapConfigurer;
|
||||
|
||||
@Component("bootstrap.proxy")
|
||||
@Primary
|
||||
public class Bootstrapper implements BootstrapConfigurer {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
|
||||
@Override
|
||||
public void applicationContextInitialized(ApplicationContext applicationContext) {
|
||||
Map<String, BootstrapConfigurer> bootstraps = applicationContext.getBeansOfType(BootstrapConfigurer.class);
|
||||
bootstraps.remove("bootstrap.proxy");
|
||||
|
||||
this.logger.debug("Executing {} bootstrap configurers", bootstraps.size());
|
||||
for (Entry<String, BootstrapConfigurer> bootstrap : bootstraps.entrySet()) {
|
||||
this.logger.trace("Executing bootstrap configurer: {}: {}", bootstrap.getKey(), bootstrap.getValue().getClass());
|
||||
bootstrap.getValue().applicationContextInitialized(applicationContext);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user