|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.avalon.fortress.tools.Service
final class Service
Encapsulate the Service information, and encapsulate all the logic to serialize the service.
| Field Summary | |
|---|---|
private java.util.Set |
m_components
|
private java.lang.String |
m_type
|
| Constructor Summary | |
|---|---|
Service(java.lang.String type)
Initialize a service with the type name. |
|
| Method Summary | |
|---|---|
void |
addComponent(Component type)
Add a component to the service. |
java.util.Iterator |
getComponents()
|
java.lang.String |
getType()
Get the service type name. |
void |
serialize(java.io.File rootDir)
Output the service info. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.Set m_components
private final java.lang.String m_type
| Constructor Detail |
|---|
public Service(java.lang.String type)
type - | Method Detail |
|---|
public java.lang.String getType()
public void addComponent(Component type)
type - the type name for the componentpublic java.util.Iterator getComponents()
public void serialize(java.io.File rootDir)
throws java.io.IOException
rootDir -
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||