ClassDictInit.java :  » Testing » Marathon » org » python » core » Java Open Source

Java Open Source » Testing » Marathon 
Marathon » org » python » core » ClassDictInit.java
// Copyright 2000 Finn Bock

package org.python.core;

/**
 * An empty tagging interface that can be used if a java class
 * want control over the class dict initialization.
 * When a java class implements this interface, it must also have
 * a method like:
 * <pre>
 *       public static void classDictInit(PyObject dict) { .. }
 * </pre>
 * The method will be called when the class is initialized. The
 * method can then make changes to the class's __dict__ instance,
 * f.example be removing method that should not be avaiable in python
 * or by replacing some method with high performance versions.
 */

public interface ClassDictInit
{
  // An empty tagging interface.
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.