01: /*
02: * All content copyright (c) 2003-2007 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package org.terracotta.dso;
05:
06: import org.osgi.framework.Bundle;
07: import org.osgi.framework.BundleException;
08:
09: import com.terracottatech.config.DsoApplication;
10: import com.terracottatech.config.Module;
11:
12: import java.net.URL;
13:
14: public class ModuleInfo {
15: private Module fModule;
16: private URL fLocation;
17: private Bundle fBundle;
18: private BundleException fBundleException;
19: private DsoApplication fApplication;
20:
21: public ModuleInfo(Module module) {
22: fModule = module;
23: }
24:
25: public Module getModule() {
26: return fModule;
27: }
28:
29: public void setLocation(URL location) {
30: fLocation = location;
31: }
32:
33: public URL getLocation() {
34: return fLocation;
35: }
36:
37: public void setBundle(Bundle bundle) {
38: fBundle = bundle;
39: }
40:
41: public Bundle getBundle() {
42: return fBundle;
43: }
44:
45: public void setError(BundleException error) {
46: fBundleException = error;
47: }
48:
49: public BundleException getError() {
50: return fBundleException;
51: }
52:
53: public void setApplication(DsoApplication application) {
54: fApplication = application;
55: }
56:
57: public DsoApplication getApplication() {
58: return fApplication;
59: }
60: }
|