private class MBeanServerConnectionFactoryBean.JMXConnectorLazyInitTargetSource extends AbstractLazyCreationTargetSource
JMXConnector using the configured service URL
and environment properties.logger| Modifier | Constructor and Description |
|---|---|
private |
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, releaseTargetprotected java.lang.Object createObject()
throws java.lang.Exception
AbstractLazyCreationTargetSourcecreateObject in class AbstractLazyCreationTargetSourcejava.lang.Exception - if creation failedpublic java.lang.Class<?> getTargetClass()
AbstractLazyCreationTargetSourcenull 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 TargetClassAwaregetTargetClass in interface TargetSourcegetTargetClass in class AbstractLazyCreationTargetSourceTargetSourceAbstractLazyCreationTargetSource.isInitialized()