Class ConnectionReference

java.lang.Object
org.apache.activemq.shiro.ConnectionReference
Direct Known Subclasses:
SubjectConnectionReference

public class ConnectionReference extends Object
A reference (handle) to a client's ConnectionContext and ConnectionInfo as well as the Shiro Environment.

This implementation primarily exists as a Parameter Object Design Pattern implementation to eliminate long parameter lists, but provides additional benefits, such as immutability and non-null guarantees, and possibility for future data without forcing method signature changes.

Since:
5.10.0
  • Constructor Details

    • ConnectionReference

      public ConnectionReference(ConnectionContext connCtx, org.apache.activemq.command.ConnectionInfo connInfo, org.apache.shiro.env.Environment environment)
  • Method Details

    • getConnectionContext

      public ConnectionContext getConnectionContext()
    • getConnectionInfo

      public org.apache.activemq.command.ConnectionInfo getConnectionInfo()
    • getEnvironment

      public org.apache.shiro.env.Environment getEnvironment()