001 /**
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.xbean.kernel;
018
019 /**
020 * The NullServiceMonitor is a simple implementation of ServiceMonitor containing a noop implementaion of
021 * each callback.
022 *
023 * @author Dain Sundstrom
024 * @version $Id$
025 * @since 2.0
026 */
027 public class NullServiceMonitor implements ServiceMonitor {
028 /**
029 * {@inheritDoc}
030 */
031 public void serviceRegistered(ServiceEvent serviceEvent) {
032 }
033
034 /**
035 * {@inheritDoc}
036 */
037 public void serviceStarting(ServiceEvent serviceEvent) {
038 }
039
040 /**
041 * {@inheritDoc}
042 */
043 public void serviceWaitingToStart(ServiceEvent serviceEvent) {
044 }
045
046 /**
047 * {@inheritDoc}
048 */
049 public void serviceStartError(ServiceEvent serviceEvent) {
050 }
051
052 /**
053 * {@inheritDoc}
054 */
055 public void serviceRunning(ServiceEvent serviceEvent) {
056 }
057
058 /**
059 * {@inheritDoc}
060 */
061 public void serviceStopping(ServiceEvent serviceEvent) {
062 }
063
064 /**
065 * {@inheritDoc}
066 */
067 public void serviceWaitingToStop(ServiceEvent serviceEvent) {
068 }
069
070 /**
071 * {@inheritDoc}
072 */
073 public void serviceStopError(ServiceEvent serviceEvent) {
074 }
075
076 /**
077 * {@inheritDoc}
078 */
079 public void serviceStopped(ServiceEvent serviceEvent) {
080 }
081
082 /**
083 * {@inheritDoc}
084 */
085 public void serviceUnregistered(ServiceEvent serviceEvent) {
086 }
087 }