private class MBeanServerConnectionFactoryBean.JMXConnectorLazyInitTargetSource extends AbstractLazyCreationTargetSource
JMXConnector
using the configured service URL
and environment properties.logger
Modifier | Constructor and Description |
---|---|
private |
MBeanServerConnectionFactoryBean.JMXConnectorLazyInitTargetSource() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createObject()
Subclasses should implement this method to return the lazy initialized object.
|
java.lang.Class<?> |
getTargetClass()
This default implementation returns
null if the
target is null (it is hasn't yet been initialized),
or the target class if the target has already been initialized. |
getTarget, isInitialized, isStatic, releaseTarget
private MBeanServerConnectionFactoryBean.JMXConnectorLazyInitTargetSource()
protected java.lang.Object createObject() throws java.lang.Exception
AbstractLazyCreationTargetSource
createObject
in class AbstractLazyCreationTargetSource
java.lang.Exception
- if creation failedpublic java.lang.Class<?> getTargetClass()
AbstractLazyCreationTargetSource
null
if the
target is null
(it is hasn't yet been initialized),
or the target class if the target has already been initialized.
Subclasses may wish to override this method in order to provide
a meaningful value when the target is still null
.
getTargetClass
in interface TargetClassAware
getTargetClass
in interface TargetSource
getTargetClass
in class AbstractLazyCreationTargetSource
TargetSource
AbstractLazyCreationTargetSource.isInitialized()