001 package org.apache.fulcrum.yaafi.framework.container;
002
003 /*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements. See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership. The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License. You may obtain a copy of the License at
011 *
012 * http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied. See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022 import org.apache.fulcrum.yaafi.framework.constant.AvalonYaafiConstants;
023
024 /**
025 * Commonly used constants.
026 *
027 * @author <a href="mailto:siegfried.goeschl@it20one.at">Siegfried Goeschl</a>
028 */
029
030 public interface ServiceConstants extends AvalonYaafiConstants
031 {
032 /** The name of this component */
033 String ROLE_NAME = "fulcrum-yaafi";
034
035 /** The default implementation class for YAAFI */
036 String CLAZZ_NAME = "org.apache.fulcrum.yaafi.framework.container.ServiceContainerImpl";
037
038 /////////////////////////////////////////////////////////////////////////
039 // Entries for the YAAFI configuration files
040 /////////////////////////////////////////////////////////////////////////
041
042 /** property to lookup the container type */
043 String CONTAINERFLAVOUR_CONFIG_KEY = "containerFlavour";
044
045 /** property to lookup the implementation class of the container */
046 String CONTAINERCLAZZNAME_CONFIG_KEY = "containerClazzName";
047
048 /** property to lookup the component config file */
049 String COMPONENT_CONFIG_KEY = "componentConfiguration";
050
051 /** property to lookup the component config property file */
052 String COMPONENT_CONFIG_PROPERTIES_KEY = "componentConfigurationProperties";
053
054 /** property to lookup the component role file */
055 String COMPONENT_ROLE_KEYS = "componentRoles";
056
057 /** property to lookup the parameters file */
058 String COMPONENT_PARAMETERS_KEY = "parameters";
059
060 /** property to lookup the decryption handling */
061 String COMPONENT_ISENCRYPTED_KEY = "isEncrypted";
062
063 /** property to lookup the location */
064 String COMPONENT_LOCATION_KEY = "location";
065
066 /** property to lookup the usage of dynamic proxies */
067 String DYNAMICPROXY_ENABLED_KEY = "hasDynamicProxies";
068
069 /** property to lookup the list of interceptors */
070 String INTERCEPTOR_LIST_KEY = "interceptors";
071
072 /** property to lookup a single interceptor */
073 String INTERCEPTOR_KEY = "interceptor";
074
075 /** property to lookup the reconfigurationDelay */
076 String RECONFIGURATION_DELAY_KEY = "reconfigurationDelay";
077
078 /** property to lookup a list of service managers */
079 String SERVICEMANAGER_LIST_KEY = "serviceManagers";
080
081 /** property to lookup a single service managers */
082 String SERVICEMANAGER_KEY = "serviceManager";
083
084 /////////////////////////////////////////////////////////////////////////
085 // Default values for YAAFI configuration files
086 /////////////////////////////////////////////////////////////////////////
087
088 /** default file name of the component config file */
089 String COMPONENT_CONFIG_VALUE = "/componentConfiguration.xml";
090
091 /** default file name of the component role file */
092 String COMPONENT_ROLE_VALUE = "/componentRoles.xml";
093
094 /** default file name of the parameters file */
095 String COMPONENT_PARAMETERS_VALUE = "/parameters.properties";
096
097 /** default value for container flavour */
098 String COMPONENT_CONTAINERFLAVOUR_VALUE = "yaafi";
099
100 /** default value for role config flavour */
101 String COMPONENT_ROLECONFIGFLAVOUR_VALUE = "yaafi";
102
103 }