raccoon.api.types
Interface ILoadable

All Superinterfaces:
IBaseComponent
All Known Implementing Classes:
AbsComponentManager, AbsConfigurableLoadable, AbsLoadable, AbsLogComponent, ConnectionDriver, DbHostStatus, FilePoller, FilePublisher, Jdk14Proxy, LedgerViewer, Log4jProxy, ServiceManager, StdConfig, StrConfig, TibComponent, TibrvAeParser, TibrvMsgParser, TibrvNucleus, TibrvPlayer, TibrvPublisher, TibrvRecorder, TibrvSubscriber, UiTester, XmlParser

public interface ILoadable
extends IBaseComponent

A component that needs to be loaded before usage.

Since:
Raccoon v0.8
Version:
$Id: ILoadable.java,v 1.1 2004/08/08 20:25:57 crouvrais Exp $
Author:
Cedric ROUVRAIS

Method Summary
 boolean isRunning()
          Checks if the component has been loaded.
 void load()
          Loads or initializes the component.
 void unload()
          Unloads or deactivates the component.
 
Methods inherited from interface raccoon.api.types.IBaseComponent
isInError
 

Method Detail

load

void load()
          throws java.lang.IllegalStateException,
                 LoadableException
Loads or initializes the component.

Throws:
LoadableException - if the component couldn't load itself.
java.lang.IllegalStateException - if the component isn't in a state to load itself.

unload

void unload()
            throws java.lang.IllegalStateException,
                   LoadableException
Unloads or deactivates the component. The invocation of this method should be used to clean up, if necessary, all used resources.

Throws:
LoadableException - if the component couldn't unload itself.
java.lang.IllegalStateException - if this component isn't in a state to unload itself.

isRunning

boolean isRunning()
Checks if the component has been loaded.

Returns:
true if the component has been correctly loaded.


Copyright null null. All Rights Reserved.