001 /*****************************************************************************
002 * Copyright (C) PicoContainer Organization. All rights reserved. *
003 * ------------------------------------------------------------------------- *
004 * The software in this package is published under the terms of the BSD *
005 * style license a copy of which has been included with this distribution in *
006 * the LICENSE.txt file. *
007 * *
008 * Original code by *
009 *****************************************************************************/
010 package org.picocontainer.behaviors;
011
012 import org.picocontainer.Behavior;
013 import org.picocontainer.ComponentAdapter;
014
015 import java.io.Serializable;
016
017 @SuppressWarnings("serial")
018 public class Automated<T> extends AbstractBehavior<T> implements Behavior<T>, Serializable {
019
020
021 public Automated(ComponentAdapter<T> delegate) {
022 super(delegate);
023 }
024
025 public boolean hasLifecycle(Class<?> type) {
026 return true;
027 }
028
029 public String getDescriptor() {
030 return "Automated";
031 }
032 }