001// Copyright 2007 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 015package org.apache.tapestry5.ioc.services; 016 017import org.apache.tapestry5.ioc.Registry; 018 019/** 020 * Used in {@link ServiceActivity} to identify the state of the service in terms of its overall lifecycle. 021 */ 022public enum Status 023{ 024 /** 025 * A builtin service that exists before the {@link Registry} is constructed. 026 */ 027 BUILTIN, 028 029 /** 030 * The service is defined in a module, but has not yet been referenced. 031 */ 032 DEFINED, 033 034 /** 035 * A proxy has been created for the service, but no methods of the proxy have been invoked. 036 */ 037 VIRTUAL, 038 039 /** 040 * A service implementation for the service has been created. 041 */ 042 REAL 043}