01: package com.bostechcorp.cbesb.common.util.custcomponent;
02:
03: import java.util.Properties;
04:
05: import com.bostechcorp.cbesb.common.util.custcomponent.ICustComponent.Role;
06:
07: /**
08: * The interface class to encapsulate the ServiceUnit information.
09: * @author elu
10: *
11: */
12: public interface IServiceUnitContext {
13:
14: /**
15: *
16: * @return the root directory of the service unit
17: */
18: public String getRootDir();
19:
20: /**
21: * I think the su name is maybe usefule to be used to getServiceName or getEndpointName, and also genDeploymentArtifacts
22: * because if a sa contains many components with same type, the service name and endpoing name should be deferent base on the component's name.
23: * @return
24: */
25: public String getSuName();
26:
27: public String getSaProjectName();
28:
29: /**
30: *
31: * @return all properies defined in the custom component
32: */
33: public Properties getProperties(Role role);
34:
35: }
|