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.behaviors;
10:
11: import org.picocontainer.Behavior;
12: import org.picocontainer.ComponentAdapter;
13:
14: import java.io.Serializable;
15:
16: public class Automated<T> extends AbstractBehavior<T> implements
17: Behavior<T>, Serializable {
18:
19: /**
20: * Serialization UUID.
21: */
22: private static final long serialVersionUID = 36709276463500305L;
23:
24: public Automated(ComponentAdapter<T> delegate) {
25: super (delegate);
26: }
27:
28: public boolean hasLifecycle(Class<?> type) {
29: return true;
30: }
31:
32: public String getDescriptor() {
33: return "Automated";
34: }
35: }
|