public class ClassloaderClassPackageFinder extends Object implements ClassPackageFinder
ClassPackageFinder implementation that uses the current class loader to obtain the package.| Constructor and Description |
|---|
ClassloaderClassPackageFinder() |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
packageFor(String className)
Given a
Class name returns the given package where the class belongs. |
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.