diff --git a/src/Spring/Spring.Web.Conversation.NHibernate3/Spring.Web.Conversation.NHibernate33.XML b/src/Spring/Spring.Web.Conversation.NHibernate3/Spring.Web.Conversation.NHibernate33.XML index 4e9087fd..c6378bc2 100644 --- a/src/Spring/Spring.Web.Conversation.NHibernate3/Spring.Web.Conversation.NHibernate33.XML +++ b/src/Spring/Spring.Web.Conversation.NHibernate3/Spring.Web.Conversation.NHibernate33.XML @@ -1,953 +1,953 @@ - - - - Spring.Web.Conversation.NHibernate33 - - - - - Based on - for support of 'session-per-conversation' pattern. - - Hailton de Castro - - - - The logging instance. - - - - - Initializes a new instance of the class. - Uses default values for - - - - - Initializes a new instance of the class. - - Specify the to be set on each session provided by this instance. - Specify the flushmode to be applied on each session provided by this instance. - - - - - Initializes a new instance of the class. - - An instance holding the scope configuration - - - - Sets a flag, whether this scope is in "open" state on the current logical thread. - - - - - - NOOP. - - - - - Open a new session or reconect the - in . - Participating in an existing session registed with - is not alowed. - - - - - - If there is another conversation with a with opened - . - If attempting to participate in an existing NHibernate - managed by . - - - - - - - Close the current view's session and unregisters - from . - - The session factory that on use - A list of conversations which the session can be closed or disconnected - - - If start/resume a conversation from a - when exists a different - with open registered on - - If the holder on , is not a . - - - - - - Gets the flushmode to be applied on each newly created session. - - - This property defaults to to ensure that modifying objects outside the boundaries - of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation - within a transaction. - - - - - Get the configured EntityInterceptor - - - - - Id for conversation that open the Session. - - - - - Gets a flag, whether this scope is in "open" state on the current logical thread. - - - - - This sessionHolder creates a session for the active conversation only if it is - needed (). - - - Although a NHibernateSession defers creation of db-connections until they are really - needed, instantiation a session is still more expensive than using LazySessionHolder. - - - - - Initialize a new instance. - - - - - Create a new session on demand - - - - - Setting for - - Hailton de Castro - - - - Default value for property. - - - - - Initialize a new instance of with default values. - - - Calling this constructor from your derived class leaves - uninitialized. See for more. - - - - - Initialize a new instance of with the given values and references. - - - Specify the to be set on each session provided by the instance. - - - Specify the flushmode to be applied on each session provided by the instance. - - - Calling this constructor marks all properties initialized. - - - - - Override this method to resolve an instance according to your chosen strategy. - - - - - Gets the configured instance to be used. - - - - - - - Gets or Sets the flushmode to be applied on each newly created session. - - - This property defaults to to ensure that modifying objects outside the boundaries - of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation - within a transaction. - - - - - HttpModule for ending Conversations with Timeout exceeded. - - Hailton de Castro - - - - Add PostRequestHandlerExecute event to clear conversations with timeout exceeded. - - - - - - Disposes of the resources (other than memory) used by the module that implements . - - - - - Handles the Unload event of the page control. - - The source of the event. - The instance containing the event data. - - Necessary for Redirect or Abort for any reason. - - - - - The Names of the s in the - - - - - Sets the that this - object runs in. - - - -

- Used to obtain the instances of -

-

- Invoked after population of normal object properties but before an - init callback such as - 's - - or a custom init-method. Invoked after the setting of any - 's - - property. -

-
- - In the case of application context initialization errors. - - - If thrown by any application context methods. - - -
- - - manager for Conversations. - - Hailton de Castro - - - - Returns the conversation if it is still alive, otherwise it returns null. - - - - - - - Ends all conversations with the timeout exceeded. - - - - - Close IDbConnections for that - use 'session-per-conversation'. It calls - in all conversations. - - - - - Release the ended conversations And removes them. - If the conversation supports 'session-per-conversation', also close the session. - - - - - Add conversation. If is null - it resolves to 'this'. - - - - If already has another manager. - - - - - Makes the 'root conversation' of - the current active conversation and open/reopen the - if - the conversation supports 'session-per-conversation'. Close all - the connection for all session before. - If is true will end all - paused conversations. - - - - - Returns the active conversation if exists, otherwise returns null. - It depends on - - - - - - If this is non-null run pattern 'session-per-conversation'. - Must be the same SessionFactory of the managed conversations. - - - - - - Ends the "paused conversations" in call to . - Important: Unexpected behavior may occur if there are nested conversations, - as in only the current conversation and its parents - are started, the 'conversations children' remain paused, so these will be ended. - Defaul value: false. - - - When it is true, "start/resume a conversation" will cause the other to be - ended and cleaned up. - - This is useful to avoid memory leak where there are many conversations. - This leak can be very considerable, as the conversation may keep a "NHibernate session" - that can contain many objects in its cache from the database queries. - - - - - - Port to conversation. If the object is not found in the current - conversation, will be tried on the parent if the parent is - not null. - - - If is different from spring name for this instance. - - Hailton de Castro - - - - Starts or resumes the conversation and the . - If is not null, so - is called to - Raise SessionHolder for make the reconnection. - - Make return false. - - Update the . - - - - - If this conversation is ended. - - If is not null and - different from - - - - - - - - Ends the conversation. End each of the 'inner conversations' in - . Returns false if the - conversation and all of - has already been ended. - - - - - If . - Session["spring.objects"] - is null. - - The 'spring session scopes' are not located in the key - 'spring.objects' of HttpSessionState. - - - - - - - Starts or resumes the conversation and each 'inner conversation' in - . - It is not about 'Session-per-conversation' because it is done by - . - - - - - Conversation id. - - - - - Return true until is called. - - - - - Return true if this conversation is ended. - - - - - Inner conversation. After added if the - is null it will resolve to 'this'. - - at - , - , - - if Circular Dependency is detected. - - - - Conversation parent. - - - - If this conversation already has a different parent. - - If this Conversation is not new. - - If Circular Dependency is detected. - - The Parent conversation is not new. - - - - - - - TimeOut for the conversation in milliseconds. - If 0 TimeOut will be ignored. - - - - - Last acces for a value into this Conversation or Inner Conversation. - Reset to DateTime.Now each time - is called. - - - - - Conversation Manager. When this is setted if - - returns null so AddConversation is called. - - - - - that is stored in the root conversation. - - - must support 'session-per-conversation'. - - - - - - If this is non-null run pattern 'session-per-conversation'. - It also depends on and . - must support ConversationManager. - - - - - - If this is non-null run pattern 'session-per-conversation'. - It also depends on and . - must support ConversationManager. - - - - - - Indicates that the conversation is paused. - - - - - List that make validation for Circular Dependency for - - Hailton de Castro - - - - Contructor. - - The that owns this . - - - - Common Helper to be run before insert. - - - - - - Common Helper to be run after insert. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This was made to stay under session scope. - - Hailton de Castro - - - - Semaphore to synchronize writes to the dictionary. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ends all conversations and Closes all their Session. - - - - - Remove conversation. - - - - - - - - - - - "SessionFactory" name in the current context. - This approach is required to support serialization. - - - - - - - - - - - - - - - Returns the current context. Supports serialization and deserialization. - - - - - Implementation of conversation in the infrastructure of Spring. - It avoid Circular Dependencies. - - Hailton de Castro - - - - Default message for "CONVERSATION ALREADY HAS A PARENT" error. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A String representation from conversation. - - - - - - - - - - - - - - - - Default 180000. - - - - - - - - - - - - - - - . - - - - - - - - - - - - - - - "SessionFactory" name in the current context. - This approach is required to support serialization. - - - - - - - - - - "DbProvider" name in the current context. - This approach is required to support serialization. - - - - - - - - - - - - - - - - - - - - . It is used to valddate - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the current context. Supports serialization and deserialization. - - -
-
+ + + + Spring.Web.Conversation.NHibernate33 + + + + + Based on + for support of 'session-per-conversation' pattern. + + Hailton de Castro + + + + The logging instance. + + + + + Initializes a new instance of the class. + Uses default values for + + + + + Initializes a new instance of the class. + + Specify the to be set on each session provided by this instance. + Specify the flushmode to be applied on each session provided by this instance. + + + + + Initializes a new instance of the class. + + An instance holding the scope configuration + + + + Sets a flag, whether this scope is in "open" state on the current logical thread. + + + + + + NOOP. + + + + + Open a new session or reconect the + in . + Participating in an existing session registed with + is not alowed. + + + + + + If there is another conversation with a with opened + . + If attempting to participate in an existing NHibernate + managed by . + + + + + + + Close the current view's session and unregisters + from . + + The session factory that on use + A list of conversations which the session can be closed or disconnected + + + If start/resume a conversation from a + when exists a different + with open registered on + + If the holder on , is not a . + + + + + + Gets the flushmode to be applied on each newly created session. + + + This property defaults to to ensure that modifying objects outside the boundaries + of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation + within a transaction. + + + + + Get the configured EntityInterceptor + + + + + Id for conversation that open the Session. + + + + + Gets a flag, whether this scope is in "open" state on the current logical thread. + + + + + This sessionHolder creates a session for the active conversation only if it is + needed (). + + + Although a NHibernateSession defers creation of db-connections until they are really + needed, instantiation a session is still more expensive than using LazySessionHolder. + + + + + Initialize a new instance. + + + + + Create a new session on demand + + + + + Setting for + + Hailton de Castro + + + + Default value for property. + + + + + Initialize a new instance of with default values. + + + Calling this constructor from your derived class leaves + uninitialized. See for more. + + + + + Initialize a new instance of with the given values and references. + + + Specify the to be set on each session provided by the instance. + + + Specify the flushmode to be applied on each session provided by the instance. + + + Calling this constructor marks all properties initialized. + + + + + Override this method to resolve an instance according to your chosen strategy. + + + + + Gets the configured instance to be used. + + + + + + + Gets or Sets the flushmode to be applied on each newly created session. + + + This property defaults to to ensure that modifying objects outside the boundaries + of a transaction will not be persisted. It is recommended to not change this value but wrap any modifying operation + within a transaction. + + + + + HttpModule for ending Conversations with Timeout exceeded. + + Hailton de Castro + + + + Add PostRequestHandlerExecute event to clear conversations with timeout exceeded. + + + + + + Disposes of the resources (other than memory) used by the module that implements . + + + + + Handles the Unload event of the page control. + + The source of the event. + The instance containing the event data. + + Necessary for Redirect or Abort for any reason. + + + + + The Names of the s in the + + + + + Sets the that this + object runs in. + + + +

+ Used to obtain the instances of +

+

+ Invoked after population of normal object properties but before an + init callback such as + 's + + or a custom init-method. Invoked after the setting of any + 's + + property. +

+
+ + In the case of application context initialization errors. + + + If thrown by any application context methods. + + +
+ + + manager for Conversations. + + Hailton de Castro + + + + Returns the conversation if it is still alive, otherwise it returns null. + + + + + + + Ends all conversations with the timeout exceeded. + + + + + Close IDbConnections for that + use 'session-per-conversation'. It calls + in all conversations. + + + + + Release the ended conversations And removes them. + If the conversation supports 'session-per-conversation', also close the session. + + + + + Add conversation. If is null + it resolves to 'this'. + + + + If already has another manager. + + + + + Makes the 'root conversation' of + the current active conversation and open/reopen the + if + the conversation supports 'session-per-conversation'. Close all + the connection for all session before. + If is true will end all + paused conversations. + + + + + Returns the active conversation if exists, otherwise returns null. + It depends on + + + + + + If this is non-null run pattern 'session-per-conversation'. + Must be the same SessionFactory of the managed conversations. + + + + + + Ends the "paused conversations" in call to . + Important: Unexpected behavior may occur if there are nested conversations, + as in only the current conversation and its parents + are started, the 'conversations children' remain paused, so these will be ended. + Defaul value: false. + + + When it is true, "start/resume a conversation" will cause the other to be + ended and cleaned up. + + This is useful to avoid memory leak where there are many conversations. + This leak can be very considerable, as the conversation may keep a "NHibernate session" + that can contain many objects in its cache from the database queries. + + + + + + Port to conversation. If the object is not found in the current + conversation, will be tried on the parent if the parent is + not null. + + + If is different from spring name for this instance. + + Hailton de Castro + + + + Starts or resumes the conversation and the . + If is not null, so + is called to + Raise SessionHolder for make the reconnection. + + Make return false. + + Update the . + + + + + If this conversation is ended. + + If is not null and + different from + + + + + + + + Ends the conversation. End each of the 'inner conversations' in + . Returns false if the + conversation and all of + has already been ended. + + + + + If . + Session["spring.objects"] + is null. + + The 'spring session scopes' are not located in the key + 'spring.objects' of HttpSessionState. + + + + + + + Starts or resumes the conversation and each 'inner conversation' in + . + It is not about 'Session-per-conversation' because it is done by + . + + + + + Conversation id. + + + + + Return true until is called. + + + + + Return true if this conversation is ended. + + + + + Inner conversation. After added if the + is null it will resolve to 'this'. + + at + , + , + + if Circular Dependency is detected. + + + + Conversation parent. + + + + If this conversation already has a different parent. + + If this Conversation is not new. + + If Circular Dependency is detected. + + The Parent conversation is not new. + + + + + + + TimeOut for the conversation in milliseconds. + If 0 TimeOut will be ignored. + + + + + Last acces for a value into this Conversation or Inner Conversation. + Reset to DateTime.Now each time + is called. + + + + + Conversation Manager. When this is setted if + + returns null so AddConversation is called. + + + + + that is stored in the root conversation. + + + must support 'session-per-conversation'. + + + + + + If this is non-null run pattern 'session-per-conversation'. + It also depends on and . + must support ConversationManager. + + + + + + If this is non-null run pattern 'session-per-conversation'. + It also depends on and . + must support ConversationManager. + + + + + + Indicates that the conversation is paused. + + + + + List that make validation for Circular Dependency for + + Hailton de Castro + + + + Contructor. + + The that owns this . + + + + Common Helper to be run before insert. + + + + + + Common Helper to be run after insert. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This was made to stay under session scope. + + Hailton de Castro + + + + Semaphore to synchronize writes to the dictionary. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ends all conversations and Closes all their Session. + + + + + Remove conversation. + + + + + + + + + + + "SessionFactory" name in the current context. + This approach is required to support serialization. + + + + + + + + + + + + + + + Returns the current context. Supports serialization and deserialization. + + + + + Implementation of conversation in the infrastructure of Spring. + It avoid Circular Dependencies. + + Hailton de Castro + + + + Default message for "CONVERSATION ALREADY HAS A PARENT" error. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A String representation from conversation. + + + + + + + + + + + + + + + + Default 180000. + + + + + + + + + + + + + + + . + + + + + + + + + + + + + + + "SessionFactory" name in the current context. + This approach is required to support serialization. + + + + + + + + + + "DbProvider" name in the current context. + This approach is required to support serialization. + + + + + + + + + + + + + + + + + + + + . It is used to valddate + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Returns the current context. Supports serialization and deserialization. + + +
+
diff --git a/test/Spring/Spring.Template.Velocity.Castle.Tests/Spring.Template.Velocity.Castle.Tests.2010.csproj b/test/Spring/Spring.Template.Velocity.Castle.Tests/Spring.Template.Velocity.Castle.Tests.2010.csproj index a4c3d55d..0052eb8e 100644 --- a/test/Spring/Spring.Template.Velocity.Castle.Tests/Spring.Template.Velocity.Castle.Tests.2010.csproj +++ b/test/Spring/Spring.Template.Velocity.Castle.Tests/Spring.Template.Velocity.Castle.Tests.2010.csproj @@ -1,119 +1,122 @@ - - - - Debug - AnyCPU - 9.0.30729 - 2.0 - {8D6ED392-8A1F-41C0-A765-22CF384EDEA1} - Library - Properties - Spring - Spring.Template.Velocity.Castle.Tests - v4.0 - 512 - - - 3.5 - - - ..\..\..\ - true - - - true - full - false - ..\..\..\build\VS.NET.2010\Spring.Template.Velocity.Castle.Tests\Debug\ - TRACE;DEBUG;NET_4_0 - prompt - 4 - true - - - - - pdbonly - true - ..\..\..\build\VS.NET.2010\Spring.Template.Velocity.Castle.Tests\Release\ - TRACE;NET_4_0 - prompt - 4 - true - - - - ..\..\..\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll - - - ..\..\..\packages\Common.Logging.Core.3.0.0\lib\net40\Common.Logging.Core.dll - - - False - ..\..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll - - - ..\..\..\packages\Castle.NVelocity.1.1.1\lib\net40\NVelocity.dll - - - - - - - - Template\Velocity\Config\TemplateNamespaceParserTests.cs - - - Template\Velocity\VelocityEngineFactoryObjectTests.cs - - - Template\Velocity\VelocityEngineTestBase.cs - - - VelocityCompilerOptionsTests.cs - - - - - {710961A3-0DF4-49E4-A26E-F5B9C044AC84} - Spring.Core.2010 - - - {250601c0-a4ac-41fe-b484-51a9b0d5473d} - Spring.Template.Velocity.Castle.2010 - - - {44B16BAA-6DF8-447C-9D7F-3AD3D854D904} - Spring.Core.Tests.2010 - - - - - Template\Velocity\EmbeddedTemplate.vm - - - Template\Velocity\SimpleTemplate.vm - - - - - - - - - - - - - - - - + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {8D6ED392-8A1F-41C0-A765-22CF384EDEA1} + Library + Properties + Spring + Spring.Template.Velocity.Castle.Tests + v4.0 + 512 + + + 3.5 + + + ..\..\..\ + true + + + true + full + false + ..\..\..\build\VS.NET.2010\Spring.Template.Velocity.Castle.Tests\Debug\ + TRACE;DEBUG;NET_4_0 + prompt + 4 + true + + + + + pdbonly + true + ..\..\..\build\VS.NET.2010\Spring.Template.Velocity.Castle.Tests\Release\ + TRACE;NET_4_0 + prompt + 4 + true + + + + ..\..\..\packages\Common.Logging.3.0.0\lib\net40\Common.Logging.dll + + + ..\..\..\packages\Common.Logging.Core.3.0.0\lib\net40\Common.Logging.Core.dll + + + False + ..\..\..\packages\NUnit.2.6.3\lib\nunit.framework.dll + + + ..\..\..\packages\Castle.NVelocity.1.1.1\lib\net40\NVelocity.dll + + + + + + + + Template\Velocity\Config\TemplateNamespaceParserTests.cs + + + Template\Velocity\VelocityEngineFactoryObjectTests.cs + + + Template\Velocity\VelocityEngineTestBase.cs + + + VelocityCompilerOptionsTests.cs + + + + + {710961A3-0DF4-49E4-A26E-F5B9C044AC84} + Spring.Core.2010 + + + {250601c0-a4ac-41fe-b484-51a9b0d5473d} + Spring.Template.Velocity.Castle.2010 + + + {44B16BAA-6DF8-447C-9D7F-3AD3D854D904} + Spring.Core.Tests.2010 + + + + + Template\Velocity\EmbeddedTemplate.vm + + + Template\Velocity\SimpleTemplate.vm + Always + + + + + Always + + + + + + + + + + + + + + --> \ No newline at end of file