public interface ResourceFilter
The JAX-RS publisher uses a ServiceTracker to track all services. If one has an @Path, @Provider etc.
annotation it will be published. In rare cases it's necessary to modify the filter for the tracker e.g. to only
publish resource starting with "com.foo.*".
To accomplish this you can register a ResourceFilter as an OSGi service. The JAX-RS publisher will prefer
use this service to construct it's ServiceTracker.
Please Note: Right now the ResourceFilter service must be registered before the publisher bundle
is started. Dynamic behavior may follow in future versions.
Filter| Modifier and Type | Method and Description |
|---|---|
Filter |
getFilter()
The OSGi filter to use for tracking the Resources.
|
Copyright © 2016. All rights reserved.