net.sourceforge.hivelock
Class UserServiceModel

java.lang.Object
  extended by org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
      extended by net.sourceforge.hivelock.UserServiceModel
All Implemented Interfaces:
java.util.EventListener, UserEventListener, org.apache.hivemind.internal.ServiceModel

public class UserServiceModel
extends org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
implements UserEventListener


Nested Class Summary
protected  class UserServiceModel.UserServiceProxy
           
 
Field Summary
protected  java.util.Map<java.security.Principal,java.lang.Object> _implementations
           
protected  java.lang.ClassLoader _loader
           
protected  java.lang.Object _proxy
           
protected  SecurityService _security
           
 
Fields inherited from class org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
_log
 
Constructor Summary
UserServiceModel(org.apache.hivemind.impl.ConstructableServicePoint servicePoint)
           
 
Method Summary
protected  java.lang.Object createUserProxy()
           
 java.lang.Object getService()
           
protected  java.lang.Object getServiceForUser()
           
 void instantiateService()
           
 void userConnected(java.security.Principal user)
           
 void userDisconnected(java.security.Principal user, boolean forced)
           
 
Methods inherited from class org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl
addInterceptors, constructBridgeProxy, constructCoreServiceImplementation, constructNewServiceImplementation, constructServiceImplementation, getServicePoint, registerWithShutdownCoordinator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_loader

protected final java.lang.ClassLoader _loader

_security

protected final SecurityService _security

_implementations

protected final java.util.Map<java.security.Principal,java.lang.Object> _implementations

_proxy

protected java.lang.Object _proxy
Constructor Detail

UserServiceModel

public UserServiceModel(org.apache.hivemind.impl.ConstructableServicePoint servicePoint)
Method Detail

getService

public java.lang.Object getService()
Specified by:
getService in interface org.apache.hivemind.internal.ServiceModel

createUserProxy

protected java.lang.Object createUserProxy()

instantiateService

public void instantiateService()
Specified by:
instantiateService in interface org.apache.hivemind.internal.ServiceModel

getServiceForUser

protected java.lang.Object getServiceForUser()

userConnected

public void userConnected(java.security.Principal user)
Specified by:
userConnected in interface UserEventListener

userDisconnected

public void userDisconnected(java.security.Principal user,
                             boolean forced)
Specified by:
userDisconnected in interface UserEventListener