public class DefaultClassPackageFinder extends Object implements ClassPackageFinder
ClassPackageFinder implementation.
By default it uses the current ClassLoader to look for the Class package.
If a ProcessingEnvironment is provided it will be also used.| Constructor and Description |
|---|
DefaultClassPackageFinder() |
DefaultClassPackageFinder(ProcessingEnvironment processingEnvironment) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
packageFor(String className)
Given a
Class name returns the given package where the class belongs. |
public DefaultClassPackageFinder()
public DefaultClassPackageFinder(ProcessingEnvironment processingEnvironment)
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–2024 MuleSoft, Inc.. All rights reserved.