Squashing JMX warnings on jetty startup

This commit is contained in:
Joakim Erdfelt 2012-12-19 13:50:51 -07:00
parent 0ef9b23724
commit 69b9856998
4 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ public class Server extends HandlerWrapper implements Attributes
/**
* @return Returns the connectors.
*/
@ManagedAttribute("connectors for this server")
@ManagedAttribute(value="connectors for this server", readonly=true)
public Connector[] getConnectors()
{
List<Connector> connectors = new ArrayList<>(_connectors);

View File

@ -381,7 +381,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
* @return Array of virtual hosts that this context responds to. A null host name or empty array means any hostname is acceptable. Host names may be String
* representation of IP addresses. Host names may start with '*.' to wildcard one level of names.
*/
@ManagedAttribute("Virtual hosts accepted by the context")
@ManagedAttribute(value="Virtual hosts accepted by the context", readonly=true)
public String[] getVirtualHosts()
{
return _vhosts;
@ -1394,7 +1394,7 @@ public class ContextHandler extends ScopedHandler implements Attributes, Gracefu
* @see <a href="http://jcp.org/aboutJava/communityprocess/final/jsr154/index.html">The Servlet Specification</a>
* @see #setWelcomeFiles
*/
@ManagedAttribute("Partial URIs of directory welcome files")
@ManagedAttribute(value="Partial URIs of directory welcome files", readonly=true)
public String[] getWelcomeFiles()
{
return _welcomeFiles;

View File

@ -66,7 +66,7 @@ public class HandlerCollection extends AbstractHandlerContainer
* @return Returns the handlers.
*/
@Override
@ManagedAttribute("Wrapped handlers")
@ManagedAttribute(value="Wrapped handlers", readonly=true)
public Handler[] getHandlers()
{
return _handlers;

View File

@ -688,7 +688,7 @@ public class WebAppContext extends ServletContextHandler implements WebAppClassL
* @see #setSystemClasses(String[])
* @return Returns the systemClasses.
*/
@ManagedAttribute("classes and packages given priority by context classloader")
@ManagedAttribute(value="classes and packages given priority by context classloader", readonly=true)
public String[] getSystemClasses()
{
if (_systemClasses == null)