public abstract class AbstractPolicy extends Object implements IPolicy
IPolicyProvider
Constructor and Description |
---|
AbstractPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
assertClass(String methodName,
String argName,
Class<?> cl,
Object obj)
Utility method for detailed problem reporting when an object that gets
passed to a policy method does not have the correct type.
|
public void assertClass(String methodName, String argName, Class<?> cl, Object obj)
methodName
- the method that wants to assert / make sure that the given
object does have the correct typeargName
- the name of the method argument that requires a certain object
typecl
- the required object typeobj
- the object that got passed to the method and that gets checked
for whether it has the right type or notCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.