|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
IDependencyTracker.java
FactoryUtility| Nested Class Summary | |
static interface |
IDependencyTracker.IXmlProvider
IXmlProvider |
| Method Summary | |
boolean |
add(Object dependent,
Object prerequisite)
Create a dependent and prerequisite relationship. |
List |
getAllDependents(Object prerequisite)
Answers all the dependents of an entry. |
List |
getAllPrerequisites(Object dependent)
Answers all the prerequisites of an entry. |
List |
getDependents()
Answers all the entries that are dependents. |
List |
getDependents(Object prerequisite)
Answers the immediate dependents of an entry. |
List |
getPrerequisites()
Answers all the entries that are prerequisites. |
List |
getPrerequisites(Object dependent)
Answers the immediate prerequisites of an entry. |
List |
getValues()
Answers a list of all the objects in the DependencyTracker. |
boolean |
hasCircularReferences(Object entry)
Answers true if an entry has circular references otherwise
false. |
boolean |
hasDependents()
Answers true if dependent entries exist, otherwise
false. |
boolean |
hasPrerequisites()
Answers true if prerequisite entries exist, otherwise
false. |
boolean |
isEmpty()
Answers true if the DepenencyTrackerService is empty,
otherwise false. |
void |
remove(Object entry)
Removes an object, severing its dependent and prerequisite relationships. |
boolean |
remove(Object dependent,
Object prerequisite)
Destroy a dependent and prerequisite relationship. |
void |
removeAll()
Removes all the objects from the DependencyTracker. |
void |
removeDependent(Object entry)
Utility that removes a dependent entry. |
void |
removePrerequisite(Object entry)
Utility that removes a prerequisite entry. |
List |
removeWithAllPrerequisites(Object entry)
Removes an entry, along with all its prerequisites that are only dependents of the entry. |
List |
removeWithPrerequisites(Object entry)
Removes an entry, along with its prerequisites that are only dependents of the entry. |
int |
size()
Answers the number of entries in the DependencyTracker. |
String |
toXml(String name)
Answers an XML representation of the DependencyTracker. |
String |
toXml(String name,
IDependencyTracker.IXmlProvider xmlProvider)
Answers an XML representation of the DependencyTracker
using the specified implementation of the interface
IDependencyTracker.IXmlProvider. |
String |
toXml(String name,
int indent)
Answers an XML representation of the DependencyTracker. |
String |
toXml(String name,
int indent,
IDependencyTracker.IXmlProvider xmlProvider)
Answers an XML representation of the DependencyTracker
using the specified implementation of the interface
IDependencyTracker.IXmlProvider. |
| Method Detail |
public boolean add(Object dependent,
Object prerequisite)
dependent - An object that is dependent of a prerequisite
object.prerequisite - An object that is a prerequisite of a dependent
object.
true, otherwise false.public List getAllDependents(Object prerequisite)
prerequisite - An object that is a prerequisite.
Listpublic List getAllPrerequisites(Object dependent)
dependent - An object that is a dependent.
Listpublic List getDependents()
Listpublic List getDependents(Object prerequisite)
prerequisite - An object that is a prerequisite.
Listpublic List getPrerequisites()
Listpublic List getPrerequisites(Object dependent)
dependent - An object that is a dependent.
Listpublic List getValues()
DependencyTracker.
public boolean hasCircularReferences(Object entry)
true if an entry has circular references otherwise
false.
entry - Any object stored in the DependencyTracker.
booleanpublic boolean hasDependents()
true if dependent entries exist, otherwise
false.
booleanpublic boolean hasPrerequisites()
true if prerequisite entries exist, otherwise
false.
booleanpublic boolean isEmpty()
true if the DepenencyTrackerService is empty,
otherwise false.
booleanpublic void remove(Object entry)
entry - An object in the DependencyTracker.
public boolean remove(Object dependent,
Object prerequisite)
dependent - An object that is dependent of a prerequisite
object.prerequisite - An object that is a prerequisite of a dependent
object.
true, otherwise false.public void removeAll()
DependencyTracker.
public void removeDependent(Object entry)
entry - A dependent object.public void removePrerequisite(Object entry)
entry - A prerequisite object.public List removeWithAllPrerequisites(Object entry)
entry - An dependent object.
Listpublic List removeWithPrerequisites(Object entry)
entry - A dependent object.
public int size()
DependencyTracker.
public String toXml(String name)
DependencyTracker. This
method uses the default implementation of the interface
IDependencyTracker.IXmlProvider, which simply returns the
value of the dependent and prerequisite object without performing a
conversion. This is most appropriate for cases where the dependent
and prerequisite objects are instances of the class
String.
name - The value of the name attribute in the top-most
<dependencyTracker> element.
DependencyTracker.
public String toXml(String name,
IDependencyTracker.IXmlProvider xmlProvider)
DependencyTracker
using the specified implementation of the interface
IDependencyTracker.IXmlProvider. This is most
appropriate for cases where the dependent or prerequisite objects
are not instances of the class String.
name - The value of the name attribute in the top-most
<dependencyTracker> element. %bc.xmlProvider - An custom implementation of the interface
IDependencyTracker.IXmlProvider
responsible for converting the dependent and
prerequisite objects into XML.
DependencyTracker.
public String toXml(String name,
int indent)
DependencyTracker. This
method uses the default implementation of the interface
IDependencyTracker.IXmlProvider, which simply returns the
value of the dependent and prerequisite object without performing a
conversion. This is most appropriate for cases where the dependent
and prerequisite objects are instances of the class
String.
name - The value of the name attribute in the top-most
<dependencyTracker> element.indent - The indent level at which to start.
DependencyTracker.
public String toXml(String name,
int indent,
IDependencyTracker.IXmlProvider xmlProvider)
DependencyTracker
using the specified implementation of the interface
IDependencyTracker.IXmlProvider. This is most
appropriate for cases where the dependent or prerequisite objects
are not instances of the class String.
name - The value of the name attribute in the top-most
<dependencyTracker> element.indent - The indent level at which to start.xmlProvider - An custom implementation of the interface
IDependencyTracker.IXmlProvider
responsible for converting the dependent and
prerequisite objects into XML.
DependencyTracker.
|
Service Activator Toolkit
Version 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2001, 2007 IBM Corporation and others. All Rights Reserved.