public class DefaultClassPackageFinder extends Object implements ClassPackageFinder
ClassPackageFinder composite implementation that finds the package of a given class using all the contained
ClassPackageFinder.| Constructor and Description |
|---|
DefaultClassPackageFinder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAdditionalPackageFinder(ClassPackageFinder classPackageFinder)
Add an additional
ClassPackageFinder to this composite ClassPackageFinder. |
Optional<String> |
packageFor(String className)
Given a
Class name returns the given package where the class belongs. |
public void addAdditionalPackageFinder(ClassPackageFinder classPackageFinder)
ClassPackageFinder to this composite ClassPackageFinder.classPackageFinder - The ClassPackageFinder to be added.public Optional<String> packageFor(String className)
Class name returns the given package where the class belongs.packageFor in interface ClassPackageFinderclassName - The class from which obtain their package.Optional String with the package value. Is empty if the package doesn't exist.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.