Node Director
|
service dependency container More...
Public Member Functions | |
ServiceDepContainer () | |
class members => ClassOfObjects | |
void | addDependencies (DocInfo info) throws DirectorException |
void | addDependencies (DocInfo info, ServiceDependency host) throws DirectorException |
Vector | serviceBySpec (Vector specs) |
ServiceDependency | serviceBySpec (String spec) |
void | registerService (ServiceDependency service) |
ServiceDependency | get (String id) |
ServiceDependency | getBySpec (String spec) |
void | addToClass (String objName, String type, Vector classNames) |
ClassOfObjects | getClass (String id) |
ClassOfObjects | getClassByMembers (Vector members) |
void | finish () |
If dependency information is complete (no more dependencies to add), finish() must be called in order to generate class related information. | |
String | serialize () |
void | deserialize (Reader input) throws DirectorException |
Protected Member Functions | |
void | serialize (StringBuffer buff, Enumeration dependencies, String prefix) |
Protected Attributes | |
Hashtable | serviceIndex = new Hashtable() |
Hashtable | classIndex = new Hashtable() |
name => ServiceDependency | |
Hashtable | membersIndex = new Hashtable() |
class => ClassOfObjects |
service dependency container
sfi.director.application.autodoc.ServiceDepContainer.ServiceDepContainer | ( | ) |
class members => ClassOfObjects
void sfi.director.application.autodoc.ServiceDepContainer.addDependencies | ( | DocInfo | info | ) | throws DirectorException |
void sfi.director.application.autodoc.ServiceDepContainer.addDependencies | ( | DocInfo | info, |
ServiceDependency | host | ||
) | throws DirectorException |
References sfi.director.application.autodoc.ServiceDepContainer.addDependencies(), sfi.director.application.autodoc.ServiceDepContainer.addToClass(), sfi.director.application.autodoc.ServiceDependency.depends, sfi.director.repository.config.DirectoryAccess.get(), sfi.director.repository.DBObject.getAttribute(), sfi.director.repository.config.Directory.getDirectory(), sfi.director.repository.DBObject.getValue(), sfi.director.application.autodoc.ServiceDependency.id(), sfi.director.repository.DBObject.isMember(), main(), sfi.director.application.autodoc.ServiceDepContainer.registerService(), sfi.director.application.autodoc.ServiceDependency.requires, sfi.director.application.autodoc.ServiceDependency.resides, sfi.director.application.autodoc.ServiceDepContainer.serviceBySpec(), sfi.director.application.autodoc.ServiceDependency.TYPE_HOST, sfi.director.application.autodoc.ServiceDependency.TYPE_HOSTCLASS, sfi.director.application.autodoc.ClassOfObjects.TYPE_HOSTCLASS, sfi.director.application.autodoc.ServiceDependency.TYPE_SERVICE, sfi.director.application.autodoc.ServiceDependency.TYPE_USER, sfi.director.application.autodoc.ClassOfObjects.TYPE_USERCLASS, and sfi.director.application.autodoc.ServiceDependency.TYPE_USERCLASS.
void sfi.director.application.autodoc.ServiceDepContainer.addToClass | ( | String | objName, |
String | type, | ||
Vector | classNames | ||
) |
References sfi.director.application.autodoc.ServiceDepContainer.classIndex, sfi.director.application.autodoc.ServiceDepContainer.getClass(), sfi.director.application.autodoc.ClassOfObjects.id(), and sfi.director.application.autodoc.ClassOfObjects.members.
Referenced by sfi.director.application.autodoc.ServiceDepContainer.addDependencies().
void sfi.director.application.autodoc.ServiceDepContainer.deserialize | ( | Reader | input | ) | throws DirectorException |
References sfi.director.application.autodoc.ServiceDepContainer.classIndex, sfi.director.application.autodoc.ClassOfObjects.id(), sfi.director.application.autodoc.ClassOfObjects.members, sfi.director.application.autodoc.ServiceDepContainer.membersIndex, sfi.director.application.autodoc.ClassOfObjects.name, sfi.director.application.autodoc.ServiceDependency.name, sfi.director.application.autodoc.ServiceDepContainer.serviceIndex, sfi.director.application.autodoc.ClassOfObjects.type, and sfi.director.application.autodoc.ServiceDependency.type.
void sfi.director.application.autodoc.ServiceDepContainer.finish | ( | ) |
If dependency information is complete (no more dependencies to add), finish() must be called in order to generate class related information.
References sfi.director.application.autodoc.ServiceDependency.backRelated, sfi.director.application.autodoc.ServiceDepContainer.classIndex, sfi.director.application.autodoc.ServiceDependency.depends, sfi.director.application.autodoc.ServiceDependency.id(), sfi.director.application.autodoc.ClassOfObjects.members, sfi.director.application.autodoc.ServiceDepContainer.membersIndex, sfi.director.application.autodoc.ServiceDepContainer.registerService(), sfi.director.application.autodoc.ServiceDependency.requires, sfi.director.application.autodoc.ServiceDependency.resides, and sfi.director.application.autodoc.ServiceDepContainer.serviceIndex.
Referenced by sfi.director.application.autodoc.DocBuilder.insertDependencyGraphs().
ServiceDependency sfi.director.application.autodoc.ServiceDepContainer.get | ( | String | id | ) |
ServiceDependency sfi.director.application.autodoc.ServiceDepContainer.getBySpec | ( | String | spec | ) |
ClassOfObjects sfi.director.application.autodoc.ServiceDepContainer.getClass | ( | String | id | ) |
ClassOfObjects sfi.director.application.autodoc.ServiceDepContainer.getClassByMembers | ( | Vector | members | ) |
void sfi.director.application.autodoc.ServiceDepContainer.registerService | ( | ServiceDependency | service | ) |
References sfi.director.application.autodoc.ServiceDependency.id(), sfi.director.application.autodoc.ServiceDependency.serviceContainer, and sfi.director.application.autodoc.ServiceDepContainer.serviceIndex.
Referenced by sfi.director.application.autodoc.ServiceDepContainer.addDependencies(), sfi.director.application.autodoc.ServiceDepContainer.finish(), and sfi.director.application.autodoc.ServiceDepContainer.serviceBySpec().
|
protected |
String sfi.director.application.autodoc.ServiceDepContainer.serialize | ( | ) |
References sfi.director.application.autodoc.ServiceDepContainer.classIndex, sfi.director.application.autodoc.ServiceDependency.depends, sfi.director.application.autodoc.ClassOfObjects.id(), sfi.director.application.autodoc.ServiceDependency.id(), sfi.director.application.autodoc.ClassOfObjects.members, sfi.director.application.autodoc.ClassOfObjects.name, sfi.director.application.autodoc.ServiceDependency.name, sfi.director.application.autodoc.ServiceDependency.requires, sfi.director.application.autodoc.ServiceDependency.resides, sfi.director.application.autodoc.ServiceDepContainer.serviceIndex, sfi.director.application.autodoc.ClassOfObjects.type, and sfi.director.application.autodoc.ServiceDependency.type.
Vector sfi.director.application.autodoc.ServiceDepContainer.serviceBySpec | ( | Vector | specs | ) |
ServiceDependency sfi.director.application.autodoc.ServiceDepContainer.serviceBySpec | ( | String | spec | ) |
References sfi.director.application.autodoc.ServiceDependency.depends, sfi.director.application.autodoc.ServiceDependency.id(), sfi.director.application.autodoc.ServiceDependency.name, sfi.director.application.autodoc.ServiceDepContainer.registerService(), sfi.director.application.autodoc.ServiceDepContainer.serviceBySpec(), sfi.director.util.Tools.split(), sfi.director.application.autodoc.ServiceDependency.type, and sfi.director.application.autodoc.ServiceDependency.TYPE_REDUNDANT_NODE.
|
protected |
name => ServiceDependency
Referenced by sfi.director.application.autodoc.ServiceDepContainer.addToClass(), sfi.director.application.autodoc.ServiceDepContainer.deserialize(), sfi.director.application.autodoc.ServiceDepContainer.finish(), sfi.director.application.autodoc.ServiceDepContainer.getClass(), and sfi.director.application.autodoc.ServiceDepContainer.serialize().
|
protected |
|
protected |
Referenced by sfi.director.application.autodoc.ServiceDepContainer.deserialize(), sfi.director.application.autodoc.ServiceDepContainer.finish(), sfi.director.application.autodoc.ServiceDepContainer.get(), sfi.director.application.autodoc.ServiceDepContainer.registerService(), and sfi.director.application.autodoc.ServiceDepContainer.serialize().