roles
Class ProxyObjectWithRoles

java.lang.Object
  |
  +--roles.ObjectWithRoles
        |
        +--roles.ProxyObjectWithRoles

public class ProxyObjectWithRoles
extends ObjectWithRoles

This class should be used by a framework class that is the root of a role hierarchy but cannot inherit from ObjectWithRoles.


Field Summary
protected  java.lang.Object rolePlayer
          Represents the instance of a framework class, for which an instance of this class acts as the proxy.
 
Fields inherited from class roles.ObjectWithRoles
qualifiedRoles, roles
 
Constructor Summary
protected ProxyObjectWithRoles()
          It is forbidden to instantiate this class without specifying the real role player.
  ProxyObjectWithRoles(java.lang.Object rolePlayer)
          This constructor establishes the proxy relationship between the proxy and the real role player.
 
Method Summary
 java.lang.Object getRolePlayer()
          Returns the role player
 
Methods inherited from class roles.ObjectWithRoles
allAs, as, as, cancelQualifiedRole, cancelRole, existsAs, existsAs, getRegisteredQualifiedRoleTypeNames, getRegisteredRoleTypeNames, getRoot, isEntityEquivalentWith, recordNewQualifiedRole, recordNewRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rolePlayer

protected java.lang.Object rolePlayer
Represents the instance of a framework class, for which an instance of this class acts as the proxy.
Constructor Detail

ProxyObjectWithRoles

protected ProxyObjectWithRoles()
It is forbidden to instantiate this class without specifying the real role player.

ProxyObjectWithRoles

public ProxyObjectWithRoles(java.lang.Object rolePlayer)
This constructor establishes the proxy relationship between the proxy and the real role player.
Method Detail

getRolePlayer

public java.lang.Object getRolePlayer()
Returns the role player