Package ch.ethz.jvmai

Examples of ch.ethz.jvmai.NotInitializedException


   */

  public void setJoinPointHook(JoinPointHook jpHook) {
    if (!isInitialized)
    {
      throw  new NotInitializedException("AspectInterfaceImpl.setJoinPointHook: JVMAI not initialized");
    }
    hook = jpHook;
  }
View Full Code Here


    doTeardown();
  }

  private void setWatchPrecondition(Object arg, Object aopTag) {
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.setWatch: jvmai not initialized");
    if (arg == null)
      throw new NullPointerException("JVMAspectInterface.setWatch: null argument parameter");
    if (aopTag == null)
      throw new IllegalArgumentException("JVMAspectInterface.setWatch: null aopTag value");
  }
View Full Code Here

   * @exception InvalidIdException There exists no field with id <code>fieldId</code> in class <code>cls</code>.
   * @exception WatchNotSetException There exists no access-watch on the field.
   */
  public void clearFieldAccessWatch(Field field) {
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearFieldAccessWatch: jvmai not initialized");
    if (field == null)
      throw new NullPointerException("JVMAspectInterface.clearFieldAccessWatch: null cls parameter");

    synchronized(fieldAccessMap) {
      doClearFieldAccessWatch(field.getDeclaringClass(),field);
View Full Code Here

   * @exception WatchNotSetException There exists no modification-watch on the field.
   */
  public void clearFieldModificationWatch(Field field) {

    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearFielddModificationWatch: jvmai not initialized");

    synchronized(fieldModificationMap) {
      doClearFieldModificationWatch(field.getDeclaringClass(),field);
      fieldModificationMap.remove(field);
    }
View Full Code Here

   */
  public synchronized void clearMethodEntryWatch(Method m) {

    // preconditions
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearMethodEntryWatch: jvmai not initialized");
    if (m == null)
      throw new NullPointerException("JVMAspectInterface.clearMethodEntryWatch: null m parameter");
    if ((m.getModifiers() & (Modifier.ABSTRACT | Modifier.NATIVE)) != 0)
      throw new CannotSetWatchException("JVMAspectInterface.setMethodEntryWatch: cannot clear watches on interfaces");

View Full Code Here

   * @exception WatchNotSetException There exists no exit-watch on the method.
   */
  public synchronized void clearMethodExitWatch(Method m) {
    // preconditions
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearMethodExitWatch: jvmai not initialized");
    if (m == null)
      throw new NullPointerException("JVMAspectInterface.clearMethodExitWatch: null Method parameter");
    if (m.getDeclaringClass().isInterface())
      throw new WatchNotSetException("JVMAspectInterface.clearMethodExitWatch: cannot clear watches on interfaces");

View Full Code Here

   * @exception WatchNotSetException There exists no exceptionThrow-watch at this point.
   */
  public void clearExceptionThrowWatch(Class cls) {

    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearExceptionThrowWatch: jvmai not initialized");
    if (cls == null)
      throw new NullPointerException("JVMAspectInterface.clearExceptionThrowWatch: null cls parameter");

    synchronized(exceptionThrowMap) {
      doClearExceptionWatch(cls);
View Full Code Here

   * @exception WatchNotSetException There exists no exceptionCatch-watch at this point.
   */
  public void clearExceptionCatchWatch(Class cls) {

    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.clearExceptionCatchWatch: jvmai not initialized");
    if (cls == null)
      throw new NullPointerException("JVMAspectInterface.clearExceptionCatchWatch: null cls parameter");

    synchronized(exceptionCatchMap) {
      doClearExceptionCatchWatch(cls);
View Full Code Here

   * @exception NullPointerException <code>thread</code> is <code>null</code>.
   */
  public void suspendNotification(Thread thread) {
    // jvmdi implementation
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.resumeNotification: jvmai not initialized");

    doSuspendNotification(thread);
  }
View Full Code Here

   * @exception NullPointerException <code>thread</code> is <code>null</code>.
   */
  public void resumeNotification(Thread thread) {
    // jvmdi implementation     
    if (!isInitialized)
      throw new NotInitializedException("JVMAspectInterface.resumeNotification: jvmai not initialized");
    doResumeNotification(thread);
  }
View Full Code Here

TOP

Related Classes of ch.ethz.jvmai.NotInitializedException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.