final class Service
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Set |
m_components |
private java.lang.String |
m_type |
| Constructor and Description |
|---|
Service(java.lang.String type)
Initialize a service with the type name.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private final java.util.Set m_components
private final java.lang.String m_type
public Service(java.lang.String type)
type - 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