public abstract class ContainerObserverAdapter extends java.lang.Object implements ContainerObserver
ContainerObserver
implementation that does absolutely nothing by default.
The purpose of this class is to subclass it and override only the methods you're interested in.
Modifier | Constructor and Description |
---|---|
protected |
ContainerObserverAdapter()
Constructs a new
ContainerObserverAdapter instance. |
Modifier and Type | Method and Description |
---|---|
void |
componentStarted(Component component,
Container container)
|
void |
componentStopped(Component component,
Container container)
|
void |
containerStarted(Container container)
Called by a
Container when it was started. |
void |
containerStopped(Container container)
Called by a
Container when it was stopped. |
void |
exceptionCaught(ComponentConfigurator componentConfigurator,
Container container,
java.lang.Exception cause)
|
void |
exceptionCaught(Component component,
Container container,
java.lang.Exception cause)
|
void |
exceptionCaught(ComponentFilter componentFilter,
Container container,
java.lang.Exception cause)
|
void |
exceptionCaught(ComponentLoader componentLoader,
Container container,
java.lang.Exception cause)
|
protected ContainerObserverAdapter()
ContainerObserverAdapter
instance.public void componentStarted(Component component, Container container)
componentStarted
in interface ContainerObserver
component
- the Component
that was startedcontainer
- the Container
that called this methodpublic void componentStopped(Component component, Container container)
componentStopped
in interface ContainerObserver
component
- the Component
that was stoppedcontainer
- the Container
that called this methodpublic void containerStarted(Container container)
Container
when it was started.
By default this method does nothing.
containerStarted
in interface ContainerObserver
container
- the Container
that called this methodpublic void containerStopped(Container container)
Container
when it was stopped.
By default this method does nothing.
containerStopped
in interface ContainerObserver
container
- the Container
that called this methodpublic void exceptionCaught(Component component, Container container, java.lang.Exception cause)
exceptionCaught
in interface ContainerObserver
component
- the Component
that caused the Exception
container
- the Container
that called this methodcause
- the Exception
that was caughtpublic void exceptionCaught(ComponentConfigurator componentConfigurator, Container container, java.lang.Exception cause)
exceptionCaught
in interface ContainerObserver
componentConfigurator
- the ComponentConfigurator
that caused the Exception
container
- the Container
that called this methodcause
- the Exception
that was caughtpublic void exceptionCaught(ComponentFilter componentFilter, Container container, java.lang.Exception cause)
exceptionCaught
in interface ContainerObserver
componentFilter
- the ComponentFilter
that caused the Exception
container
- the Container
that called this methodcause
- the Exception
that was caughtpublic void exceptionCaught(ComponentLoader componentLoader, Container container, java.lang.Exception cause)
exceptionCaught
in interface ContainerObserver
componentLoader
- the ComponentLoader
that caused the Exception
container
- the Container
that called this methodcause
- the Exception
that was caught