[java-shib-shared] branch main updated: Add a deprecated stub class.
Scott Cantor
cantor.2 at osu.edu
Thu Jul 20 12:56:31 UTC 2023
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to branch main
in repository java-shib-shared.
View the commit online:
http://git.shibboleth.net/view/?p=java-shib-shared.git;a=commit;h=12acab59166b980c7a4f5f4e03e2861a499a86ed
The following commit(s) were added to refs/heads/main by this push:
new 12acab59 Add a deprecated stub class.
12acab59 is described below
commit 12acab59166b980c7a4f5f4e03e2861a499a86ed
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Jul 20 08:56:05 2023 -0400
Add a deprecated stub class.
---
.../config/IdentifiableBeanPostProcessor.java | 41 ++++++++++++++++++++++
.../shibboleth/ext/spring/config/package-info.java | 24 +++++++++++++
.../ext/spring/context/package-info.java | 24 +++++++++++++
3 files changed, 89 insertions(+)
diff --git a/shib-spring/src/main/java/net/shibboleth/ext/spring/config/IdentifiableBeanPostProcessor.java b/shib-spring/src/main/java/net/shibboleth/ext/spring/config/IdentifiableBeanPostProcessor.java
new file mode 100644
index 00000000..cb342e94
--- /dev/null
+++ b/shib-spring/src/main/java/net/shibboleth/ext/spring/config/IdentifiableBeanPostProcessor.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package net.shibboleth.ext.spring.config;
+
+import javax.annotation.Nonnull;
+
+import net.shibboleth.shared.component.IdentifiableComponent;
+import net.shibboleth.shared.primitive.DeprecationSupport;
+import net.shibboleth.shared.primitive.DeprecationSupport.ObjectType;
+
+/**
+ * Pre-processes {@link IdentifiableComponent} beans by setting the bean ID to the bean name.
+ */
+public class IdentifiableBeanPostProcessor extends net.shibboleth.shared.spring.config.IdentifiableBeanPostProcessor {
+
+ /** {@inheritDoc} */
+ @SuppressWarnings("null")
+ @Nonnull public Object postProcessBeforeInitialization(@Nonnull final Object bean, @Nonnull final String beanName) {
+
+ DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null,
+ net.shibboleth.shared.spring.config.IdentifiableBeanPostProcessor.class.getName());
+
+ return super.postProcessBeforeInitialization(bean, beanName);
+ }
+
+}
\ No newline at end of file
diff --git a/shib-spring/src/main/java/net/shibboleth/ext/spring/config/package-info.java b/shib-spring/src/main/java/net/shibboleth/ext/spring/config/package-info.java
new file mode 100644
index 00000000..e9b60c1d
--- /dev/null
+++ b/shib-spring/src/main/java/net/shibboleth/ext/spring/config/package-info.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Legacy package.
+ */
+ at NonnullElements
+package net.shibboleth.ext.spring.config;
+
+import net.shibboleth.shared.annotation.constraint.NonnullElements;
diff --git a/shib-spring/src/main/java/net/shibboleth/ext/spring/context/package-info.java b/shib-spring/src/main/java/net/shibboleth/ext/spring/context/package-info.java
new file mode 100644
index 00000000..522509bc
--- /dev/null
+++ b/shib-spring/src/main/java/net/shibboleth/ext/spring/context/package-info.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the University Corporation for Advanced Internet Development,
+ * Inc. (UCAID) under one or more contributor license agreements. See the
+ * NOTICE file distributed with this work for additional information regarding
+ * copyright ownership. The UCAID licenses this file to You under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * Legacy package.
+ */
+ at NonnullElements
+package net.shibboleth.ext.spring.context;
+
+import net.shibboleth.shared.annotation.constraint.NonnullElements;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list