8321428: Deprecate for removal the package java.beans.beancontext
Reviewed-by: prr, tr, iris, serb, aivanov
This commit is contained in:
parent
0b0445be28
commit
e0d1c4b38c
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -102,8 +102,10 @@ public class Beans {
|
||||
* object could not be found.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
* @since 1.2
|
||||
* @deprecated this method will be removed when java.beans.beancontext is removed
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
@SuppressWarnings({"deprecation", "removal"})
|
||||
public static Object instantiate(ClassLoader cls, String beanName,
|
||||
BeanContext beanContext)
|
||||
throws IOException, ClassNotFoundException {
|
||||
@ -352,7 +354,8 @@ public class Beans {
|
||||
return result;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
@SuppressWarnings({ "unchecked", "removal" })
|
||||
private static void unsafeBeanContextAdd(BeanContext beanContext, Object res) {
|
||||
beanContext.add(res);
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -53,7 +53,8 @@ import java.util.Locale;
|
||||
* @see java.util.Collection
|
||||
*/
|
||||
|
||||
@SuppressWarnings("rawtypes")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
@SuppressWarnings({"rawtypes", "removal"})
|
||||
public interface BeanContext extends BeanContextChild, Collection, DesignMode, Visibility {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -65,6 +65,8 @@ import java.beans.beancontext.BeanContext;
|
||||
* @see java.beans.VetoableChangeListener
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextChild {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -41,6 +41,8 @@ import java.awt.Component;
|
||||
* @see java.beans.beancontext.BeanContextSupport
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextChildComponentProxy {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -54,6 +54,8 @@ import java.io.Serializable;
|
||||
* @see java.beans.beancontext.BeanContextChild
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public class BeanContextChildSupport implements BeanContextChild, BeanContextServicesListener, Serializable {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -40,6 +40,8 @@ import java.awt.Container;
|
||||
* @see java.beans.beancontext.BeanContextSupport
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextContainerProxy {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -46,6 +46,8 @@ import java.util.EventObject;
|
||||
* @see java.beans.beancontext.BeanContext
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public abstract class BeanContextEvent extends EventObject {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -50,6 +50,9 @@ import java.util.Iterator;
|
||||
* @see java.beans.beancontext.BeanContextEvent
|
||||
* @see java.beans.beancontext.BeanContextMembershipListener
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public class BeanContextMembershipEvent extends BeanContextEvent {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -40,6 +40,8 @@ import java.util.EventListener;
|
||||
* @see java.beans.beancontext.BeanContext
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextMembershipListener extends EventListener {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2002, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -72,6 +72,8 @@ package java.beans.beancontext;
|
||||
* @see java.beans.beancontext.BeanContextChildSupport
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextProxy {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,6 +35,8 @@ import java.util.Iterator;
|
||||
* </p>
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since="23", forRemoval=true)
|
||||
public class BeanContextServiceAvailableEvent extends BeanContextEvent {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -49,6 +49,8 @@ import java.util.Iterator;
|
||||
* </p>
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextServiceProvider {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,6 +35,8 @@ import java.beans.BeanInfo;
|
||||
* services.
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextServiceProviderBeanInfo extends BeanInfo {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,6 +34,9 @@ import java.io.Serial;
|
||||
* identify the service being revoked.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public class BeanContextServiceRevokedEvent extends BeanContextEvent {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -34,6 +34,9 @@ import java.util.EventListener;
|
||||
* interested in processing a {@code BeanContextServiceRevokedEvent}
|
||||
* implements this interface.
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextServiceRevokedListener extends EventListener {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -42,6 +42,9 @@ import java.beans.beancontext.BeanContextServicesListener;
|
||||
* to expose generic "services" to the BeanContextChild objects within.
|
||||
* </p>
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextServices extends BeanContext, BeanContextServicesListener {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 1014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -35,6 +35,9 @@ import java.beans.beancontext.BeanContextServiceRevokedListener;
|
||||
* A class that is interested in processing a
|
||||
* {@code BeanContextServiceAvailableEvent} implements this interface.
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public interface BeanContextServicesListener extends BeanContextServiceRevokedListener {
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -54,6 +54,9 @@ import java.util.TooManyListenersException;
|
||||
* @author Laurence P. G. Cable
|
||||
* @since 1.2
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public class BeanContextServicesSupport extends BeanContextSupport
|
||||
implements BeanContextServices {
|
||||
|
||||
|
@ -59,6 +59,9 @@ import java.util.Map;
|
||||
* @author Laurence P. G. Cable
|
||||
* @since 1.2
|
||||
*/
|
||||
|
||||
@SuppressWarnings("removal")
|
||||
@Deprecated(since = "23", forRemoval = true)
|
||||
public class BeanContextSupport extends BeanContextChildSupport
|
||||
implements BeanContext,
|
||||
Serializable,
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1998, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -31,6 +31,13 @@
|
||||
* contains events and listener interface for beans being added and removed from
|
||||
* a bean context.
|
||||
*
|
||||
* This package has been deprecated and may be removed in a future version of the Java Platform
|
||||
* There is no replacement.
|
||||
*
|
||||
* All of the classes and interfaces in this package have been terminally deprecated.
|
||||
*
|
||||
* Users are advised to migrate their applications to other technologies.
|
||||
*
|
||||
* @since 1.2
|
||||
*/
|
||||
package java.beans.beancontext;
|
||||
|
Loading…
x
Reference in New Issue
Block a user