public DObjectManager getClientDObjectMgr (final int clientOid)
    {
        return new DObjectManager() {
            public boolean isManager (DObject object) {
                return LocalDObjectMgr.this.isManager(object);
            }
            public <T extends DObject> void subscribeToObject (int oid, Subscriber<T> target) {
                LocalDObjectMgr.this.subscribeToObject(oid, target);
            }
            public <T extends DObject> void unsubscribeFromObject (int oid, Subscriber<T> target) {
                LocalDObjectMgr.this.unsubscribeFromObject(oid, target);
            }
            public void postEvent (DEvent event) {
                event.setSourceOid(clientOid);
                LocalDObjectMgr.this.postEvent(event);
            }
            public void removedLastSubscriber (DObject obj, boolean deathWish) {
                LocalDObjectMgr.this.removedLastSubscriber(obj, deathWish);
            }
        };
    }
public DObjectManager getClientDObjectMgr ( final int clientOid ) { return new DObjectManager ( ) { public boolean isManager ( DObject object ) { return LocalDObjectMgr . this . isManager ( object ) ; } public < T extends DObject > void subscribeToObject ( int oid , Subscriber < T > target ) { LocalDObjectMgr . this . subscribeToObject ( oid , target ) ; } public < T extends DObject > void unsubscribeFromObject ( int oid , Subscriber < T > target ) { LocalDObjectMgr . this . unsubscribeFromObject ( oid , target ) ; } public void postEvent ( DEvent event ) { event . setSourceOid ( clientOid ) ; LocalDObjectMgr . this . postEvent ( event ) ; } public void removedLastSubscriber ( DObject obj , boolean deathWish ) { LocalDObjectMgr . this . removedLastSubscriber ( obj , deathWish ) ; } } ; }
Creates a {@link DObjectManager} that posts directly to this local object manager, but first
sets the source oid of all events to properly identify them with the supplied client oid.
Normally this oid setting happens when an event is received on the server over the network,
but in local mode we have to do it by hand.