public class DefaultEnvironment extends Object implements Environment
Modifier and Type | Method and Description |
---|---|
Property |
addNewProperty(String name,
String value) |
Service |
addNewService(String name,
ServiceConfig.Type.Enum serviceType) |
void |
changePropertyName(String name,
String value) |
boolean |
equals(Object obj) |
static DefaultEnvironment |
getInstance() |
String |
getName() |
Project |
getProject() |
int |
hashCode() |
void |
moveProperty(String name,
int idx) |
void |
release() |
void |
removeProperty(Property property) |
void |
removeService(Service service) |
void |
setName(String name) |
void |
setProject(Project project) |
public static final String NAME
public static DefaultEnvironment getInstance()
public String getName()
getName
in interface Environment
public void setProject(Project project)
setProject
in interface Environment
public Project getProject()
getProject
in interface Environment
public void release()
release
in interface Environment
public Service addNewService(String name, ServiceConfig.Type.Enum serviceType)
addNewService
in interface Environment
public void removeService(Service service)
removeService
in interface Environment
public Property addNewProperty(String name, String value)
addNewProperty
in interface Environment
public void removeProperty(Property property)
removeProperty
in interface Environment
public void changePropertyName(String name, String value)
changePropertyName
in interface Environment
public void moveProperty(String name, int idx)
moveProperty
in interface Environment
public void setName(String name)
setName
in interface Environment
Copyright © 2019. All Rights Reserved.