| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| ThinClientKEWConfigurer |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2007-2008 The Kuali Foundation | |
| 3 | * | |
| 4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
| 5 | * you may not use this file except in compliance with the License. | |
| 6 | * You may obtain a copy of the License at | |
| 7 | * | |
| 8 | * http://www.opensource.org/licenses/ecl2.php | |
| 9 | * | |
| 10 | * Unless required by applicable law or agreed to in writing, software | |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 | * See the License for the specific language governing permissions and | |
| 14 | * limitations under the License. | |
| 15 | */ | |
| 16 | package org.kuali.rice.kew.config; | |
| 17 | ||
| 18 | import org.kuali.rice.core.config.RiceConfigurerBase; | |
| 19 | import org.kuali.rice.kew.util.KEWConstants; | |
| 20 | import org.kuali.rice.kim.config.KIMThinClientConfigurer; | |
| 21 | import org.kuali.rice.ksb.messaging.config.KSBThinClientConfigurer; | |
| 22 | ||
| 23 | /** | |
| 24 | * A configurer which configures KEW Thin-Client mode. | |
| 25 | * | |
| 26 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 27 | */ | |
| 28 | public class ThinClientKEWConfigurer extends RiceConfigurerBase { | |
| 29 | ||
| 30 | private KEWConfigurer kewConfigurer; | |
| 31 | ||
| 32 | 0 | public ThinClientKEWConfigurer() { |
| 33 | 0 | setServiceNamespace(KEWConstants.KEW_MESSAGING_ENTITY); |
| 34 | // thin client allows us to still have access to the DigitalSignatureService but not use the full capabilities of the bus | |
| 35 | 0 | getModules().add(new KSBThinClientConfigurer()); |
| 36 | ||
| 37 | 0 | this.kewConfigurer = new KEWConfigurer(); |
| 38 | ||
| 39 | // If this flag is not set, KEWConfigurer will need a database connection and other | |
| 40 | // things we haven't configured. | |
| 41 | 0 | kewConfigurer.setRunMode(KEWConfigurer.THIN_RUN_MODE); |
| 42 | 0 | kewConfigurer.setClientProtocol(KEWConstants.WEBSERVICE_CLIENT_PROTOCOL); |
| 43 | ||
| 44 | 0 | getModules().add(kewConfigurer); |
| 45 | ||
| 46 | 0 | getModules().add(new KIMThinClientConfigurer()); |
| 47 | 0 | } |
| 48 | ||
| 49 | @Override | |
| 50 | protected void addModulesResourceLoaders() throws Exception { | |
| 51 | // TODO: this seems like a total hack the way this is happening, see the addModulesResourceLoaders | |
| 52 | // method RiceConfigurer as well | |
| 53 | 0 | kewConfigurer.getResourceLoaderToRegister(); |
| 54 | 0 | } |
| 55 | ||
| 56 | ||
| 57 | } |