org.objectweb.easybeans.deployment.annotations.helper.bean.checks
Class AccessChecker

java.lang.Object
  extended by org.objectweb.easybeans.deployment.annotations.helper.bean.checks.AccessChecker

public final class AccessChecker
extends java.lang.Object

Utility class for cheking access.

Author:
Florent Benoit

Constructor Summary
private AccessChecker()
          Utility class, no public constructor.
 
Method Summary
static void ensureNoAccess(int acc, JMethod jMethod, java.lang.String desc, java.lang.String className)
          Validate that a given method don't use a given access mode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessChecker

private AccessChecker()
Utility class, no public constructor.

Method Detail

ensureNoAccess

public static void ensureNoAccess(int acc,
                                  JMethod jMethod,
                                  java.lang.String desc,
                                  java.lang.String className)
Validate that a given method don't use a given access mode.

Parameters:
acc - the access mode to refuse.
jMethod - method to check.
desc - the description of the access.
className - the name of the class of the given method.