1 package org.apache.fulcrum.yaafi.framework.container; 2 3 /* 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 */ 21 22 import org.apache.fulcrum.yaafi.framework.constant.AvalonYaafiConstants; 23 24 /** 25 * Commonly used constants. 26 * 27 * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a> 28 */ 29 30 public interface ServiceConstants extends AvalonYaafiConstants 31 { 32 /** The name of this component */ 33 String ROLE_NAME = "fulcrum-yaafi"; 34 35 /** The default implementation class for YAAFI */ 36 String CLAZZ_NAME = "org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl"; 37 38 ///////////////////////////////////////////////////////////////////////// 39 // Entries for the YAAFI configuration files 40 ///////////////////////////////////////////////////////////////////////// 41 42 /** property to lookup the container type */ 43 String CONTAINERFLAVOUR_CONFIG_KEY = "containerFlavour"; 44 45 /** property to lookup the implementation class of the container */ 46 String CONTAINERCLAZZNAME_CONFIG_KEY = "containerClazzName"; 47 48 /** property to lookup the component config file */ 49 String COMPONENT_CONFIG_KEY = "componentConfiguration"; 50 51 /** property to lookup the component config property file */ 52 String COMPONENT_CONFIG_PROPERTIES_KEY = "componentConfigurationProperties"; 53 54 /** property to lookup the component role file */ 55 String COMPONENT_ROLE_KEYS = "componentRoles"; 56 57 /** property to lookup the parameters file */ 58 String COMPONENT_PARAMETERS_KEY = "parameters"; 59 60 /** property to lookup the decryption handling */ 61 String COMPONENT_ISENCRYPTED_KEY = "isEncrypted"; 62 63 /** property to lookup the location */ 64 String COMPONENT_LOCATION_KEY = "location"; 65 66 /** property to lookup the usage of dynamic proxies */ 67 String DYNAMICPROXY_ENABLED_KEY = "hasDynamicProxies"; 68 69 /** property to lookup the list of interceptors */ 70 String INTERCEPTOR_LIST_KEY = "interceptors"; 71 72 /** property to lookup a single interceptor */ 73 String INTERCEPTOR_KEY = "interceptor"; 74 75 /** property to lookup the reconfigurationDelay */ 76 String RECONFIGURATION_DELAY_KEY = "reconfigurationDelay"; 77 78 /** property to lookup the reconfigurationDelay */ 79 String DISPOSAL_DELAY_KEY = "disposalDelay"; 80 81 /** property to lookup a list of service managers */ 82 String SERVICEMANAGER_LIST_KEY = "serviceManagers"; 83 84 /** property to lookup a single service managers */ 85 String SERVICEMANAGER_KEY = "serviceManager"; 86 87 ///////////////////////////////////////////////////////////////////////// 88 // Default values for YAAFI configuration files 89 ///////////////////////////////////////////////////////////////////////// 90 91 /** default file name of the component config file */ 92 String COMPONENT_CONFIG_VALUE = "/componentConfiguration.xml"; 93 94 /** default file name of the component role file */ 95 String COMPONENT_ROLE_VALUE = "/componentRoles.xml"; 96 97 /** default file name of the parameters file */ 98 String COMPONENT_PARAMETERS_VALUE = "/parameters.properties"; 99 100 /** default value for container flavour */ 101 String COMPONENT_CONTAINERFLAVOUR_VALUE = "yaafi"; 102 103 /** default value for role config flavour */ 104 String COMPONENT_ROLECONFIGFLAVOUR_VALUE = "yaafi"; 105 106 }