|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.configuration.outlet.OutletConfiguration
public class OutletConfiguration
Administers the available Outlets.
Constructor Summary | |
---|---|
OutletConfiguration(Collection<Outlet> outlets,
Collection<MergepointMapping> mergepointMappings)
Creates a OutletConfiguration containing a list of Outlets. |
Method Summary | |
---|---|
void |
addOutlet(Outlet outlet)
Adds a outlet. |
Outlet |
getOutlet(QualifiedName name)
Returns the outlet with the name name . |
Map<QualifiedName,Outlet> |
getOutlets()
Returns a map containing all the configured outlets, keyed by their name. |
boolean |
outletExists(QualifiedName qualifiedName)
Returns whether a outlet for the given name exists. |
void |
resolveMergepointMappings()
Resolves the isolated mergepoint mappings and adds them to the relevant outlets. |
String |
toString()
Creates a String view of this object for debuggung purposes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OutletConfiguration(Collection<Outlet> outlets, Collection<MergepointMapping> mergepointMappings) throws ConfigurationException
outlets
- the list of outlets, not null.
ConfigurationException
- if outlets contains
two outlets with the same name.
NullPointerException
- if outlets is null.Method Detail |
---|
public void resolveMergepointMappings() throws ConfigurationException
ConfigurationException
public Map<QualifiedName,Outlet> getOutlets()
IllegalStateException
- if the mergepoint mappings have not
yet been resolved.public Outlet getOutlet(QualifiedName name)
name
.
name
- the name of the outlet to be returned.
IllegalStateException
- if the mergepoint mappings have not
yet been resolved.public void addOutlet(Outlet outlet) throws ConfigurationException
outlet
- the outlet to be added, not null.
ConfigurationException
- if a outlet with the outlet's name
already exists in the configuration.
NullPointerException
- if outlet is null.public String toString()
toString
in class Object
Object.toString()
public boolean outletExists(QualifiedName qualifiedName)
qualifiedName
- the name of the outlet.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |