public class BundleSymbolicNameExclusionFilter extends Object implements ExclusionFilter
ExclusionFilter
implementation which
will block OSGi bundles with the header "Bundle-SymbolicName"
if the value matches one in a configurable set.Constructor and Description |
---|
BundleSymbolicNameExclusionFilter(String... exclusionValues)
Creates a new instance configured to the specified exclusion values
|
Modifier and Type | Method and Description |
---|---|
boolean |
exclude(org.jboss.vfs.VirtualFile file)
Returns whether this
VirtualFile should be
excluded from scanning for EJB resources. |
public BundleSymbolicNameExclusionFilter(String... exclusionValues) throws IllegalArgumentException
exclusionValues
- Patterns to exclude if present in the bundle symbolic name headerIllegalArgumentException
- If no exclusions are specifiedpublic boolean exclude(org.jboss.vfs.VirtualFile file)
VirtualFile
should be
excluded from scanning for EJB resources. The criteria
whereby a file is excluded is up to the implementation.exclude
in interface ExclusionFilter
file
- The file to inspect for exclusion propertiesExclusionFilter.exclude(org.jboss.vfs.VirtualFile)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.