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.util.EventListener;
020 import java.util.Map;
021
022 import org.apache.servicemix.jbi.management.BaseSystemService;
023
024 /**
025 * Used to hold a Server Unit configuration. The components
026 * are registered into the JBI container using the Service Unit
027 * Manager life cycle methods.
028 *
029 * @org.apache.xbean.XBean element="serviceunit" rootElement="true"
030 * description="A deployable service unit container"
031 * @version $Revision: 584990 $
032 */
033 public class SpringServiceUnitContainer {
034
035 private ActivationSpec[] activationSpecs;
036 private Map components;
037 private Map endpoints;
038 private EventListener[] listeners;
039 private BaseSystemService[] services;
040
041 public ActivationSpec[] getActivationSpecs() {
042 return activationSpecs;
043 }
044
045 public void setActivationSpecs(ActivationSpec[] activationSpecs) {
046 this.activationSpecs = activationSpecs;
047 }
048
049 /**
050 * @org.apache.xbean.Map flat="true" keyName="name"
051 */
052 public Map getComponents() {
053 return components;
054 }
055
056 public void setComponents(Map components) {
057 this.components = components;
058 }
059
060 /**
061 * @org.apache.xbean.Map flat="true" dups="always" keyName="component" defaultKey=""
062 */
063 public Map getEndpoints() {
064 return endpoints;
065 }
066
067 public void setEndpoints(Map endpoints) {
068 this.endpoints = endpoints;
069 }
070
071 public EventListener[] getListeners() {
072 return listeners;
073 }
074
075 public void setListeners(EventListener[] listeners) {
076 this.listeners = listeners;
077 }
078
079 public BaseSystemService[] getServices() {
080 return services;
081 }
082
083 public void setServices(BaseSystemService[] services) {
084 this.services = services;
085 }
086 }