Package org.apache.activemq.shiro
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'sConnectionContext
andConnectionInfo
as well as the ShiroEnvironment
. 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 Summary
Constructors Constructor Description ConnectionReference(ConnectionContext connCtx, ConnectionInfo connInfo, org.apache.shiro.env.Environment environment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionContext
getConnectionContext()
ConnectionInfo
getConnectionInfo()
org.apache.shiro.env.Environment
getEnvironment()
-
-
-
Constructor Detail
-
ConnectionReference
public ConnectionReference(ConnectionContext connCtx, ConnectionInfo connInfo, org.apache.shiro.env.Environment environment)
-
-
Method Detail
-
getConnectionContext
public ConnectionContext getConnectionContext()
-
getConnectionInfo
public ConnectionInfo getConnectionInfo()
-
getEnvironment
public org.apache.shiro.env.Environment getEnvironment()
-
-