01: /*****************************************************************************
02: * Copyright (C) PicoContainer Organization. All rights reserved. *
03: * ------------------------------------------------------------------------- *
04: * The software in this package is published under the terms of the BSD *
05: * style license a copy of which has been included with this distribution in *
06: * the LICENSE.txt file. *
07: * *
08: * Original code by *
09: *****************************************************************************/package org.picocontainer.lifecycle;
10:
11: import java.io.Serializable;
12:
13: import org.picocontainer.LifecycleStrategy;
14:
15: /**
16: * Lifecycle strategy that does nothing.
17: *
18: */
19: public class NullLifecycleStrategy implements LifecycleStrategy,
20: Serializable {
21:
22: /**
23: * Serialization UUID.
24: */
25: private static final long serialVersionUID = -626149098386614685L;
26:
27: /** {@inheritDoc} **/
28: public void start(final Object component) {
29: //Does nothing
30: }
31:
32: /** {@inheritDoc} **/
33: public void stop(final Object component) {
34: //Does nothing
35: }
36:
37: /** {@inheritDoc} **/
38: public void dispose(final Object component) {
39: //Does nothing
40: }
41:
42: /** {@inheritDoc} **/
43: public boolean hasLifecycle(final Class<?> type) {
44: return false;
45: }
46: }
|