private class MBeanServerConnectionFactoryBean.MBeanServerConnectionLazyInitTargetSource extends AbstractLazyCreationTargetSource
MBeanServerConnection.logger| Modifier | Constructor and Description |
|---|---|
private |
MBeanServerConnectionLazyInitTargetSource() |
| 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, releaseTargetprivate MBeanServerConnectionLazyInitTargetSource()
protected 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()