001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017: package org.apache.servicemix.jbi.container;
018:
019: import java.io.File;
020:
021: import org.apache.servicemix.jbi.framework.ComponentMBeanImpl;
022:
023: /**
024: * Holder for environment infomation
025: *
026: * @version $Revision: 482795 $
027: */
028: public class ComponentEnvironment {
029:
030: private File installRoot;
031: private File workspaceRoot;
032: private File componentRoot;
033: private File stateFile;
034: private ComponentMBeanImpl localConnector;
035:
036: /**
037: * @return Returns the installRoot.
038: */
039: public File getInstallRoot() {
040: return installRoot;
041: }
042:
043: /**
044: * @param installRoot The installRoot to set.
045: */
046: public void setInstallRoot(File installRoot) {
047: this .installRoot = installRoot;
048: }
049:
050: /**
051: * @return Returns the workspaceRoot.
052: */
053: public File getWorkspaceRoot() {
054: return workspaceRoot;
055: }
056:
057: /**
058: * @param workspaceRoot The workspaceRoot to set.
059: */
060: public void setWorkspaceRoot(File workspaceRoot) {
061: this .workspaceRoot = workspaceRoot;
062: }
063:
064: /**
065: * @return Returns the localConnector.
066: */
067: public ComponentMBeanImpl getLocalConnector() {
068: return localConnector;
069: }
070:
071: /**
072: * @param localConnector The localConnector to set.
073: */
074: public void setLocalConnector(ComponentMBeanImpl localConnector) {
075: this .localConnector = localConnector;
076: }
077:
078: /**
079: * @return Returns the componentRoot.
080: */
081: public File getComponentRoot() {
082: return componentRoot;
083: }
084:
085: /**
086: * @param componentRoot The componentRoot to set.
087: */
088: public void setComponentRoot(File componentRoot) {
089: this .componentRoot = componentRoot;
090: }
091:
092: /**
093: * @return Returns the stateFile.
094: */
095: public File getStateFile() {
096: return stateFile;
097: }
098:
099: /**
100: * @param stateFile The stateFile to set.
101: */
102: public void setStateFile(File stateFile) {
103: this.stateFile = stateFile;
104: }
105:
106: }
|