01: /*
02: * BEGIN_HEADER - DO NOT EDIT
03: *
04: * The contents of this file are subject to the terms
05: * of the Common Development and Distribution License
06: * (the "License"). You may not use this file except
07: * in compliance with the License.
08: *
09: * You can obtain a copy of the license at
10: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
11: * See the License for the specific language governing
12: * permissions and limitations under the License.
13: *
14: * When distributing Covered Code, include this CDDL
15: * HEADER in each file and include the License file at
16: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
17: * If applicable add the following below this CDDL HEADER,
18: * with the fields enclosed by brackets "[]" replaced with
19: * your own identifying information: Portions Copyright
20: * [year] [name of copyright owner]
21: */
22:
23: /*
24: * @(#)DeploymentContext.java
25: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
26: *
27: * END_HEADER - DO NOT EDIT
28: */
29: package com.sun.jbi.management.system;
30:
31: import java.io.Reader;
32: import java.util.List;
33: import javax.jbi.management.DeploymentException;
34:
35: /**
36: * This is the interface for Deployment Context, which is an
37: * in-memory representation of JBI Assembly Unit jar file contents.
38: *
39: * @author Sun Microsystems, Inc.
40: */
41: public interface DeploymentContext {
42: /**
43: * Returns name of the Service Assembly(SA),
44: * whose meta-data this context represents.
45: *
46: * @return name of the Service Assembly(SA)
47: */
48: String getSAName() throws DeploymentException;
49:
50: /**
51: * Returns a list of SU names that are part of the
52: * current Service Assembly(SA).
53: *
54: * @return List of SU names that are part of the SA
55: */
56: List getSUList();
57:
58: /**
59: * Returns the name of the component that is the target
60: * of the given Service Unit.
61: *
62: * @param aSUName name of the Service Unit
63: * @return name of the Component
64: */
65: String getTargetComponentName(String aSUName);
66:
67: /**
68: * Returns the jar file corresponding to the SU name. This
69: * is the jar file that will be deployed to the given component.
70: *
71: * @param aSUName name of the Service Unit
72: * @return SU jar file
73: */
74: Reader getArtifactsJar(String aSUName);
75:
76: /**
77: * Returns the deployment descriptor(jbi.xml) of the current Service Assembly(SA).
78: *
79: * @return deployment descriptor of the Service Assembly(SA)
80: */
81: String getDeploymentDescriptor();
82: }
|