This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static void start(final Environment environment, final int port) { | |
| Environment.set(environment); | |
| v | |
| final Tomcat tomcat = new Tomcat(); | |
| tomcat.setPort(port); | |
| final File workDir = Files.createTempDir(); | |
| final Context context = tomcat.addContext("", workDir.getAbsolutePath()); | |
| context.addServletContainerInitializer(new SpringServletContainerInitializer(), | |
| ImmutableSet.<Class<?>>of(Application.class)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CacheInfoEndpoint extends AbstractEndpoint<ObjectNode> { | |
| public static final boolean DO_NOT_CREATE_IF_MISSING = false; | |
| private final SpringEmbeddedCacheManager springEmbeddedCacheManager; | |
| public CacheInfoEndpoint(final SpringEmbeddedCacheManager springEmbeddedCacheManager) { | |
| super("cache", false, true); | |
| this.springEmbeddedCacheManager = springEmbeddedCacheManager; | |
| } |
NewerOlder