Package org.apache.activemq.shiro
Class ConnectionReference
java.lang.Object
org.apache.activemq.shiro.ConnectionReference
- Direct Known Subclasses:
SubjectConnectionReference
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 Summary
ConstructorsConstructorDescriptionConnectionReference(ConnectionContext connCtx, org.apache.activemq.command.ConnectionInfo connInfo, org.apache.shiro.env.Environment environment) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.activemq.command.ConnectionInfoorg.apache.shiro.env.Environment
-
Constructor Details
-
ConnectionReference
public ConnectionReference(ConnectionContext connCtx, org.apache.activemq.command.ConnectionInfo connInfo, org.apache.shiro.env.Environment environment)
-
-
Method Details
-
getConnectionContext
-
getConnectionInfo
public org.apache.activemq.command.ConnectionInfo getConnectionInfo() -
getEnvironment
public org.apache.shiro.env.Environment getEnvironment()
-