|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
An interface for objects representing the dependencies among components. For more information on the ComponentConfigurator concept and ideas related to it, visit the ComponentConfigurator pages.
DependencySpecification| Method Summary | |
void |
addHook(java.lang.String hookName,
DependencyAttributes attributes)
Adds a hook to the configurator. |
void |
deleteHook(java.lang.String hookName)
Deletes a hook from the configurator. |
void |
destroyComponentConfigurator()
Deletes the references to all internal data structures. |
void |
eventOnClient(ComponentConfigurator client,
ComponentEvent e)
This implementation simply prints the event to the standard output. |
void |
eventOnHookedComponent(ComponentConfigurator hookedComponent,
ComponentEvent e)
This implementation simply prints the event to the standard output. |
ComponentConfigurator |
getHookedComponent(java.lang.String hookName)
Provides a reference to the component attached to the given hook. |
void |
hook(java.lang.String hookName,
ComponentConfigurator cc)
Attaches a ComponentConfigurator to the given hook. |
void |
hook(java.lang.String hookName,
ComponentConfigurator cc,
DependencyAttributes attributes)
Attaches a ComponentConfigurator to the given hook changing the attributes associated with the hook. |
java.lang.Object |
implementation()
Accessor for getting the component implementation. |
void |
implementation(java.lang.Object implementation)
Sets the component implementation. |
java.lang.String |
info()
Accessor for the component information string. |
void |
info(java.lang.String s)
Sets the information string for this component. |
java.util.Vector |
listClients()
Provides a list of the clients of this component. |
java.util.Vector |
listHooks()
Provides a list of the hooks in this component. |
java.lang.String |
name()
Accessor for the component name. |
void |
name(java.lang.String s)
Sets the name of this component. |
int |
numberOfClients()
|
void |
printClients(java.io.PrintStream out)
Dumps information about the clients this Component to an output stream. |
void |
printHooks(java.io.PrintStream out)
Dumps information about the hooks of this Configurator to an output stream. |
void |
registerClient(ComponentConfigurator client,
java.lang.String hookNameInClient,
DependencyAttributes attributes)
Adds a new component to the list of clients. |
void |
unhook(java.lang.String hookName)
Detaches a ComponentConfigurator from the given hook. |
void |
unregisterClient(ComponentConfigurator client,
java.lang.String hookNameInClient)
Removes a pair (client, hook) from the list of clients. |
| Method Detail |
public void destroyComponentConfigurator()
public void addHook(java.lang.String hookName,
DependencyAttributes attributes)
throws ElementExists
hookName - the name of the hook to be added.attributes - a vector of attributes (may be null).
public void deleteHook(java.lang.String hookName)
throws NotFound
hookName - the name of the hook to be deleted.
public void hook(java.lang.String hookName,
ComponentConfigurator cc,
DependencyAttributes attributes)
throws HookBusy,
NotFound
hookName - the name of the hook.cc - the ComponentConfigurator to be attached to the hook.attributes - a vector of attributes (may be null).
public void hook(java.lang.String hookName,
ComponentConfigurator cc)
throws HookBusy,
NotFound
hookName - the name of the hook.cc - the ComponentConfigurator to be attached to the hook.
public void unhook(java.lang.String hookName)
throws HookVacant,
NotFound
hookName - the name of the hook.cc - the ComponentConfigurator to be detached.
public void registerClient(ComponentConfigurator client,
java.lang.String hookNameInClient,
DependencyAttributes attributes)
throws ElementExists
client - the ComponentConfigurator representing the new client.hookNameInClient - the name of the hook to which this component is attached.attributes - a vector of attributes (may be null).
public void unregisterClient(ComponentConfigurator client,
java.lang.String hookNameInClient)
throws NotFound
client - the ComponentConfigurator representing the new client.hookNameInClient - the name of the hook to which this component is attached.
public void eventOnHookedComponent(ComponentConfigurator hookedComponent,
ComponentEvent e)
hookedComponent - the ComponentConfigurator that generated the event.e - the event that was generated.
public void eventOnClient(ComponentConfigurator client,
ComponentEvent e)
client - the ComponentConfigurator that generated the event.e - the event that was generated.public java.util.Vector listHooks()
DependencySpecification,
Vector
public ComponentConfigurator getHookedComponent(java.lang.String hookName)
throws NotFound
public int numberOfClients()
public java.util.Vector listClients()
DependencySpecification,
Vectorpublic void name(java.lang.String s)
public java.lang.String name()
public void info(java.lang.String s)
public java.lang.String info()
public java.lang.Object implementation()
public void implementation(java.lang.Object implementation)
public void printHooks(java.io.PrintStream out)
out - an output PrintStream in which the information is printed.public void printClients(java.io.PrintStream out)
out - an output PrintStream in which the information is printed.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||