# Deprecated API

## Contents

- Deprecated Interfaces
- Deprecated Fields
- Deprecated Methods

- Deprecated Interfaces
  Interface and Description
  org.apache.struts2.osgi.interceptor.BundleContextAware please use `BundleContextAware` instead
  org.apache.struts2.osgi.interceptor.ServiceAware please use `ServiceAware` instead

- Deprecated Fields
  Field and Description
  org.apache.struts2.osgi.host.BaseOsgiHost.versionPattern use `BaseOsgiHost.VERSION_PATTERN` instead

- Deprecated Methods
  Method and Description
  org.apache.struts2.osgi.PackageLoader.loadPackages(Bundle, BundleContext, ObjectFactory, FileManagerFactory, Map<String, PackageConfig>)
  org.apache.struts2.osgi.BundlePackageLoader.loadPackages(Bundle, BundleContext, ObjectFactory, FileManagerFactory, Map<String, PackageConfig>)
  org.apache.struts2.osgi.interceptor.BundleContextAware.setBundleContext(BundleContext) please use `BundleContextAware.withBundleContext(BundleContext)` instead
  org.apache.struts2.osgi.interceptor.ServiceAware.setServices(List<T>) please use `ServiceAware.withServices(List)` instead
  org.apache.struts2.osgi.OsgiConfigurationProvider.setVelocityManager(VelocityManager) since 6.4.0

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.