Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SingleConnectionFactory Members

SingleConnectionFactory overview

Public Instance Constructors

SingleConnectionFactory Overloaded. Initializes a new instance of the SingleConnectionFactory class.

Public Instance Properties

ClientId Gets or sets the client id for the single Connection created and exposed by this ConnectionFactory.
ExceptionListener Gets or sets the exception listener implementation that should be registered with with the single Connection created by this factory, if any.
ReconnectOnException Gets or sets a value indicating whether the single Connection should be reset (to be subsequently renewed) when a NMSException is reported by the underlying Connection.
TargetConnectionFactory Gets or sets the target connection factory which will be used to create a single connection.

Public Instance Methods

AfterPropertiesSet Ensure that the connection or TargetConnectionFactory are specified.
CreateConnectionOverloaded. Creates the connection.
Dispose Close the underlying shared connection. The provider of this ConnectionFactory needs to care for proper shutdown. As this object implements IDisposable an application context will automatically invoke this on distruction o
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetSessionOverloaded. Template method for obtaining a (potentially cached) Session.
GetType (inherited from Object)Gets the Type of the current instance.
InitConnection Initialize the underlying shared Connection. Closes and reinitializes the Connection if an underlying Connection is present already.
OnException Exception listener callback that renews the underlying single Connection.
ResetConnection Resets the underlying shared Connection, to be reinitialized on next access.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

CloseConnection Closes the given connection.
DoCreateConnection reate a JMS Connection via this template's ConnectionFactory.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
GetSharedConnection Wrap the given Connection with a proxy that delegates every method call to it but suppresses close calls. This is useful for allowing application code to handle a special framework Connection just like an ordinary Connection from a ConnectionFactory.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
PrepareConnection Prepares the connection before it is exposed. The default implementation applies ExceptionListener and client id. Can be overridden in subclasses.

See Also

SingleConnectionFactory Class | Spring.Messaging.Nms.Connections Namespace