001    // Copyright 2004, 2005 The Apache Software Foundation
002    //
003    // Licensed under the Apache License, Version 2.0 (the "License");
004    // you may not use this file except in compliance with the License.
005    // You may obtain a copy of the License at
006    //
007    //     http://www.apache.org/licenses/LICENSE-2.0
008    //
009    // Unless required by applicable law or agreed to in writing, software
010    // distributed under the License is distributed on an "AS IS" BASIS,
011    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
012    // See the License for the specific language governing permissions and
013    // limitations under the License.
014    
015    package org.apache.hivemind.service.impl;
016    
017    import org.apache.hivemind.Orderable;
018    import org.apache.hivemind.service.AutowiringStrategy;
019    
020    /**
021     * Contribution to the <code>org.apache.hivemind.service.Autowiring</code>
022     * configuration extension point; used to provide
023     * a {@link org.apache.hivemind.service.AutowiringStrategy} implementation
024     * and advice on ordering the service.
025     *
026     * @author Achim Huegen
027     */
028    public class AutowiringStrategyContribution implements Orderable
029    {
030        private String _name;
031        private String _precedingNames;
032        private String _followingNames;
033    
034        private AutowiringStrategy _strategy;
035    
036        public AutowiringStrategyContribution()
037        {
038        }
039        
040        public AutowiringStrategyContribution(AutowiringStrategy strategy, String name, String precedingNames, String followingNames)
041        {
042            _strategy = strategy;
043            _name = name;
044            _precedingNames = precedingNames;
045            _followingNames = followingNames;
046        }
047    
048        public AutowiringStrategy getStrategy()
049        {
050            return _strategy;
051        }
052    
053        public void setStrategy(AutowiringStrategy strategy)
054        {
055            _strategy = strategy;
056        }
057    
058        public String getFollowingNames()
059        {
060            return _followingNames;
061        }
062    
063        public String getName()
064        {
065            return _name;
066        }
067    
068        public String getPrecedingNames()
069        {
070            return _precedingNames;
071        }
072    
073        public void setFollowingNames(String string)
074        {
075            _followingNames = string;
076        }
077    
078        public void setName(String string)
079        {
080            _name = string;
081        }
082    
083        public void setPrecedingNames(String string)
084        {
085            _precedingNames = string;
086        }
087    
088    }