The StdCOMClassObject class of the com.ms.com package supports the implementation of custom COM class objects.
public abstract class StdCOMClassObject { // Methods protected IUnknown createInstanceImpl(IUnknown punkOuter); protected IUnknown createControlImpl(IUnknown punkOuter); protected void lockServerImpl(boolean lock); }
See the COM Class Object sample in %SDKDIR%\Samples\COM\COMClassObject for a demonstration of implementing a custom COM class object and implementing a small client that co-creates the object through the Java interface.
Creating a Custom Class Object