Deprecated org.springframework.enums

This commit is contained in:
Arjen Poutsma 2009-08-05 11:51:13 +00:00
parent b95f3f6792
commit 8db13bb445
10 changed files with 28 additions and 9 deletions

View File

@ -40,7 +40,9 @@ import org.springframework.util.ClassUtils;
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 1.2.2 * @since 1.2.2
* @see #findLabeledEnums(Class) * @see #findLabeledEnums(Class)
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public abstract class AbstractCachingLabeledEnumResolver implements LabeledEnumResolver { public abstract class AbstractCachingLabeledEnumResolver implements LabeledEnumResolver {
protected transient final Log logger = LogFactory.getLog(getClass()); protected transient final Log logger = LogFactory.getLog(getClass());

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -21,6 +21,7 @@ package org.springframework.core.enums;
* *
* @author Keith Donald * @author Keith Donald
* @since 1.2.6 * @since 1.2.6
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
public abstract class AbstractGenericLabeledEnum extends AbstractLabeledEnum { public abstract class AbstractGenericLabeledEnum extends AbstractLabeledEnum {

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2007 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -23,7 +23,9 @@ package org.springframework.core.enums;
* @author Juergen Hoeller * @author Juergen Hoeller
* @author Sam Brannen * @author Sam Brannen
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public abstract class AbstractLabeledEnum implements LabeledEnum { public abstract class AbstractLabeledEnum implements LabeledEnum {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -39,7 +39,9 @@ import org.springframework.util.comparator.NullSafeComparator;
* *
* @author Keith Donald * @author Keith Donald
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public interface LabeledEnum extends Comparable, Serializable { public interface LabeledEnum extends Comparable, Serializable {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2005 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -25,7 +25,9 @@ import java.util.Set;
* @author Keith Donald * @author Keith Donald
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public interface LabeledEnumResolver { public interface LabeledEnumResolver {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2005 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -27,7 +27,9 @@ import org.springframework.util.Assert;
* *
* @author Keith Donald * @author Keith Donald
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public class LetterCodedLabeledEnum extends AbstractGenericLabeledEnum { public class LetterCodedLabeledEnum extends AbstractGenericLabeledEnum {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2005 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -25,7 +25,9 @@ package org.springframework.core.enums;
* *
* @author Keith Donald * @author Keith Donald
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public class ShortCodedLabeledEnum extends AbstractGenericLabeledEnum { public class ShortCodedLabeledEnum extends AbstractGenericLabeledEnum {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2006 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -41,7 +41,9 @@ package org.springframework.core.enums;
* *
* @author Keith Donald * @author Keith Donald
* @since 1.2.6 * @since 1.2.6
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public abstract class StaticLabeledEnum extends AbstractLabeledEnum { public abstract class StaticLabeledEnum extends AbstractLabeledEnum {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2008 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -31,7 +31,9 @@ import org.springframework.util.Assert;
* @author Keith Donald * @author Keith Donald
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 1.2.2 * @since 1.2.2
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public class StaticLabeledEnumResolver extends AbstractCachingLabeledEnumResolver { public class StaticLabeledEnumResolver extends AbstractCachingLabeledEnumResolver {
/** /**

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2007 the original author or authors. * Copyright 2002-2009 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -29,7 +29,9 @@ import org.springframework.util.Assert;
* @author Juergen Hoeller * @author Juergen Hoeller
* @since 1.2.2 * @since 1.2.2
* @see org.springframework.core.enums.LabeledEnumResolver#getLabeledEnumSet(Class) * @see org.springframework.core.enums.LabeledEnumResolver#getLabeledEnumSet(Class)
* @deprecated as of Spring 3.0, in favor of Java 5 enums.
*/ */
@Deprecated
public class StringCodedLabeledEnum extends AbstractGenericLabeledEnum { public class StringCodedLabeledEnum extends AbstractGenericLabeledEnum {
/** /**