Package wt.jmx.core.mbeans
Interface InfoDelegateFactory<T>
- All Known Subinterfaces:
NotificationHandlerDelegateFactory,SummaryDelegateFactory
- All Known Implementing Classes:
ContextCaptureDelegate.Factory,HeapDumpDelegate,NotificationScriptAction,PeriodicMemoryDumperDelegate,RequestCaptureDelegate.Factory,StackLoggingDelegate,SummaryScriptAction
public interface InfoDelegateFactory<T>
Common interface of delegate factories for use with
Info and its
subclasses. See the getCustomDelegateFactoryClass() and
setCustomDelegateFactoryClass() methods in particular.
Implementation also requires implementations to provide a public, no-arg constructor.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionProduces a delegate instance; returns null if it cannot.voidsetOwnerMBean(BaseObjectNamed ownerMBean) Called by owning InfoMBean to let factory know which MBean it will be servicing.
-
Method Details
-
getDelegate
T getDelegate()Produces a delegate instance; returns null if it cannot.
Supported API: true -
setOwnerMBean
Called by owning InfoMBean to let factory know which MBean it will be servicing. Method signature is same as that in SelfAwareMBean to remove need to implement this method when subclassing SelfAwareMBean. Implementation can be a no-op if this information is not of interest to the factory in question.
Supported API: true
-