[bs-138] Add @OnManagementContext for management beans

User adds @OnManagementContext to a bean or @Configuration and
it should be included in the management context (if there is one)
whether it is the main context or a child.

Makes it easy to secure the management endpoints and keep
the rest open (see actuator-ui-sample).

[#50721675]
This commit is contained in:
Dave Syer
2013-05-29 15:59:59 +01:00
parent 729cfe813b
commit 3ba5f56808
21 changed files with 756 additions and 133 deletions

View File

@@ -451,6 +451,11 @@
<artifactId>hsqldb</artifactId>
<version>2.2.9</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.171</version>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>