public final class ConfigurationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <B> Class<? extends Builder<B>> |
builderFor(B built)
Returns the builder that was used to build this class.
|
static <B> Class<? extends Builder<B>> |
builderForNonStrict(B built)
The same as
builderFor(Object) except that it won't
throw an exception if no builder class is found. |
public static <B> Class<? extends Builder<B>> builderFor(B built) throws CacheConfigurationException
BuiltBy
annotation present on it. If one is not present
a CacheConfigurationException
is thrownB
- The type of builderbuilt
- The instance to find the builder forCacheConfigurationException
- thrown if the instance class can't provide the builderpublic static <B> Class<? extends Builder<B>> builderForNonStrict(B built)
builderFor(Object)
except that it won't
throw an exception if no builder class is found. Instead null will be returned.B
- The type of builderbuilt
- The instance to find the builder forCopyright © 2021 JBoss by Red Hat. All rights reserved.