org.onebusaway.container.spring.jmx
Class ServletContextAwareMetadataNamingStrategy

java.lang.Object
  extended by org.springframework.jmx.export.naming.MetadataNamingStrategy
      extended by org.onebusaway.container.spring.jmx.ServletContextAwareMetadataNamingStrategy
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.jmx.export.naming.ObjectNamingStrategy, org.springframework.web.context.ServletContextAware

public class ServletContextAwareMetadataNamingStrategy
extends org.springframework.jmx.export.naming.MetadataNamingStrategy
implements org.springframework.web.context.ServletContextAware


Constructor Summary
ServletContextAwareMetadataNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource annotationSource)
           
 
Method Summary
 ObjectName getObjectName(Object managedBean, String beanKey)
           
 void setServletContext(javax.servlet.ServletContext servletContext)
           
 
Methods inherited from class org.springframework.jmx.export.naming.MetadataNamingStrategy
afterPropertiesSet, setAttributeSource, setDefaultDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletContextAwareMetadataNamingStrategy

public ServletContextAwareMetadataNamingStrategy(org.springframework.jmx.export.metadata.JmxAttributeSource annotationSource)
Method Detail

getObjectName

public ObjectName getObjectName(Object managedBean,
                                String beanKey)
                         throws MalformedObjectNameException
Specified by:
getObjectName in interface org.springframework.jmx.export.naming.ObjectNamingStrategy
Overrides:
getObjectName in class org.springframework.jmx.export.naming.MetadataNamingStrategy
Throws:
MalformedObjectNameException

setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware


Copyright © 2012 OneBusAway. All Rights Reserved.