diff --git a/src/Spring/Spring.Aop/Spring.Aop.xml b/src/Spring/Spring.Aop/Spring.Aop.xml deleted file mode 100644 index 23fe1a27..00000000 --- a/src/Spring/Spring.Aop/Spring.Aop.xml +++ /dev/null @@ -1,10739 +0,0 @@ - - - - Spring.Aop - - - - - The central interface for Spring.NET based AOP proxies. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAopProxy.cs,v 1.4 2006/11/16 02:30:49 bbaia Exp $ - - - - Creates a new proxy object. - - - - - implementation - that caches advisor chains on a per-advised-method basis. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: HashtableCachingAdvisorChainFactory.cs,v 1.9 2007/03/16 04:01:18 aseovic Exp $ - - - - Factory interface for advisor chains. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAdvisorChainFactory.cs,v 1.8 2006/09/14 21:05:23 bbaia Exp $ - - - - Callback interface for - listeners. - - -

- Allows - implementations to be notified of notable lifecycle events relating - to the creation of a proxy, and changes to the configuration data of a - proxy. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAdvisedSupportListener.cs,v 1.5 2006/04/09 07:18:35 markpollack Exp $ -
- - - Invoked when the first proxy is created. - - - The relevant source. - - - - - Invoked when advice is changed after a proxy is created. - - - The relevant source. - - - - - Invoked when interfaces are changed after a proxy is created. - - - The relevant source. - - - - - Gets the list of and - - instances for the supplied . - - The proxy configuration object. - The object proxy. - - The method for which the interceptors are to be evaluated. - - - The of the target object. - - - The list of and - - instances for the supplied . - - - - - Gets the list of and - - instances for the supplied . - - The proxy configuration object. - The object proxy. - - The method for which the interceptors are to be evaluated. - - - The of the target object. - - - The list of and - - instances for the supplied . - - - - - Invoked when the first proxy is created. - - - The relevant source. - - - - - Invoked when advice is changed after a proxy is created. - - - The relevant source. - - - - - Invoked when interfaces are changed after a proxy is created. - - - The relevant source. - - - - - Represents the AOP configuration data built-in with the proxy. - - Bruno Baia - $Id: AdvisedProxy.cs,v 1.10 2008/02/06 18:28:52 bbaia Exp $ - - - - Configuration data for an AOP proxy factory. - - -

- This configuration includes the - s, - s, and (any) proxied interfaces. -

-

- Any AOP proxy obtained from Spring.NET can be cast to this interface to - allow the manipulation of said proxy's AOP advice. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAdvised.cs,v 1.15 2007/10/10 18:07:38 markpollack Exp $ - -
- - - Adds the supplied to the end (or tail) - of the advice (interceptor) chain. - - -

- Please be aware that Spring.NET's AOP implementation only supports - method advice (as encapsulated by the - interface). -

-
- - The to be added. - - - -
- - - Adds the supplied to the supplied - in the advice (interceptor) chain. - - -

- Please be aware that Spring.NET's AOP implementation only supports - method advice (as encapsulated by the - interface). -

-
- - The zero (0) indexed position (from the head) at which the - supplied is to be inserted into the - advice (interceptor) chain. - - - The to be added. - - - -
- - - Is the supplied (interface) - proxied? - - - The interface to test. - - - if the supplied - (interface) is proxied; - if not or the supplied - is . - - - - - Adds the advisors from the supplied - to the list of . - - - The to add advisors from. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The index in the - list at which the supplied - is to be inserted. - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The index in the - list at which the supplied - is to be inserted. - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Return the index (0 based) of the supplied - in the interceptor - (advice) chain for this proxy. - - -

- The return value of this method can be used to index into - the - list. -

-
- - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an advisor for this - proxy. - -
- - - Return the index (0 based) of the supplied - in the introductions - for this proxy. - - -

- The return value of this method can be used to index into - the - list. -

-
- - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an introduction advisor - for this proxy. - -
- - - Removes the supplied the list of advisors - for this proxy. - - The advisor to remove. - - if advisor was found in the list of - for this - proxy and was successfully removed; if not - or if the supplied is . - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the at the supplied - in the - list - from the list of - for this proxy. - - - The index of the to remove. - - - If this proxy configuration is frozen and the - at the supplied - cannot be removed; or if the supplied is out of - range. - - - - - Removes the supplied from the list - of . - - - The to remove. - - - if the supplied was - found in the list of - and successfully removed. - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the supplied from the list - of . - - - The to remove. - - - if the supplied was - found in the list of - and successfully removed. - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the at the supplied - in the list of - for this proxy. - - The index of the advisor to remove. - - - If this proxy configuration is frozen and the - at the supplied - cannot be removed; or if the supplied - is out of range. - - - - - Replaces the that - exists at the supplied in the list of - - with the supplied . - - - The index of the - in the list of - - that is to be replaced. - - - The new (replacement) . - - - If the supplied is out of range. - - - - - Replaces the with the - . - - - The original (old) advisor to be replaced. - - - The new advisor to replace the with. - - - if the was - replaced; if the was not found in the - advisors collection, this method returns - and (effectively) does nothing. - - - If this proxy configuration is frozen and the - cannot be replaced. - - - - - - As will normally be passed - straight through to the advised target, this method returns the - equivalent for the AOP - proxy itself. - - - A description of the proxy configuration. - - - - - Should proxies obtained from this configuration expose - the AOP proxy to the - class? - - -

- This is useful if an advised object needs to call another advised - method on itself. (If it uses the this reference (Me - in Visual Basic.NET), the invocation will not be advised). -

-
-
- - - Gets the - - implementation that will be used to get the interceptor - chains for the advised - . - - - The - implementation that will be used to get the interceptor - chains for the advised - . - - - - - Is the target to be proxied in addition - to any interfaces declared on the proxied ? - - - - - Is target type attributes, method attributes, method's return type attributes - and method's parameter attributes to be proxied in addition - to any interfaces declared on the proxied ? - - - - - Returns the collection of - instances that have been applied to this proxy. - - -

- Will never return , but may return an - empty array (in the case where no - instances have been applied to - this proxy). -

-
- - The collection of - instances that have been applied to this proxy. - -
- - - Returns the collection of - instances that have been applied to this proxy. - - -

- Will never return , but may return an - empty array (in the case where no - instances have been - applied to this proxy). -

-
- - The collection of - instances that have been applied to this proxy. - -
- - - Returns the collection of interface s - to be (or that are being) proxied by this proxy. - - - The collection of interface s - to be (or that are being) proxied by this proxy. - - - - - Returns the mapping of the proxied interface - s to their delegates. - - - The mapping of the proxied interface - s to their delegates. - - - - - Is this configuration frozen? - - -

- When a config is frozen, no advice changes can be made. This is - useful for optimization, and useful when we don't want callers - to be able to manipulate configuration after casting to - . -

-
-
- - - Returns the used by this - object. - - - The used by this - object. - - - - - Returns a boolean specifying if this - instance can be serialized. - - - true if this instance can be serialized, false otherwise. - - - - - Should we use dynamic reflection for method invocation ? - - - - - Optimization fields - - - - - IAdvised delegate - - - - - Array of introduction delegates - - - - - Target source wrapper - - - - - Type of target object. - - - - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - The proxy configuration. - - - - Creates a new instance of the - class. - - The proxy configuration. - The proxy. - - - - Deserialization constructor. - - Serialization data. - Serialization context. - - - - Serializes this instance. - - Serialization data. - Serialization context. - - - - Initialization method. - - The proxy configuration. - - The current implementation. - - - - - Invokes intercepted methods using reflection - - proxy object - target object to invoke method on - target type - taget method to invoke - The method to invoke on proxy. - method arguments - interceptor chain - value returned by invocation chain - - - - Returns a list of method interceptors - - target type - target method - list of inteceptors for the specified method - - - - Adds the supplied to the end (or tail) - of the advice (interceptor) chain. - - - The to be added. - - - - - - - Adds the supplied to the supplied - in the advice (interceptor) chain. - - - The zero (0) indexed position (from the head) at which the - supplied is to be inserted into the - advice (interceptor) chain. - - - The to be added. - - - - - - - Gets the target type behind the implementing object. - Ttypically a proxy configuration or an actual proxy. - - The type of the target or null if not known. - - - - Base class for proxy builders that can be used - to create an AOP proxy for any object. - - Bruno Baia - $Id: AbstractAopProxyTypeBuilder.cs,v 1.5 2007/12/03 09:06:58 bbaia Exp $ - - - - Describes the operations that generates IL instructions - used to build the Aop proxy type. - - Bruno Baia - $Id: IAopProxyTypeGenerator.cs,v 1.2 2006/11/05 20:36:59 bbaia Exp $ - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Calculates and returns the list of attributes that apply to the - specified type. - - - Removes from the list. - - The type to find attributes for. - - A list of custom attributes that should be applied to type. - - - - - Object Auto Proxy Creator - - - - Auto proxy creator that identifies objects to proxy via a list of names. - Checks for direct, "xxx*", "*xxx" and "*xxx*" matches. - - In case of a IFactoryObject, only the objects created by the - FactoryBean will get proxied. If you intend to proxy a IFactoryObject instance itself - specify the object name of the IFactoryObject including - the factory-object prefix "&" e.g. "&MyFactoryObject". - - - - Juergen Hoeller - Adhari C Mahendra (.NET) - $Id: ObjectNameAutoProxyCreator.cs,v 1.8 2008/03/03 09:28:49 bbaia Exp $ - - - - ObjectPostProcessor implementation that wraps a group of objects with AOP proxies - that delegate to the given interceptors before invoking the object itself. - - -

This class distinguishes between "common" interceptors: shared for all proxies it - creates, and "specific" interceptors: unique per object instance. There need not - be any common interceptors. If there are, they are set using the interceptorNames - property. As with ProxyFactoryObject, interceptors names in the current factory - are used rather than object references to allow correct handling of prototype - advisors and interceptors: for example, to support stateful mixins. - Any advice type is supported for "interceptorNames" entries.

-

Such autoproxying is particularly useful if there's a large number of objects that need - to be wrapped with similar proxies, i.e. delegating to the same interceptors. - Instead of x repetitive proxy definitions for x target objects, you can register - one single such post processor with the object factory to achieve the same effect.

-

Subclasses can apply any strategy to decide if a object is to be proxied, - e.g. by type, by name, by definition details, etc. They can also return - additional interceptors that should just be applied to the specific object - instance. The default concrete implementation is ObjectNameAutoProxyCreator, - identifying the objects to be proxied via a list of object names.

-

Any number of TargetSourceCreator implementations can be used with any subclass, - to create a custom target source - for example, to pool prototype objects. - Autoproxying will occur even if there is no advice if a TargetSourceCreator specifies - a custom TargetSource. If there are no TargetSourceCreators set, or if none matches, - a SingletonTargetSource will be used by default to wrap the object to be autoproxied.

-
- Juergen Hoeller - Rod Johnson - Adhari C Mahendra (.NET) - - - $Id: AbstractAutoProxyCreator.cs,v 1.15 2008/03/03 09:28:49 bbaia Exp $ -
- - - Convenience superclass for configuration used in creating proxies, - to ensure that all proxy creators have consistent properties. - - -

- Note that it is no longer possible to configure subclasses to - expose the . - Interceptors should normally manage their own thread locals if they - need to make resources available to advised objects. If it is - absolutely necessary to expose the - , use an - interceptor to do so. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: ProxyConfig.cs,v 1.13 2007/09/07 01:51:49 markpollack Exp $ -
- - - Copies the configuration from the supplied - into this instance. - - - The configuration to be copied. - - - If the supplied is - . - - - - - A that represents the current - configuration. - - - A that represents the current - configuration. - - - - - Use to synchronize access to this ProxyConfig instance - - - - - Is the target to be proxied in addition - to any interfaces declared on the proxied ? - - - - - Is target type attributes, method attributes, method's return type attributes - and method's parameter attributes to be proxied in addition - to any interfaces declared on the proxied ? - - - - - Are any agressive optimizations to be performed? - - -

- The exact meaning of agressive optimizations will differ - between proxies, but there is usually some tradeoff. -

-

- For example, optimization will usually mean that advice changes - won't take effect after a proxy has been created. For this reason, - optimization is disabled by default. An optimize value of - may be ignored if other settings preclude - optimization: for example, if the - property - is set to and such a value is not compatible - with the optimization. -

-

- The default is . -

-
-
- - - Should proxies obtained from this configuration expose - the AOP proxy to the - class? - - -

- The default is , as enabling this property - may impair performance. -

-
-
- - - Gets and set the factory to be used to create AOP proxies. - - -

- This obviously allows one to customise the - implementation, - allowing different strategies to be dropped in without changing the - core framework. For example, an - implementation - could return an - using remoting proxies, Reflection.Emit or a code generation - strategy. -

-
-
- - - Is this configuration frozen? - - -

- The default is not frozen. -

-
-
- - - The logger for this class hierarchy. - - - - - Convenience constant for subclasses: Return value for "do not proxy". - - - - - Convenience constant for subclasses: Return value for - "proxy without additional interceptors, just the common ones". - - - - - Default value is same as non-ordered - - - - - Default is global AdvisorAdapterRegistry - - - - - - - - - - Names of common interceptors. - We must use object name rather than object references - to handle prototype advisors/interceptors. - Default is the empty array: no common interceptors. - - - - - Set of object type + name strings, referring to all objects that this auto-proxy - creator created a custom TargetSource for. Used to detect own pre-built proxies - (from "PostProcessBeforeInstantiation") in the "PostProcessAfterInitialization" method. - - - - - Create a proxy with the configured interceptors if the object is - identified as one to proxy by the subclass. - - - - - No-op for before initialization. - - The obj. - The name. - - - - - Subclasses should override this method to return true if this - object should not be considered for autoproxying by this post processor. - Sometimes we need to be able to avoid this happening if it will lead to - a circular reference. This implementation returns true. - - the type of the object - the name of the object - if remarkable to skip - - - - Subclasses may choose to implement this: for example, - to change the interfaces exposed - - - ProxyFactory that will be used to create the proxy immediably after this method returns. - - - - - Determines whether the object is an infrastructure type, - IAdvisor, IAdvice, IAdvisors or AbstractAutoProxyCreator - - The object type to compare - The name of the object - - true if [is infrastructure type] [the specified obj]; otherwise, false. - - - - - Create a target source for object instances. Uses any - TargetSourceCreators if set. Returns null if no Custom TargetSource - should be used. - This implementation uses the customTargetSourceCreators property. - Subclasses can override this method to use a different mechanism. - - the type of the object to create a TargetSource for - the name of the object - a TargetSource for this object - - - - Return whether the given object is to be proxied, what additional - advices (e.g. AOP Alliance interceptors) and advisors to apply. - - -

The previous name of this method was "GetInterceptorAndAdvisorForObject". - It has been renamed in the course of general terminology clarification - in Spring 1.1. An AOP Alliance Interceptor is just a special form of - Advice, so the generic Advice term is preferred now.

-

The third parameter, customTargetSource, is new in Spring 1.1; - add it to existing implementations of this method.

-
- the new object instance - the name of the object - targetSource returned by TargetSource property: - may be ignored. Will be null unless a custom target source is in use. - an array of additional interceptors for the particular object; - or an empty array if no additional interceptors but just the common ones; - or null if no proxy at all, not even with the common interceptors. -
- - - Create an AOP proxy for the given object. - - Type of the object. - The name of the object. - The set of interceptors that is specific to this - object (may be empty but not null) - The target source for the proxy, already pre-configured to access the object. - The AOP Proxy for the object. - - - - Obtain a new proxy factory instance to be used for proxying a particular object - - A proxy factory instance for proxying a particular object - - - - Determines the advisors for the given object, including the specific interceptors - as well as the common interceptor, all adapted to the Advisor interface. - - The name of the object. - The set of interceptors that is specific to this - object (may be empty, but not null) - The list of Advisors for the given object - - - - Build a cache key for the given object type and object name - - The object type. - The object name. - The cache key for the given type and name - - - - Create the proxy if have a custom TargetSource - - The object type - The object name - null if not creating a proxy, otherwise return the proxy. - - - - Default behavior, return true and continue processing. - - The object instance - The object name. - true - - - - Default behavior, return passed in PropertyValues - - The property values that the factory is about to apply (never null). - he relevant property infos for the target object (with ignored - dependency types - which the factory handles specifically - already filtered out) - The object instance created, but whose properties have not yet - been set. - Name of the object. - The passed in PropertyValues - - - - Sets the AdvisorAdapterRegistry to use. - - - Default is the global AdvisorAdapterRegistry. - - - - - Sets custom TargetSourceCreators to be applied in this order. - - - - If the list is empty, or they all return null, a SingletonTargetSource - will be created. - - - TargetSourceCreators can only be invoked if this post processor is used - in a IObjectFactory, and its ObjectFactoryAware callback is used. - - - - - - Sets the common interceptors, a list of , - and introduction object names. - - - - If this property isn't set, there will be zero common interceptors. - This is perfectly valid, if "specific" interceptors such as - matching Advisors are all we want. - - - - The list of , - and introduction object names. - - - - - - - Sets whether the common interceptors should be applied before - object-specific ones. - - - Default is true; else, object-specific interceptors will get applied first. - - - - - Set whether or not the proxy should be frozen, preventing advice - from being added to it once it is created. - - -

Overridden from the super class to prevent the proxy configuration - from being frozen before the proxy is created. The default is not frozen. -

-
-
- - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
- - In case of initialization errors. - -
- - - Propery Order - - - Ordering which will apply to this class's implementation - of Ordered, used when applying multiple ObjectPostProcessors. - Default value is int.MaxValue, meaning that it's non-ordered. - - - - - Identify as object to proxy if the object name is in the configured list of names. - - - - - Return if the given object name matches the mapped name. - - -

- The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, - as well as direct equality. Can be overridden in subclasses. -

-
- the object name to check - the name in the configured list of names - if the names match -
- - - Set the names of the objects in IList fashioned way that should automatically - get wrapped with proxies. - A name can specify a prefix to match by ending with "*", e.g. "myObject,tx*" - will match the object named "myObject" and all objects whose name start with "tx". - - - - - The for the <aop:config> tag. - - Mark Pollack (.NET) - $Id: ConfigObjectDefinitionParser.cs,v 1.3 2008/02/20 14:29:13 bbaia Exp $ - - - - The 'proxy-target-type' attribute - - - - - Parse the specified XmlElement and register the resulting - ObjectDefinitions with the IObjectDefinitionRegistry - embedded in the supplied - - The element to be parsed. - The object encapsulating the current state of the parsing process. - Provides access to a IObjectDefinitionRegistry - The primary object definition. - -

- This method is never invoked if the parser is namespace aware - and was called to process the root node. -

-
-
- - - Parses the supplied advisor element and registers the resulting - - The advisor element. - The parser context. - - - - Utility class for handling registration of auto-proxy creators used internally by the - aop namespace tags. - - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: AopNamespaceUtils.cs,v 1.4 2007/05/26 19:25:48 markpollack Exp $ - - - - The object name of the internally managed auto-proxy creator. - - - - - Registers the auto proxy creator if necessary. - - The parser context. - The source element. - - - - Registries the or escalate apc as required. - - The type. - The parser context. - - - - Forces the auto proxy creator to use decorator proxy. - - The registry. - - - - A description of an invocation to a constuctor, given to an interceptor - upon constructor-call. - - -

- A constructor invocation is a joinpoint and can be intercepted by a - constructor interceptor. -

-
- -
- - - Represents an invocation in the program. - - -

- An invocation is a joinpoint and can be intercepted by an interceptor. - Typical examples would be a constructor invocation and a method call. -

-
-
- - - Represents a generic runtime joinpoint (in the AOP terminology). - - -

- A runtime joinpoint is an event that occurs on a static - joinpoint (i.e. a location in a program). For instance, an - invocation is the runtime joinpoint on a method (static joinpoint). - The static part of a given joinpoint can be generically retrieved - using the - property. -

-

- In the context of an interception framework, a runtime joinpoint - is then the reification of an access to an accessible object (a - method, a constructor, a field), i.e. the static part of the - joinpoint. It is passed to the interceptors that are installed on - the static joinpoint. -

-
- -
- - - Proceeds to the next interceptor in the chain. - - -

- The implementation and semantics of this method depend on the - actual joinpoint type. Consult the derived interfaces of this - interface for specifics. -

-
- - Consult the derived interfaces of this interface for specifics. - - - If any of the interceptors at the joinpoint throws an exception. - -
- - - Gets the static part of this joinpoint. - - -

- The static part is an accessible object on which a chain of - interceptors are installed. -

-
- - The static part of this joinpoint. - -
- - - Gets the object that holds the current joinpoint's static part. - - -

- For instance, the target object for a method invocation. -

-
- - The object that holds the current joinpoint's static part. - -
- - - Gets the arguments to an invocation. - - -

- It is of course possible to change element values within this array - to change the arguments to an intercepted invocation. -

-
- - The arguments to an invocation. - -
- - - Gets the constructor invocation that is to be invoked. - - -

- This property is a friendly implementation of the - property. - It should be used in preference to the - property - because it provides immediate access to the underlying constructor - without the need to resort to a cast. -

-
- - The constructor invocation that is to be invoked. - -
- - - Canonical instances. - - -

- Only one canonical instance is - provided out of the box. The - matches all classes. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: TrueTypeFilter.cs,v 1.4 2006/04/09 07:18:36 markpollack Exp $ -
- - - A filter that restricts the matching of a pointcut or introduction to - a given set of target types. - - -

- Can be used as part of a pointcut, or for the entire targeting of an - introduction. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - $Id: ITypeFilter.cs,v 1.2 2006/04/09 07:18:36 markpollack Exp $ -
- - - Should the pointcut apply to the supplied - ? - - - The candidate . - - - if the advice should apply to the supplied - - - - - - Canonical instance that - matches all classes. - - - - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - Should the pointcut apply to the supplied - ? - - - The candidate . - - - if the advice should apply to the supplied - - - - - - - A that represents the current - . - - - A that represents the current - . - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - implementation that uses a - threading model in which every thread has its own copy of the target. - - -

- Alternative to an object pool. -

-

- Application code is written as to a normal pool; callers can't assume - they will be dealing with the same instance in invocations in different - threads. However, state can be relied on during the operations of a - single thread: for example, if one caller makes repeated calls on the - AOP proxy. -

-

- This class act both as an introduction and as an interceptor, so it - should be added twice, once as an introduction and once as an - interceptor. -

-
- Rod Johnson - Federico Spinazzi (.NET) - $Id: ThreadLocalTargetSource.cs,v 1.8 2006/04/09 07:18:37 markpollack Exp $ -
- - - Base class for dynamic - implementations that can create new prototype object instances to - support a pooling or new-instance-per-invocation strategy. - - -

- All such s must run in an - , as they need to - call the - method to create a new prototype instance. -

-
- Rod Johnson - Federico Spinazzi (.NET) - $Id: AbstractPrototypeTargetSource.cs,v 1.11 2007/07/28 07:32:52 markpollack Exp $ -
- - - Used to obtain the current "target" of an AOP invocation - - -

- This target will be invoked via reflection if no around advice chooses - to end the interceptor chain itself. -

-

- If an is "static", it - will always return the same target, allowing optimizations in the AOP - framework. Dynamic target sources can support pooling, hot swapping etc. -

-

- Application developers don't usually need to work with target sources - directly: this is an AOP framework interface. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: ITargetSource.cs,v 1.9 2007/10/10 18:07:38 markpollack Exp $ -
- - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - The target object to release. - - - - The of the target object. - - - - - Is the target source static? - - - if the target source is static. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Subclasses should use this method to create a new prototype instance. - - - - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - The target object to release. - - - - Invoked by an - after it has set all object properties supplied - (and satisfied the - - and - interfaces). - - -

- Ensures that the property has been - set to a valid value (i.e. is not or a string - that consists solely of whitespace). -

-
- - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - -
- - - The shared instance for this class (and derived classes). - - - - - The name of the target object to be created on each invocation. - - -

- This object should be a prototype, or the same instance will always - be obtained from the owning . -

-
-
- - - The of the target object. - - - - - Is the target source static? - - - if the target source is static. - - - - - The target factory that will be used to perform the lookup - of the object referred to by the - property. - - -

- Needed so that prototype instances can be created as necessary. -

-
- - The owning - (will never be ). - - - In case of initialization errors. - - -
- - - Statistics for a thread local . - - Rod Johnson - Federico Spinazzi (.NET) - $Id: IThreadLocalTargetSourceStats.cs,v 1.3 2006/04/09 07:18:37 markpollack Exp $ - - - - Gets the number of invocations of the - and - methods. - - - The number of invocations of the - and - methods. - - - - - Gets the number of hits that were satisfied by a thread bound object. - - - The number of hits that were satisfied by a thread bound object. - - - - - Gets the number of thread bound objects created. - - The number of thread bound objects created. - - - - Intercepts calls on an interface on its way to the target. - - -

- Such interceptions are nested "on top" of the target. -

-
-
- - - Represents a generic interceptor. - - -

- A generic interceptor can intercept runtime events that occur within a - base program. Those events are materialized by (reified in) joinpoints. - Runtime joinpoints can be invocations, field access, exceptions, etc. -

-

- This interface is not used directly. Use the various derived interfaces - to intercept specific events. -

-
- -
- - - Tag interface for advice. - - -

- Implementations can be any type of advice, such as interceptors. -

-
-
- - - Implement this method to perform extra treatments before and after - the call to the supplied . - - -

- Polite implementations would certainly like to invoke - . -

-
- - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - ThreadLocal holding the target associated with the current thread. - - -

- Unlike most thread local storage which is static, this variable is - meant to be per thread per instance of this class. -

-
-
- - - The set of managed targets, enabling us to keep track of the - targets we've created. - - - - - Returns the target object. - - -

- Tries to locate the target from thread local storage. If no target - is found, a target will be obtained and bound to the thread. -

-
- The target object. - - If unable to obtain the target object. - - -
- - - Return an introduction advisor mixin that allows the AOP proxy to be - cast to an reference. - - - - - Cleans up this instance's thread storage, and disposes of any - targets as necessary. - - - - - - Increments Invocations and Hits statistics - - The method invocation joinpoint - The result of the call to IJoinpoint.Proceed(), might be intercepted by the interceptor. - if the interceptors or the target-object throws an exception. - - - - Gets the number of invocations of the and - methods. - - - The number of invocations of the and - methods. - - - - - Gets the number of hits that were satisfied by a thread bound object. - - - The number of hits that were satisfied by a thread bound object. - - - - - Gets the number of thread bound objects created. - - The number of thread bound objects created. - - - - implementation that holds a local - object. - - -

- This is the default implementation of the - interface used by the AOP - framework. There should be no need to create objects of this class in - application code. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: SingletonTargetSource.cs,v 1.8 2008/03/21 14:11:57 markpollack Exp $ -
- - - Creates a new instance of the - - for the specified target object. - - The target object to expose. - - If the supplied is - . - - - - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - -

- No-op implementation. -

-
- The target object to release. -
- - - Returns a stringified representation of this target source. - - - A stringified representation of this target source. - - - - - Determines whether the specified - is equal to the current . - - The target source to compare with. - - if this instance is equal to the - specified . - - - - - Serves as a hash function for a particular type, suitable for use - in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - The of the target object. - - - - - Is the target source static? - - - because this target source is always static. - - - - - Simple implementation that matches - all classes classes (and any derived subclasses) of a give root - . - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: RootTypeFilter.cs,v 1.3 2007/03/16 04:01:25 aseovic Exp $ - - - - Creates a new instance of the - for the supplied - . - - The root . - - If the supplied is . - - - - - Should the pointcut apply to the supplied - ? - - -

- Returns if the supplied - can be assigned to the root . -

-
- - The candidate . - - - if the advice should apply to the supplied - - -
- - - Factory for AOP proxies for programmatic use, rather than via a - Spring.NET IoC container. - - -

- This class provides a simple way of obtaining and configuring AOP - proxies in code. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: ProxyFactory.cs,v 1.8 2007/03/16 04:01:19 aseovic Exp $ -
- - - Superclass for AOP proxy configuration managers. - - -

- Instances of this class are not themselves AOP proxies, but - subclasses of this class are normally factories from which AOP proxy - instances are obtained directly. -

-

- This class frees subclasses of the housekeeping of - and - instances, but doesn't actually - implement proxy creation methods, the functionality for which - is provided by subclasses. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: AdvisedSupport.cs,v 1.36 2008/01/14 20:49:47 oakinger Exp $ - -
- - The list of advice. - -

- If an is added, it - will be wrapped in an advice before being added to this list. -

-
-
- - - Array updated on changes to the advisors list, which is easier to - manipulate internally - - - - - List of introductions. - - - - - Array updated on changes to the advisors list, which is easier to - manipulate internally - - - - - Interface map specifying which object should interface methods be - delegated to. - - -

- If entry value is methods should be delegated - to the target object. -

-
-
- - - The for this instance. - - - - - Set to when the first AOP proxy has been - created, meaning that we must track advice changes via the - OnAdviceChange() callback. - - - - - The list of event listeners. - - - - - The advisor chain factory. - - - - - Creates a new instance of the - class using the - default advisor chain factory. - - - - - Creates a new instance of the - class. - - The interfaces that are to be proxied. - - If this - - - - - Is the supplied (interface) - proxied? - - - The interface to test. - - - if the supplied - (interface) is proxied; - if not or the supplied - is . - - - - - - Adds the supplied to the end (or tail) - of the advice (interceptor) chain. - - - The to be added. - - - - - - - Adds the supplied to the supplied - in the advice (interceptor) chain. - - - The zero (0) indexed position (from the head) at which the - supplied is to be inserted into the - advice (interceptor) chain. - - - The to be added. - - - If the supplied is ; - or is not an - reference; or if the supplied is a - . - - - - - - - Return the index (0 based) of the supplied - in the interceptor - (advice) chain for this proxy. - - - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an advisor for this - proxy. - - - - - Return the index (0 based) of the supplied - in the introductions - for this proxy. - - - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an introduction advisor - for this proxy. - - - - - Removes the supplied the list of advisors - for this proxy. - - The advisor to remove. - - if advisor was found in the list of - for this - proxy and was successfully removed; if not - or if the supplied is . - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the at the supplied - in the - list - from the list of - for this proxy. - - - The index of the to remove. - - - If this proxy configuration is frozen and the - at the supplied - cannot be removed; or if the supplied is out of - range. - - - - - Removes the supplied from the list - of . - - - The to remove. - - - if the supplied was - found in the list of - and successfully removed. - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the supplied from the list - of . - - - The to remove. - - - if the supplied was - found in the list of - and successfully removed. - - - If this proxy configuration is frozen and the - cannot be removed. - - - - - Removes the at the supplied - in the list of - for this proxy. - - The index of the advisor to remove. - - - If this proxy configuration is frozen and the - at the supplied - cannot be removed; or if the supplied - is out of range. - - - - - Adds the supplied to the list - of . - - - The index in the - list at which the supplied - is to be inserted. If -1, appends to the end of the list. - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the advisors from the supplied - to the list of . - - - The to add advisors from. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The index in the - list at which the supplied - is to be inserted. - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Adds the supplied to the list - of . - - - The to add. - - - If this proxy configuration is frozen and the - cannot be added. - - - - - Replaces the that - exists at the supplied in the list of - - with the supplied . - - - The index of the - in the list of - - that is to be replaced. - - - The new (replacement) . - - - If the supplied is out of range. - - - - - Replaces the with the - . - - - The original (old) advisor to be replaced. - - - The new advisor to replace the with. - - - if the was - replaced; if the was not found in the - advisors collection (or the is - , this method returns - and (effectively) does nothing. - - - If this proxy configuration is frozen and the - cannot be replaced. - - - - - - As will normally be passed straight through - to the advised target, this method returns the - equivalent for the AOP proxy itself. - - - A description of the proxy configuration. - - - - - Registers the supplied as a listener for - notifications. - - - The to - register. - - - - - Removes the supplied . - - - The to - be removed. - - - - - Adds a new interface to the list of interfaces that are proxied by this proxy. - - - The interface to be proxied by this proxy. - - - If this proxy configuration is frozen - (); - - - If the supplied is . - - - - - Adds a new interface to the list of interfaces that are proxied by this proxy. - - - The interface to be proxied by this proxy. - - - Access is not synchronized. - - - - - Removes the supplied (proxied) . - - -

- Does nothing if the supplied (proxied) - isn't proxied. -

-
- The interface to remove. - - if the interface was removed. -
- - - Return the index (0 based) of the supplied - in the interceptor - (advice) chain for this proxy. - - -

- The return value of this method can be used to index into - the - list. -

-
- - The to search for. - - - The zero (0) based index of this interceptor, or -1 if the - supplied is not an advice for this - proxy. - -
- - - Return the index (0 based) of the supplied - in the interceptor - (advice) chain for this proxy. - - -

Acces is not synchronized

-

- The return value of this method can be used to index into - the - list. -

-
- - The to search for. - - - The zero (0) based index of this interceptor, or -1 if the - supplied is not an advice for this - proxy. - -
- - - Return the index (0 based) of the supplied - in the interceptor - (advice) chain for this proxy. - - - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an advisor for this - proxy. - - - Access is not synchronized. - - - - - Return the index (0 based) of the supplied - in the introductions - for this proxy. - - - The to search for. - - - The zero (0) based index of this advisor, or -1 if the - supplied is not an introduction advisor - for this proxy. - - - Access is not synchronized - - - - - Removes the at the supplied - in the - list - from the list of - for this proxy. - - - The index of the to remove. - - - If this proxy configuration is frozen and the - at the supplied - cannot be removed; or if the supplied is out of - range. - - - Does not synchronize access. - - - - - Is the supplied included in any - advisor? - - - The to check for the - inclusion of. - - - if the supplied - could be run in an invocation (this does not imply that said - will be run). - - - - - Returns a count of all of the - type-compatible with the supplied . - - - The of the - to check. - - - A count of all of the - type-compatible with the supplied . - - - - - Throws an if - this instances proxy configuration data is frozen. - - - The message that will be passed through to the constructor of any - thrown . - - - If the configuration for this proxy is frozen. - - - - - - Bring the advisors array up to date with the list. - - - - - Bring the introductions array up to date with the list. - - - - - Callback method that is invoked when the list of proxied interfaces - has changed. - - -

- An example of such a change would be when a new introduction is - added. Resetting - to - will cause a new proxy - to be generated on the next call to get a proxy. -

-
-
- - - Callback method that is invoked when the interceptor list has changed. - - - - - Activates this instance. - - - - - Creates an AOP proxy using this instance's configuration data. - - -

- Subclasses must not create a proxy by any other means (at least - without having a well thought out and cogent reason for doing so). - This is because the implementation of this method performs some - required housekeeping logic prior to creating an AOP proxy. -

-
- -
- - - Copies the configuration from the supplied other - into this instance. - - -

- Useful when this instance has been created using the no-argument - constructor, and needs to get all of its confiuration data from - another (most - usually to have an independant copy of said configuration data). -

-
- - The instance - containing the configiration data that is to be copied into this - instance. - -
- - - A that represents the current - configuration. - - - A that represents the current - configuration. - - - - - A that represents the current - configuration. - - - A that represents the current - configuration. - - - - - Helper method that adds the names of all of the proxied interfaces - to the buffer of the supplied . - - - The to append the proxied interface - names to. - - - - - Helper method that adds advisor's - to the buffer of the supplied . - - - The to append the advisor details to. - - - - - Gets all of the interfaces implemented by the - of the supplied - . - - - The object to get the interfaces of. - - - All of the interfaces implemented by the - of the supplied - . - - - If the supplied is . - - - - - Gets and sets the - - implementation that will be used to get the interceptor - chains for the advised - . - - - The - implementation that will be used to get the interceptor - chains for the advised - . - - - - - Returns the current used - by this object. - - - The used by this - object. - - - - - - Returns a boolean specifying if this - instance can be serialized. - - - true if this instance can be serialized, false otherwise. - - - - - Returns the collection of interface s - to be (or that are being) proxied by this proxy. - - - The collection of interface s - to be (or that are being) proxied by this proxy. - - - - - - Returns the mapping of the proxied interface - s to their delegates. - - - The mapping of the proxied interface - s to their delegates. - - - - - - Returns the collection of - instances that have been applied to this proxy. - - - The collection of - instances that have been applied to this proxy. - - - - - - Returns the collection of - instances that have been applied to this proxy. - - -

- Will never return , but may return an - empty array (in the case where no - instances have been - applied to this proxy). -

-
- - The collection of - instances that have been applied to this proxy. - - -
- - - Gets the target type behind the implementing object. - Ttypically a proxy configuration or an actual proxy. - - The type of the target or null if not known. - - - - Sets the target object that is to be advised. - - -

- This is a convenience write-only property that allows client code - to set the target object... the target object will be implicitly - wrapped within a new - instance. -

-
-
- - - Called by subclasses to get a value indicating whether any AOP proxies have been created yet. - - true if this AOp proxies have been created; otherwise, false. - - - - Specifies the of proxies that are to be - created for this instance of proxy config. - - -

- If this property value is it simply means that - no proxies have been created yet. Only when the first proxy is - created will this property value be set by the AOP framework. -

-

- Users will be able to add interceptors dynamically without proxy - regeneration, but if they add introductions the proxy - will have to be regenerated. -

-
- - The of proxies that are to be - created for this instance of proxy config; if - no proxies have been created yet. - -
- - - Caches proxy constructor for performance reasons. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class that proxys all of the interfaces exposed by the supplied - . - - The object to proxy. - - If the is . - - - - - Creates a new instance of the - class that has no target object, only interfaces. - - -

- Interceptors must be added if this factory is to do anything useful. -

-
- The interfaces to implement. -
- - - Creates a new proxy according to the settings in this factory. - - -

- Can be called repeatedly; the effect of repeated invocations will - (of course) vary if interfaces have been added or removed. -

-
- An AOP proxy for target object. -
- - - Creates a new proxy for the supplied - and . - - -

- This is a convenience method for creating a proxy for a single - interceptor. -

-
- - The interface that the proxy must implement. - - - The interceptor that the proxy must invoke. - - - A new AOP proxy for the supplied - and . - -
- - Internal framework class. - This class is required because if we put an interceptor that implements IInterceptionAdvice - in the interceptor list passed to MethodInvocation, it may be mistaken for an - advice that requires dynamic method matching. - - Rod Johnson - Aleksandar Seovic (.Net) - $Id: InterceptorAndDynamicMethodMatcher.cs,v 1.3 2007/03/16 04:01:18 aseovic Exp $ - - - - implementation - that delegates method calls to introduction object. - - Aleksandar Seovic - Bruno Baia - $Id: IntroductionProxyMethodBuilder.cs,v 1.5 2006/11/05 20:36:59 bbaia Exp $ - - - - Base class for AOP method builders that contains common functionalities. - - Aleksandar Seovic - Bruno Baia - $Id: AbstractAopProxyMethodBuilder.cs,v 1.10 2008/05/21 08:04:34 bbaia Exp $ - - - - The implementation to use. - - - - - The dictionary to cache the list of target - s. - - - - - The dictionary to cache the list of target - s defined on the proxy. - - - - - The local variable to store the list of method interceptors. - - - - - The local variable to store the target type being proxied. - - - - - The local variable to store method arguments. - - - - - The local variable to store the return value. - - - - - The local variable to store the closed generic method - when the target method is generic. - - - - - The local variable to store the closed generic method - when the target method defined on the proxy is generic. - - - - - The field to cache the target . - - - - - The field to cache the target - defined on the proxy. - - - - - Indicates if the method returns a value. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - The dictionary to cache the list of target - s. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - The dictionary to cache the list of target - s. - - - The dictionary to cache the list of target - s defined on the proxy. - - - - - Generates the proxy method. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Generates unique method id for the cache field. - - The target method. - An unique method name. - - - - Create static field that will cache target method. - - The IL generator to use. - The target method. - - - - Create static field that will cache target method when defined on the proxy. - - The IL generator to use. - The target method. - - - - Create a closed generic method for the current call - if target method is a generic definition. - - The IL generator to use. - The target method. - - The field that contains the method generic definition - - - The local variable to store the closed generic method. - - - - - Generates the IL instructions that pushes - the target type on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Pushes the target to stack. - - The IL generator to use. - The method to proxy. - - - - Pushes the target defined on the proxy to stack. - - The IL generator to use. - The method to proxy. - - - - Creates local variable declarations. - - The IL generator to use. - The method to proxy. - - - - Initializes local variables - - The IL generator to use. - The method to proxy. - - - - Generates method logic. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Calls method using Invoke - - The IL generator to use. - The method to proxy. - - - - Setup proxied method arguments. - - The IL generator to use. - The method to proxy. - The method's parameters. - - - - Calls proxied method directly. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Ends method by returning return value if appropriate. - - The IL generator to use. - The method to proxy. - - - - Emits MSIL instructions to load a value of the specified - onto the evaluation stack indirectly. - - The IL generator to use. - The type of the value. - - - - Emit MSIL instructions to store a value of the specified - at a supplied address. - - The IL generator to use. - The type of the value. - - - - Emits MSIL instructions to convert the boxed representation - of the supplied to its unboxed form. - - The IL generator to use. - The type specified in the instruction. - - - - The index of the introduction to delegate call to. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - - - index of the introduction to delegate call to - - - - Generates the IL instructions that pushes - the introduction type on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the introduction instance on stack. - - The IL generator to use. - - - - Calls proxied method directly. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - implementation - to enable to be used in the - Spring.NET AOP framework. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: BeforeAdviceAdapter.cs,v 1.4 2007/03/16 04:01:21 aseovic Exp $ - - - - Permits the handling of new advisors and advice types as extensions to - the Spring AOP framework. - - -

- Implementors can create AOP Alliance - s from custom advice - types, enabling these advice types to be used in the Spring.NET AOP - framework, which uses interception under the covers. -

-

- There is no need for most Spring.NET users to implement this interface; - do so only if you need to introduce more - or - types to Spring.NET. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAdvisorAdapter.cs,v 1.4 2006/04/09 07:18:35 markpollack Exp $ -
- - - Does this adapter understand the supplied ? - - -

- Is it valid to invoke the - - method with the given advice as an argument? -

-
- - such as - . - - if this adapter understands the - supplied . - -
- - - Return an AOP Alliance - exposing the - behaviour of the given advice to an interception-based AOP - framework. - - -

- Don't worry about any - contained in the supplied ; - the AOP framework will take care of checking the pointcut. -

-
- - The advice. The - - method must have previously returned on the - supplied . - - - An AOP Alliance - exposing the - behaviour of the given advice to an interception-based AOP - framework. - -
- - - Returns if the supplied - is an instance of the - interface. - - The advice to check. - - if the supplied is - an instance of the interface; - if not or if the supplied - is . - - - - - Wraps the supplied 's - within a - - instance. - - - The advisor exposing the that - is to be wrapped. - - - The supplied 's - wrapped within a - - instance. - - - - - Interceptor to wrap an - instance. - - -

- A more efficient alternative solution in cases where there is no - interception advice and therefore no need to create an - object may be - offered in future. -

-

- Used internally by the AOP framework: application developers should not need - to use this class directly. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: AfterReturningAdviceInterceptor.cs,v 1.8 2007/03/16 04:01:21 aseovic Exp $ -
- - - Creates a new instance of the - - class. - - - The advice to be applied after a target method successfully - returns. - - - If the supplied is . - - - - - Executes interceptor after the target method successfully returns. - - - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - Handles a thrown exception providing calling context. - - Mark Pollack - $Id: IExceptionHandler.cs,v 1.1 2007/10/08 22:05:16 markpollack Exp $ - - - - Determines whether this instance can handle the exception the specified exception. - - The exception. - The call context dictionary. - - true if this instance can handle the specified exception; otherwise, false. - - - - - Handles the exception. - - The call context dictionary. - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - - Gets the source exception names. - - The source exception names. - - - - Gets the source exception types. - - The source exception types. - - - - Gets the translation expression text - - The translation expression text - - - - Gets or sets the constraint expression text. - - The constraint expression text. - - - - Gets a value indicating whether to continue processing. - - true if continue processing; otherwise, false. - - - - A union. - - -

- Such pointcut unions are tricky, because one cannot simply OR - the respective s: one has to - ascertain that each 's - is also satisfied. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: UnionPointcut.cs,v 1.8 2007/03/16 04:01:25 aseovic Exp $ -
- - - Spring.NET's core pointcut abstraction. - - -

- A pointcut is composed of s and - s. Both these basic terms and an - itself can be combined to build up - sophisticated combinations. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IPointcut.cs,v 1.9 2006/04/09 07:18:36 markpollack Exp $ -
- - - The for this pointcut. - - - The current . - - - - - The for this pointcut. - - - The current . - - - - - Creates a new instance of the - class. - - The first pointcut. - The second pointcut. - - - - The for this pointcut. - - - The current . - - - - - The for this pointcut. - - - The current . - - - - - Internal method matcher class for union pointcut. - - - - - That part of an that checks whether a - target method is eligible for advice. - - -

- An may be evaluated - statically or at runtime (dynamically). Static - matching involves only the method signature and (possibly) any - s that have been applied to a method. - Dynamic matching additionally takes into account the actual argument - values passed to a method invocation. -

-

- If the value of the - property of an implementation instance returns , - evaluation can be performed statically, and the result will be the same - for all invocations of this method, whatever their arguments. This - means that if the value of the - is - , the three argument - - method will never be invoked for the lifetime of the - . -

-

- If an implementation returns in its two argument - - method, and the value of it's - property is - , the three argument - - method will be invoked immediately before each and every potential - execution of the related advice, to decide whether the advice - should run. All previous advice, such as earlier interceptors in an - interceptor chain, will have run, so any state changes they have - produced in parameters or thread local storage, will be available at - the time of evaluation. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IMethodMatcher.cs,v 1.9 2006/04/09 07:18:36 markpollack Exp $ - -
- - - Does the supplied satisfy this matcher? - - -

- This is a static check. If this method invocation returns - ,or if the - property is - , then no runtime check will be made. -

-
- The candidate method. - - The target (may be , - in which case the candidate must be taken - to be the 's declaring class). - - - if this this method matches statically. - -
- - - Is there a runtime (dynamic) match for the supplied - ? - - -

- In order for this method to have even been invoked, the supplied - must have matched - statically. This method is invoked only if the two argument - - method returns for the supplied - and , and - if the property - is . -

-

- Invoked immediately before any potential running of the - advice, and after any advice earlier in the advice chain has - run. -

-
- The candidate method. - - The target . - - The arguments to the method - - if there is a runtime match. -
- - - Is this dynamic? - - -

- If , the three argument - - method will be invoked if the two argument - - method returns . -

-

- Note that this property can be checked when an AOP proxy is created, - and implementations need not check the value of this property again - before each method invocation. -

-
- - if this - is dynamic. - -
- - - This class contains various methods used to - obtain information about the current AOP invocation. - - -

- The - property is - usable if the AOP framework is configured to expose the current proxy - (not the default)... it returns the AOP proxy in use. Target objects or - advice can use this to make advised calls. They can also use it to find - advice configuration. -

- - The AOP framework does not expose proxies by default, as there is a - performance cost in doing so. - -

- The functionality in this class might be used by a target object that - needed access to resources on the invocation. However, this approach - should not be used when there is a reasonable alternative, as it makes - application code dependent on usage under AOP and the Spring.NET AOP - framework. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: AopContext.cs,v 1.7 2006/09/15 21:25:16 markpollack Exp $ -
- - - Sets the current proxy by pushing it to the proxy stack. - - -

- This method is for internal use only, and should never be called by - client code. -

-
- - The proxy to put on top of the proxy stack. - -
- - - Removes the current proxy from the proxy stack, making the previous - proxy (if any) the current proxy. - - -

- This method is for internal use only, and should never be called by - client code. -

-
- - If the proxy stack is empty. - -
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - The AOP proxy associated with this thread. - - -

- Will be unless the - property - on the controlling proxy has been set to . -

-

- The default value for the - property - is , for performance reasons. -

-
-
- - - Gets the current AOP proxy. - - - If the proxy stack is empty. - - - - - A registry of - instances. - - -

- Implementations must also automatically register adapters for - types. -

- - This is an SPI interface, that should not need to be implemented by any - Spring.NET user. - -
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAdvisorAdapterRegistry.cs,v 1.3 2006/04/09 07:18:35 markpollack Exp $ -
- - - Returns an wrapping the supplied - . - - - The object that should be an advice, such as - or - . - - - An wrapping the supplied - . Never returns . If - the parameter is an - , it will simply be returned. - - - If no registered - can wrap - the supplied . - - - - - Returns an to - allow the use of the supplied in an - interception-based framework. - - -

- Don't worry about the pointcut associated with the - ; if it's an - , just return an - interceptor. -

-
- - The advisor to find an interceptor for. - - - An interceptor to expose this advisor's behaviour. - - - If the advisor type is not understood by any registered - . - -
- - - Register the given . - - -

- Note that it is not necessary to register adapters for - instances: these - must be automatically recognized by an - - implementation. -

-
- - An that - understands the particular advisor and advice types. - -
- - - Intercepts the construction of a new object. - - -

- Such interceptions are nested "on top" of the target. -

-
-
- - - Implement this method to perform extra treatments before and after - the consruction of a new object. - - -

- Polite implementations would certainly like to invoke - . -

-
- - The constructor invocation that is being intercepted. - - - The newly created object, which is also the result of the call to - , and might be - replaced by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - Returns a token to indicate that this exception should be swallowed. - - Mark Pollack - $Id: SwallowExceptionHandler.cs,v 1.2 2007/10/02 21:56:53 markpollack Exp $ - - - - An abstract base class providing all necessary functionality for typical IExceptionHandler implementations. - - Mark Pollack - $Id: AbstractExceptionHandler.cs,v 1.2 2007/10/10 18:07:46 markpollack Exp $ - - - - The logging instance - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Determines whether this instance can handle the exception the specified exception. - - The exception. - The call context dictionary. - - true if this instance can handle the specified exception; otherwise, false. - - - - - Handles the exception. - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - Gets the source exception names. - - The source exception names. - - - - Gets the source exception types. - - The source exception types. - - - - Gets the action translation expression text - - The action translation expression. - - - - Gets or sets the constraint expression text. - - The constraint expression text. - - - - Gets a value indicating whether to continue processing. - - true if continue processing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Handles the exception. - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - implementation that caches a - local target object, but allows the target to be swapped while the - application is running - - -

- If configuring an object of this class in a Spring IoC container, - use constructor injection to supply the intial target. -

-
- Rod Johnson - Aleksandar Seovic (.Net) - $Id: HotSwappableTargetSource.cs,v 1.6 2007/03/16 04:01:26 aseovic Exp $ -
- - - Creates a new instance of the - with the initial target. - - - The initial target. May be . - - - - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - -

- No-op implementation. -

-
- The target object to release. -
- - - Swap the target, returning the old target. - - The new target. - The old target. - - If the new target is . - - - - - Determines whether the specified - is equal to the current . - - -

- Two invoker interceptors are equal if they have the same target or - if the targets are equal. -

-
- The target source to compare with. - - if this instance is equal to the - specified . - -
- - - Serves as a hash function for a particular type, suitable for use - in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - The of the target object. - - -

- Can return . -

-
-
- - - Is the target source static? - - - if the target source is static. - - - - - Abstract superclass for pooling s. - - -

- Maintains a pool of target instances, acquiring and releasing a target - object from the pool for each method invocation. -

-

- This class is independent of pooling technology. -

-

- Subclasses must implement the - and - - methods to work with their chosen pool. The - - method inherited from the - base class - can be used to create objects to put in the pool. Subclasses must also - implement some of the monitoring methods from the - interface. This class - provides the - - method to return an - making these statistics available on proxied objects. -

-

- This class implements the interface in - order to force subclasses to implement the - method to cleanup and close - down their pool. -

-
- Rod Johnson - Federico Spinazzi (.NET) - $Id: AbstractPoolingTargetSource.cs,v 1.7 2007/03/16 04:01:26 aseovic Exp $ -
- - - Configuration interface for a pooling invoker. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: PoolingConfig.cs,v 1.4 2006/04/09 07:18:37 markpollack Exp $ - - - - The number of active object instances in a pool. - - - - - The number of free object instances in a pool. - - - - - The maximum number of object instances in a pool. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Returns the target object (acquired from the pool). - - The target object (acquired from the pool). - - If unable to obtain the target object. - - - - - Gets the mixin. - - - An exposing statistics - about the pool maintained by this object. - - - - - Create the pool. - - - The owning , in - case one needs collaborators from it (normally one's own properties - are sufficient). - - - In the case of errors encountered during the creation of the pool. - - - - - Releases the target object (returns it to the pool). - - - The target object to release (return to the pool). - - - In the case that the could not be released. - - - - - Performs application-defined tasks associated with freeing, releasing, or - resetting unmanaged resources. - - -

- Disposes of the pool. -

-
-
- - - The maximum number of object instances in this pool. - - - - - The number of active object instances in this pool. - - - - - The number of free object instances in this pool. - - - - - The target factory that will be used to perform the lookup - of the object referred to by the - - property. - - - The owning - (will never be ). - - - In case of initialization errors. - - - - - - Pointcut object for simple method name matches, useful as an alternative to pure - regular expression based patterns. - - Juergen Hoeller - Aleksandar Seovic (.NET) - $Id: NameMatchMethodPointcut.cs,v 1.9 2007/03/16 04:01:24 aseovic Exp $ - - - - Convenient superclass when one wants to force subclasses to - implement the interface - but subclasses will still want to be pointcuts. - - -

- The - property can be overriden to customize filter - behavior as well. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - Mark Pollack (.NET) - $Id: StaticMethodMatcherPointcut.cs,v 1.8 2007/05/30 22:35:43 markpollack Exp $ -
- - - Convenient abstract superclass for static method matchers that don't care - about arguments at runtime. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: StaticMethodMatcher.cs,v 1.6 2006/04/09 07:18:37 markpollack Exp $ - - - - Is there a runtime (dynamic) match for the supplied - ? - - -

- Always throws a . This - method should never be called on a static matcher. -

-
- The candidate method. - - The target . - - The arguments to the method - - Always throws a . - - - Always. - -
- - - Does the supplied satisfy this matcher? - - -

- Must be implemented by a derived class in order to specify matching - rules. -

-
- The candidate method. - - The target (may be , - in which case the candidate must be taken - to be the 's declaring class). - - - if this this method matches statically. - -
- - - Is this dynamic? - - -

- Always returns . -

-
- - Always returns . - -
- - - Creates a new instance of the - - class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - The for this pointcut. - - - The current . - - - - - The for this pointcut. - - - The current . - - - - - Does the of the supplied - matches any of the mapped names? - - - The to check. - - - The of the target class. - - - if the name of the supplied - matches one of the mapped names. - - - - - Does the supplied match the supplied ? - - -

- The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, - as well as direct equality. Can be overridden in subclasses. -

-
- - The method name of the class. - - - The name in the descriptor. - - - True if the names match. - -
- - - Convenience property when we have only a single method name - to match. - - - - Use either this property or the - property, - not both. - - - - - - Set the method names defining methods to match. - - -

- Matching will be the union of all these; if any match, the pointcut matches. -

-
-
- - - Concrete ObjectFactory-based IPointcutAdvisor thta allows for any Advice to be - configured as reference to an Advice object in the ObjectFatory, as well as - the Pointcut to be configured through an object property. - - - Specifying the name of an advice object instead of the advice object itself - (if running within a ObjectFactory/ApplicationContext) increases loose coupling - at initialization time, in order to not intialize the advice object until the pointcut - actually matches. - - Juerge Hoeller - Mark Pollack - $Id: DefaultObjectFactoryPointcutAdvisor.cs,v 1.1 2007/05/30 22:35:43 markpollack Exp $ - - - - Abstract ObjectFactory-based IPointcutAdvisor that allows for any Advice to be - configured as reference to an Advice object in an ObjectFactory. - - - specifying the name of an advice object instead of the advice object itself - (if running within an ObjectFactory/ApplicationContext increses loose coupling - at initialization time, in order not to initialize the advice object until the - pointcut actually matches. - - Juergen Hoeller - Mark Pollack - $Id: AbstractObjectFactoryPointcutAdvisor.cs,v 1.2 2007/08/10 17:39:44 bbaia Exp $ - - - - Abstract base class for implementations. - - - Can be subclassed for returning a specific pointcut/advice or a freely configurable pointcut/advice. - - Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - $Id: AbstractPointcutAdvisor.cs,v 1.2 2008/01/14 20:49:47 oakinger Exp $ - - - - Superinterface for all s that are - driven by a pointcut. - - -

- This covers nearly all advisors except introduction advisors, for which - method-level matching does not apply. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - $Id: IPointcutAdvisor.cs,v 1.3 2006/04/09 07:18:36 markpollack Exp $ -
- - - Base interface holding AOP advice and a filter determining the - applicability of the advice (such as a pointcut). - - - - This interface is not for use by Spring.NET users, but exists rather to - allow for commonality in the support for different types of advice - within the framework. - -

- Spring.NET AOP is centered on around advice delivered via method - interception, compliant with the AOP Alliance interception API. - The interface allows support for - different types of advice, such as before and after - advice, which need not be implemented using interception. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - - - $Id: IAdvisor.cs,v 1.7 2006/04/09 07:18:36 markpollack Exp $ -
- - - Is this advice associated with a particular instance? - - -

- An advisor that was creating a mixin would be a per instance - operation and would thus return . If the - advisor is not per instance, it is shared with all instances of the - advised class obtained from the same Spring.NET IoC container. -

-

- Use singleton and prototype object definitions or - appropriate programmatic proxy creation to ensure that - s have the correct lifecycle model. -

- - This method is not currently used by the framework. - -
- - if this advice is associated with a - particular instance. - -
- - - Return the advice part of this aspect. - - -

- An advice may be an interceptor, a throws advice, before advice, - introduction etc. -

-
- - The advice that should apply if the pointcut matches. - -
- - - The that drives this advisor. - - - - - Determines whether the specified - is equal to the current . - - The advisor to compare with. - - if this instance is equal to the - specified . - - - - - Serves as a hash function for a particular type, suitable for use - in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - Returns this s order in the - interception chain. - - - This s order in the - interception chain. - - - - - Return the advice part of this aspect. - - -

- An advice may be an interceptor, a throws advice, before advice, - introduction etc. -

-
- - The advice that should apply if the pointcut matches. - -
- - - Is this advice associated with a particular instance? - - -

- Not supported for dynamic advisors. -

-
- - if this advice is associated with a - particular instance. - - Always. - -
- - - The that drives this advisor. - - - - - Describe this Advisor, showing name of advice object. - - - Type name and advice object name. - - - - - Gets or sets the name of the advice object that this advisor should refer to. - - An instance of the specified object will be obtained on first access of - this advisor's advice. This advisor will only ever obtain at most one - single instance of the advice object, caching the instance for the lifetime of - the advisor. - The name of the advice object. - - - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
- - In case of initialization errors. - -
- - - Return the advice part of this aspect. - - -

- An advice may be an interceptor, a throws advice, before advice, - introduction etc. -

-
- - The advice that should apply if the pointcut matches. - -
- - - Describe this Advisor, showing pointcut and name of advice object. - - Type name , pointcut, and advice object name. - - - - The that drives this advisor. - - - - - Superinterface for all before advice. - - -

- Before advice is advice that executes before a joinpoint, but - which does not have the ability to prevent execution flow proceeding to - the joinpoint (unless it throws an ). -

-

- Spring.NET only supports method before advice. Although this - is unlikely to change, this API is designed to allow field - before advice in future if desired. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - - - $Id: IBeforeAdvice.cs,v 1.4 2006/04/09 07:18:36 markpollack Exp $ -
- - - Implementations can create special target sources, such as pooling target - sources, for particular objects. For example, they may base their choice - on attributes, such as a pooling attribute, on the target type. - -

AbstractAutoProxyCreator can support a number of TargetSourceCreators, - which will be applied in order.

-
- Rod Johnson - Adhari C Mahendra (.NET) - $Id: ITargetSourceCreator.cs,v 1.3 2007/08/22 08:49:08 markpollack Exp $ -
- - - Create a special TargetSource for the given object, if any. - - The type of the object to create a TargetSource for - the name of the object - the containing factory - a special TargetSource or null if this TargetSourceCreator isn't - interested in the particular object - - - - ObjectPostProcessor implementation that creates AOP proxies based on all candidate - Advisors in the current IObjectFactory. This class is completely generic; it contains - no special code to handle any particular aspects, such as pooling aspects. - - Rod Johnson - Adhari C Mahendra (.NET) - $Id: DefaultAdvisorAutoProxyCreator.cs,v 1.9 2007/10/08 22:04:51 markpollack Exp $ - - - - Abstract IOBjectPostProcessor implementation that creates AOP proxies. - This class is completely generic; it contains no special code to handle - any particular aspects, such as pooling aspects. - - -

Subclasses must implement the abstract findCandidateAdvisors() method - to return a list of Advisors applying to any object. Subclasses can also - override the inherited shouldSkip() method to exclude certain objects - from autoproxying, but they must be careful to invoke the shouldSkip() - method of this class, which tries to avoid circular reference problems - and infinite loops.

-

Advisors or advices requiring ordering should implement the Ordered interface. - This class sorts advisors by Ordered order value. Advisors that don't implement - the Ordered interface will be considered to be unordered, and will appear - at the end of the advisor chain in undefined order.

-
- - Rod Johnson - Adhari C Mahendra (.NET) - $Id: AbstractAdvisorAutoProxyCreator.cs,v 1.5 2007/08/22 08:49:08 markpollack Exp $ -
- - - Return whether the given object is to be proxied, what additional - advices (e.g. AOP Alliance interceptors) and advisors to apply. - - the new object instance - the name of the object - targetSource returned by TargetSource property: - may be ignored. Will be null unless a custom target source is in use. - - an array of additional interceptors for the particular object; - or an empty array if no additional interceptors but just the common ones; - or null if no proxy at all, not even with the common interceptors. - - -

The previous name of this method was "GetInterceptorAndAdvisorForObject". - It has been renamed in the course of general terminology clarification - in Spring 1.1. An AOP Alliance Interceptor is just a special form of - Advice, so the generic Advice term is preferred now.

-

The third parameter, customTargetSource, is new in Spring 1.1; - add it to existing implementations of this method.

-
-
- - - Find all eligible advices and for autoproxying this class. - - - the empty list, not null, if there are no pointcuts or interceptors - - - - Sorts the advisors. - - The advisors. - - - - - Find all candidate advisors to use in auto-proxying. - - list of Advisors - - - - We override this method to ensure that all candidate advisors are materialized - under a stack trace including this object. Otherwise, the dependencies won't - be apparent to the circular-reference prevention strategy in AbstractObjectFactory. - - - - - Separator between prefix and remainder of object name - - - - - Find all candidate advices to use in auto proxying. - - list of Advice - - - - Invoked by an - after it has injected all of an object's dependencies. - - - - - Gets or sets a value indicating whether to exclude - advisors with a certain prefix. - - true if [use prefix]; otherwise, false. - - - - Set the prefix for object names that will cause them to be included for - auto-proxying by this object. This prefix should be set to avoid circular - references. Default value is the object name of this object + a dot. - - The advisor object name prefix. - - - - Set the name of the object in the object factory that created this object. - - The name of the object in the factory. - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
-
- - - Convenient pointcut-driven advisor implementation. - - -

- This is the most commonly used implementation. - It can be used with any pointcut and advice type, except for introductions. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: DefaultPointcutAdvisor.cs,v 1.8 2007/05/30 22:35:43 markpollack Exp $ -
- - - Abstract PointcutAdvisor that allows for any Advice to be configured. - - Juergen Hoeller - Mark Pollack (.NET) - $Id: AbstractGenericPointcutAdvisor.cs,v 1.2 2007/08/10 17:39:44 bbaia Exp $ - - - - Returns a that represents the current - . - - - A representation of this advisor. - - - - - Return the advice part of this advisor. - - - The advice that should apply if the pointcut matches. - - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - - class for the supplied , - - - The advice to use. - - - - - Creates a new instance of the - - class for the supplied and - . - - - The advice to use. - - - The pointcut to use. - - - - - Returns a that represents the current - . - - - A representation of this advisor. - - - - - The that drives this advisor. - - - - - Decorates a target source with the - interface. - - -

- This implementation will release the target object when said object - is disposed. -

-
- Aleksandar Seovic - $Id: DynamicTargetSourceWrapper.cs,v 1.4 2007/03/16 04:01:17 aseovic Exp $ -
- - - Decorates a target source with the - interface. - - Aleksandar Seovic - $Id: ITargetSourceWrapper.cs,v 1.1 2006/08/10 18:45:52 bbaia Exp $ - - - - Returns the target object that proxy methods will be delegated to. - - The target object. - - - - Creates a new instance of the - - class. - - - The target object that proxy methods will be delegated to. - - - If the supplied is - . - - - - - Returns the target object that proxy methods will be delegated to. - - The target object. - - - - Releases the dynamic target when this object is disposed. - - - - - Superclass for all AOP infrastructure exceptions. - - Aleksandar Seovic - $Id: AspectException.cs,v 1.3 2006/04/09 07:18:33 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Base class for different cache advice implementations that provide - access to common functionality, such as obtaining a cache instance. - - Aleksandar Seovic - $Id: BaseCacheAdvice.cs,v 1.3 2007/04/01 15:04:04 bbaia Exp $ - - - - Returns an instance based on the cache name. - - The name of the cache. - - Cache instance for the specified if one - is registered in the application context, or null if it isn't. - - - - - Prepares variables for expression evaluation by packaging all - method arguments into a dictionary, keyed by argument name. - - - Method to get parameters info from. - - - Argument values to package. - - - A dictionary containing all method arguments, keyed by method name. - - - - - Evaluates a SpEL expression as a boolean value. - - - The expression string that should be evaluated. - - - The SpEL expression instance that should be evaluated. - - - The object to evaluate expression against. - - - The expression variables dictionary. - - - The evaluated boolean. - - - If the SpEL expression could not be successfuly resolved to a boolean. - - - - - Retrieves custom attribute for the specified attribute type. - - - Method to get attribute from. - - - Attribute type. - - - Attribute instance if one is found, null otherwise. - - - - - Set the that this - object runs in. - - - - - Pooling target source implementation based on the - - - Rod Johnson - Federico Spinazzi - $Id: SimplePoolTargetSource.cs,v 1.9 2007/03/16 04:01:26 aseovic Exp $ - - - - - Returns the target object (acquired from the pool). - - - The target object (acquired from the pool). - - - If unable to obtain the target object. - - - - - Creates the pool. - - - The owning , in - case one needs collaborators from it (normally one's own properties - are sufficient). - - - - - - Creates a new instance of an appropriate - implementation. - - -

- Subclasses can, of course, override this method if they want to - return a different implementation. -

-
- - An empty . - -
- - - Releases the target object (returns it to the pool). - - The target object to release (return to the pool). - - In the case that the could not be released. - - - - - Performs application-defined tasks associated with freeing, releasing, or - resetting unmanaged resources. - - -

- Disposes of the pool. -

-
-
- - - Creates an instance that can be returned by the pool. - - - An instance that can be returned by the pool. - - - - - - Destroys an instance no longer needed by the pool. - - The instance to be destroyed. - - - - - Ensures that the instance is safe to be returned by the pool. - Returns false if this object should be destroyed. - - The instance to validate. - - if this object is not valid and - should be dropped from the pool, otherwise . - - - - - - Reinitialize an instance to be returned by the pool. - - The instance to be activated. - - - - - Passivates the object. - - The instance returned to the pool. - - - - - The number of active object instances in this pool. - - - - - The number of free object instances in this pool. - - - - - Convenient class for attribute-match method pointcuts that hold an Interceptor, - making them an Advisor. - - Bruno Baia - $Id: AttributeMatchMethodPointcutAdvisor.cs,v 1.3 2007/03/16 04:01:23 aseovic Exp $ - - - - implementation that matches methods - that have been decorated with a specified . - - Aleksandar Seovic - Ronald Wildenberg - $Id: AttributeMatchMethodPointcut.cs,v 1.8 2007/05/21 16:43:45 bbaia Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The to match. - - - - - Creates a new instance of the - - class. - - - The to match. - - - Flag that controls whether or not the inheritance tree of the - method to be included in the search for the ? - - - - - Creates a new instance of the - - class. - - - The to match. - - - Flag that controls whether or not the inheritance tree of the - method to be included in the search for the ? - - - Flag that controls whether or not interfaces attributes of the - method to be included in the search for the ? - - - - - Does the supplied satisfy this matcher? - - The candidate method. - - The target (may be , - in which case the candidate must be taken - to be the 's declaring class). - - - if this this method matches statically. - - - - - The to match. - - - If the supplied value is not a that - derives from the class. - - - - - Is the inheritance tree of the method to be included in the search for the - ? - - -

- The default is . -

-
-
- - - Is the interfaces attributes of the method to be included in the search for the - ? - - -

- The default is . -

-
-
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class - for the supplied . - - - - - - Is this advice associated with a particular instance? - - - if this advice is associated with a - particular instance. - - - Always; this property is not yet supported. - - - - - Returns this s order in the - interception chain. - - - This s order in the - interception chain. - - - - - Return the advice part of this advisor. - - - The advice that should apply if the pointcut matches. - - - - - - The that drives this advisor. - - - - - Subinterface of the AOP Alliance - interface that - allows additional interfaces to be implemented by the interceptor, and - available via a proxy using that interceptor. - - -

- This is a fundamental AOP concept called introduction. -

-

- Introductions are often mixins, enabling the building of composite - objects that can achieve many of the goals of multiple inheritance. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: IIntroductionInterceptor.cs,v 1.3 2006/04/09 07:18:36 markpollack Exp $ -
- - - Does this - implement the given interface? - - The interface to check. - - if this - - implements the given interface. - - - - - Base class that each dynamic composition proxy has to extend. - - Aleksandar Seovic - Bruno Baia - $Id: BaseCompositionAopProxy.cs,v 1.2 2007/03/16 04:01:22 aseovic Exp $ - - - - Default constructor. - - - - - Creates a new instance of the - class. - - The proxy configuration. - - - - Deserialization constructor. - - Serialization data. - Serialization context. - - - - Returns this proxy instance - - - - - - Delegate to target object handling of equals method. - - The object to compare with the current target object - true if the specified Object is equal to the current target object; otherwise, false - - - - Delgate to the target object generation of the hash code. - - A hash code for the target object. - - - - Returns a String the represents the target object. - - A String that represents the target object - - - - Provides Singleton-style access to the default - instance. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: GlobalAdvisorAdapterRegistry.cs,v 1.5 2006/04/09 07:18:35 markpollack Exp $ - - - - Default implementation of the - - interface. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: DefaultAdvisorAdapterRegistry.cs,v 1.5 2006/04/09 07:18:35 markpollack Exp $ - - - - Creates a new instance of the - class. - - -

- This constructor will also register the well-known - types. -

-
- -
- - - Returns an wrapping the supplied - . - - - The object that should be an advice, such as - or - . - - - An wrapping the supplied - . Never returns . If - the parameter is an - , it will simply be returned. - - - If no registered - can wrap - the supplied . - - - - - Returns an to - allow the use of the supplied in an - interception-based framework. - - The advisor to find an interceptor for. - - An interceptor to expose this advisor's behaviour. - - - If the advisor type is not understood by any registered - . - - - - - Register the given . - - - An that - understands the particular advisor and advice types. - - - - - Creates a new instance of the - class. - - -

- This contructor is marked as to enforce the - Singleton pattern -

-
-
- - - The default instance. - - - - - Pointcut and method matcher for use in simple cflow-style - pointcuts. - - -

- Evaluating such pointcuts is slower than evaluating normal pointcuts, - but can nevertheless be useful in some cases. Of course, your mileage - may vary as to what 'slower' actually means. -

-
- Rod Johnson - Simon White (.NET) - $Id: ControlFlowPointcut.cs,v 1.6 2006/04/09 07:18:37 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - The class under which all control flows are to be matched. - - - - - Construct a new pointcut that matches all calls below the - given method in the given class. - - -

- If the supplied is - , all control flows below the given - class will be successfully matched. -

-
- - The class under which all control flows are to be matched. - - - The method name under which all control flows are to be matched. - -
- - - Should the pointcut apply to the supplied ? - - -

- Subclasses are encouraged to override this method for greater - filtering (and performance). -

-

- This, the default, implementation always matches (returns - ). -

-
- The candidate target class. - - if the advice should apply to the supplied - - -
- - - Does the supplied satisfy this matcher? - Perform static checking. If this returns false, or if the isRuntime() method - returns false, no runtime check will be made. - - -

- Subclasses are encouraged to override this method if it is possible - to filter out some candidate classes. -

-

- This, the default, implementation always matches (returns - ). This means that the three argument - - method will always be invoked. -

-
- The candidate method. - - The target class (may be , in which case the - candidate class must be taken to be the 's - declaring class). - - - if this this method matches statically. - - -
- - - Is there a runtime (dynamic) match for the supplied - ? - - -

- Subclasses are encouraged to override this method if it is possible - to filter out some candidate classes. -

-
- The candidate method. - The target class. - The arguments to the method - - if there is a runtime match. - -
- - - The for this pointcut. - - - The current . - - - - - Gets the number of times this pointcut has been evaluated. - - -

- Useful as a debugging aid. -

-

- Note that this value is distinct from the number of times that this - pointcut sucessfully matches a target method, in that a - may be evaluated many times but - never actually match even once. -

-
- - The number of times this pointcut has been evaluated. - -
- - - The for this pointcut. - - - The current . - - - - - Is this a runtime pointcut? - - -

- This implementation is a runtime pointcut, and so always returns - . -

-
- - if this is a runtime pointcut. - - -
- - Interceptor to wrap an after throwing advice. - -

- Implementations of the interface - must define methods of the form... - - AfterThrowing([MethodInfo method, Object[] args, Object target], Exception subclass); - - The method name is fixed (i.e. your methods must be named - AfterThrowing. The first three arguments (as a whole) are - optional, and only useful if futher information about the joinpoint is - required. The return type can be anything, but is almost always - by convention. -

-

- Please note that the object encapsulating the throws advice does not - need to implement the interface. - Throws advice methods are discovered via reflection... the - interface serves merely to - discover objects that are to be considered as throws advice. - Other mechanisms for discovering throws advice such as attributes are - also equally valid... all that this class cares about is that a throws - advice object implement one or more methods with a valid throws advice - signature (see above, and the examples below). -

-

- This is a framework class that should not normally need to be used - directly by Spring.NET users. -

-
- -

- Find below some examples of valid - method signatures... -

- - public class GlobalExceptionHandlingAdvice : IThrowsAdvice - { - public void AfterThrowing(Exception ex) { - // handles absolutely any and every Exception... - } - } - - - public class RemotingExceptionHandlingAdvice : IThrowsAdvice - { - public void AfterThrowing(RemotingException ex) { - // handles any and every RemotingException (and subclasses of RemotingException)... - } - } - - - using System.Data; - - public class DataExceptionHandlingAdvice - { - public void AfterThrowing(ConstraintException ex) { - // specialised handling of ConstraintExceptions - } - - public void AfterThrowing(NoNullAllowedException ex) { - // specialised handling of NoNullAllowedExceptions - } - - public void AfterThrowing(DataException ex) { - // handles all other DataExceptions... - } - } - -
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: ThrowsAdviceInterceptor.cs,v 1.8 2007/05/04 13:16:44 bbaia Exp $ - -
- - - The mapping of exception Types to MethodInfo handlers. - - - - - Creates a new instance of the - class. - - - - - The throws advice to check for exception handler methods. - - - If the supplied is . - - - If no (0) handler methods were discovered on the supplied ; - or if more than one handler method suitable for a particular - type was discovered on the supplied - . - - - - - Executes interceptor if (and only if) the supplied - throws an exception that is mapped to - an appropriate exception handler. - - - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied (this assumes no - exception was thrown by the call to the supplied . - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - - Gets the exception handler (if any) that has been mapped to the - supplied . - - -

- Will return if not found. -

-
- - The exception handler for the of the - supplied given exception. - - exception that was thrown -
- - - Invokes handler method with appropriate number of parameters - - - The original method invocation that was intercepted. - - - The exception that triggered this interceptor. - - - The exception handler method to invoke. - - - - - Convenience property that returns the number of exception handler - methods managed by this interceptor. - - - The number of exception handler methods managed by this interceptor. - - - - - Convinience advisor implementation that applies - to all the methods that have defined on one or - more of their parameters. - - Bruno Baia - $Id: ParameterValidationAdvisor.cs,v 1.1 2008/05/26 09:17:50 bbaia Exp $ - - - - Creates new advisor instance. - - - - - Returns true if any of the parameters of the specified - has applied. - - - Method to check. - - - Type of target object. - - - true if any of the parameters of the specified - has applied; false otherwise. - - - - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - Translates from one exception to another based. My wrap or replace exception depending on the expression. - - Mark Pollack - $Id: TranslationExceptionHandler.cs,v 1.3 2007/10/10 18:07:46 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Handles the exception. - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - Canonical that matches - all methods. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: TrueMethodMatcher.cs,v 1.5 2006/04/09 07:18:36 markpollack Exp $ - - - - Canonical instance that matches all methods. - - -

- It is not dynamic. -

-
-
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - Does the supplied satisfy this matcher? - Perform static checking. If this returns false, or if the isRuntime() method - returns false, no runtime check will be made. - - The candidate method. - - The target class (may be , in which case the - candidate class must be taken to be the 's - declaring class). - - - if this this method matches statically. - - - - - - Is there a runtime (dynamic) match for the supplied - ? - - The candidate method. - The target class. - The arguments to the method - - if there is a runtime match. - - - - - A that represents the current - . - - - A that represents the current - . - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - Is this dynamic? - - - if this - is dynamic. - - - - - - Provides access to the target object of an AOP proxy. - - -

- To be implemented by introduction aspects in order to obtain access to - the target object. -

-
- Aleksandar Seovic - $Id: ITargetAware.cs,v 1.3 2006/04/09 07:18:35 markpollack Exp $ -
- - - Sets the target object. - - - - - Builds an AOP proxy type using the decorator pattern. - - Bruno Baia - $Id: DecoratorAopProxyTypeBuilder.cs,v 1.17 2007/12/07 17:58:56 bbaia Exp $ - - - - AdvisedProxy instance calls should be delegated to. - - - - - Creates a new instance of the - class. - - The proxy configuration. - - - - Creates the proxy type. - - The generated proxy class. - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Declares field that holds the - instance used by the proxy. - - - The builder to use for code generation. - - - - - Implements serialization method. - - - - - - Implements serialization constructor. - - Type builder to use. - - - - Implements constructors for the proxy class. - - -

- This implementation creates a new instance - of the class. -

-
- - The builder to use. - -
- - - Implements interface. - - The type builder to use. - - - - Determines if the specified - is one of those generated by this builder. - - The type to check. - - if the type is a decorator-based proxy; - otherwise . - - - - - Thrown in response to the misconfiguration of an AOP proxy. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: AopConfigException.cs,v 1.4 2006/04/09 07:18:35 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class with - the specified message. - - - A message about the exception. - - - - - Creates a new instance of the - class with - the specified message and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Namespace parser for the aop namespace. - - - Using the advisor tag you can configure an and have it - applied to all the relevant objects in your application context automatically. The - advisor tag supports only referenced s. - - Rob harrop - Adrian Colyer - Rod Johnson - Mark Pollack (.NET) - $Id: AopNamespaceParser.cs,v 1.3 2007/08/09 02:42:35 markpollack Exp $ - - - - Register the for the 'config' tag. - - - - - Abstract base class for logging advice - - - - - Mark Pollack - $Id: AbstractLoggingAdvice.cs,v 1.2 2007/12/06 17:17:19 markpollack Exp $ - - - - The default ILog instance used to write logging messages. - - - - - Indicates whether or not proxy type names should be hidden when using dynamic loggers. - - - - - Adds logging to the method invocation. - - - The method IsInterceptorEnabled is called - as an optimization to determine if logging should be applied. If logging should be - applied, the method invocation is passed to the InvokeUnderLog method for handling. - If not, the method proceeds as normal. - - - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - Determines whether the interceptor is enabled for the specified invocation, that - is, whether the method InvokeUnderLog is called. - - The default behavior is to check whether the given ILog instance - is enabled by calling IsLogEnabled, whose default behavior is to check if - the TRACE level of logging is enabled. Subclasses - The invocation. - The log to write messages to - - true if [is interceptor enabled] [the specified invocation]; otherwise, false. - - - - - Determines whether the given log is enabled. - - - Default is true when the trace level is enabled. Subclasses may override this - to change the level at which logging occurs, or return true to ignore level - checks. - The log instance to check. - - true if log is for a given log level; otherwise, false. - - - - - Subclasses must override this method to perform any tracing around the supplied - IMethodInvocation. - - - Subclasses are resonsible for ensuring that the IMethodInvocation actually executes - by calling IMethodInvocation.Proceed(). - - By default, the passed-in ILog instance will have log level - "trace" enabled. Subclasses do not have to check for this again, unless - they overwrite the IsInterceptorEnabled method to modify - the default behavior. - - - The method invocation to log - The log to write messages to - The result of the call to IMethodInvocation.Proceed() - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - Gets the appropriate log instance to use for the given IMethodInvocation. - - - If the UseDynamicLogger property is set to true, the ILog instance will be - for the target class of the IMethodInvocation, otherwise the log will be the - default static logger. - - The method invocation being logged. - The ILog instance to use. - - - - Sets a value indicating whether to use a dynamic logger or static logger - - Default is to use a static logger. - - Used to determine which ILog instance should be used to write log messages for - a particular method invocation: a dynamic one for the Type getting called, - or a static one for the Type of the trace interceptor. - - - Specify either this property or LoggerName, not both. - - - true if use dynamic logger; otherwise, false. - - - - Sets the name of the logger to use. - - - The name will be passed to the underlying logging implementation through Common.Logging, - getting interpreted as the log category according to the loggers configuration. - - This can be specified to not log into the category of a Type (whether this - interceptor's class or the class getting called) but rather to a specific named category. - - - Specify either this property or UseDynamicLogger, but not both. - - - The name of the logger. - - - - Sets a value indicating whether hide proxy type names (whenever possible) - when using dynamic loggers, i.e. property UseDynamicLogger is set to true. - - true if [hide proxy type names]; otherwise, false. - - - - Exception advice to perform exception translation, conversion of exceptions to default return values, and - exception swallowing. Configuration is via a DSL like string for ease of use in common cases as well as - allowing for custom translation logic by leveraging the Spring expression language. - - - - The exception handler collection can be filled with either instances of objects that implement the interface - or a string that follows a simple syntax for most common exception management - needs. The source exceptions to perform processing on are listed immediately after the keyword 'on' and can - be comma delmited. Following that is the action to perform, either log, translate, wrap, replace, return, or - swallow. Following the action is a Spring expression language (SpEL) fragment that is used to either create the - translated/wrapped/replaced exception or specify an alternative return value. The variables available to be - used in the expression language fragment are, #method, #args, #target, and #e which are 1) the method that - threw the exception, the arguments to the method, the target object itself, and the exception that was thrown. - Using SpEL gives you great flexibility in creating a translation of an exception that has access to the calling context. - - Common translation cases, wrap and rethrow, are supported with a shorter syntax where you can specify only - the exception text for the new translated exception. If you ommit the exception text a default value will be - used. - The exceptionsHandlers are compared to the thrown exception in the order they are listed. logging - an exception will continue the evaluation process, in all other cases exceution stops at that point and the - appropriate exceptions handler is executed. - - - - on FooException1 log 'My Message, Method Name ' + #method.Name - on FooException1 translate new BarException('My Message, Method Called = ' + #method.Name", #e) - on FooException2,Foo3Exception wrap BarException 'My Bar Message' - on FooException4 replace BarException 'My Bar Message' - on FooException5 return 32 - on FooException6 swallow - - - - - - - Mark Pollack - $Id: ExceptionHandlerAdvice.cs,v 1.9 2007/10/11 01:29:42 markpollack Exp $ - - - - This is - - - - - Mark Pollack - $Id: AbstractExceptionHandlerAdvice.cs,v 1.1 2007/10/08 22:05:16 markpollack Exp $ - - - - Implement this method to perform extra treatments before and after - the call to the supplied . - - -

- Polite implementations would certainly like to invoke - . -

-
- - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Parses the advice expression. - - The advice expression. - An instance of ParsedAdviceExpression - - - - Gets the match using exception constraint expression. - - The advice expression string. - The regex string. - The Match object resulting from the regular expression match. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception name' and subclass specific actions. - - The regex string to parse advice expressions starting with 'on exception name' and subclass specific actions. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception (constraint)' and subclass specific actions. - - The regex string to parse advice expressions starting with 'on exception (constraint)' and subclass specific actions. - - - - Implement this method to perform extra treatments before and after - the call to the supplied . - - -

- Polite implementations would certainly like to invoke - . -

-
- - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Invokes handlers registered for the passed exception and - - The exception to be handled - The that raised this exception. - The output of - - - - Parses the specified handler string, creating an instance of IExceptionHander. - - The handler string. - an instance of an exception handler or null if was not able to correctly parse - handler string. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception name' and exception handling actions. - - The regex string to parse advice expressions starting with 'on exception name' and exception handling actions. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception (constraint)' and exception handling actions. - - The regex string to parse advice expressions starting with 'on exception (constraint)' and exception handling actions. - - - - Gets or sets the exception handler. - - The exception handler. - - - - Convenient superclass for s - that are also dynamic pointcuts. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: DynamicMethodMatcherPointcutAdvisor.cs,v 1.6 2007/03/16 04:01:24 aseovic Exp $ - - - - Convenient abstract superclass for dynamic method matchers that do - care about arguments at runtime. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: DynamicMethodMatcher.cs,v 1.5 2006/04/09 07:18:37 markpollack Exp $ - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Does the supplied satisfy this matcher? - - -

- Derived classes can override this method to add preconditions for - dynamic matching. -

-

- This implementation always returns . -

-
- The candidate method. - - The target (may be , - in which case the candidate must be taken - to be the 's declaring class). - - - if this this method matches statically. - -
- - - Is there a runtime (dynamic) match for the supplied - ? - - -

- Must be overriden by derived classes to provide criteria for dynamic matching. -

-
- The candidate method. - - The target . - - The arguments to the method - - if there is a runtime match. -
- - - Is this dynamic? - - - Always returns , to specify that this is a - dynamic matcher. - - - - - Creates a new instance of the - - class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - Creates a new instance of the - - class for the supplied . - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
- - The advice portion of this advisor. - -
- - - Is this advice associated with a particular instance? - - -

- Not supported for dynamic advisors. -

-
- - if this advice is associated with a - particular instance. - - Always. - -
- - - The for this pointcut. - - -

- This implementation always returns a filter that evaluates to - for any . -

-
- - The current . - -
- - - The for this pointcut. - - -

- This implementation always returns itself (this object). -

-
- - The current . - -
- - - Returns this s order in the - interception chain. - - - This s order in the - interception chain. - - - - - Return the advice part of this aspect. - - - The advice that should apply if the pointcut matches. - - - - - - The that drives this advisor. - - -

- This implementation always returns itself (this object). -

-
-
- - - implementation that - wraps instances. - - -

- In the future Spring.NET may also offer a more efficient alternative - solution in cases where there is no interception advice and therefore - no need to create an - object. -

-

- Used internally by the Spring.NET AOP framework: application developers - should not need to use this class directly. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: MethodBeforeAdviceInterceptor.cs,v 1.5 2007/03/16 04:01:21 aseovic Exp $ -
- - - Creates a new instance of the - - class. - - - The that is to be wrapped. - - - If the supplied is . - - - - - Executes interceptor before the target method successfully returns. - - - The method invocation that is being intercepted. - - - The result of the call to the - method of - the supplied . - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - Default implementation of the - interface, - either creating a decorator-based dynamic proxy or - a composition-based dynamic proxy. - - -

- Creates a decorator-base proxy if one the following is true : - - the "ProxyTargetType" property is set - - no interfaces have been specified -

-

- In general, specify "ProxyTargetType" to enforce a decorator-based proxy, - or specify one or more interfaces to use a composition-based proxy. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - Bruno Baia (.NET) - - $Id: DefaultAopProxyFactory.cs,v 1.2 2007/08/02 16:28:29 bbaia Exp $ -
- - - Factory interface for the creation of AOP proxies based on - configuration - objects. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: IAopProxyFactory.cs,v 1.3 2006/04/09 07:18:35 markpollack Exp $ - - - - Creates an for the - supplied configuration. - - The AOP configuration. - An . - - If the supplied configuration is - invalid. - - - - - Creates an for the - supplied configuration. - - The AOP configuration. - An . - - If the supplied configuration is - invalid. - - - - - - Generates the proxy type. - - - The to use - - The generated proxy class. - - - - Convinience advisor implementation that applies - to all the methods that have defined. - - Aleksandar Seovic - $Id: InvalidateCacheAdvisor.cs,v 1.1 2007/02/16 03:13:01 aseovic Exp $ - - - - Creates new advisor instance. - - - - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - Convenience base class for - implementations. - - -

- Subclasses can override the - - method to change this behavior, so this is a useful/ base class for - implementations. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - Rick Evans (.NET) - Bruno Baia (.NET) - $Id: AbstractMethodInvocation.cs,v 1.8 2007/07/05 20:29:21 bbaia Exp $ -
- - - Description of an invocation to a method, given to an interceptor - upon method-call. - - -

- A method invocation is a joinpoint and can be intercepted by a method - interceptor. -

-
- -
- - - Gets the method invocation that is to be invoked. - - -

- This property is a friendly implementation of the - property. - It should be used in preference to the - property - because it provides immediate access to the underlying method - without the need to resort to a cast. -

-
- - The method invocation that is to be invoked. - -
- - - Gets the proxy object for the invocation. - - - The proxy object for this method invocation. - - - - - Gets the target object for the invocation. - - - The target object for this method invocation. - - - - - Gets the type of the target object. - - - The type of the target object. - - - - - The arguments (if any = may be ) to the method - that is to be invoked. - - - - - The target object that the method is to be invoked on. - - - - - The AOP proxy for the target object. - - - - - The method invocation that is to be invoked. - - - - - The list of and - - that need dynamic checks. - - - - - The declaring type of the method that is to be invoked. - - - - - The index from 0 of the current interceptor we're invoking. - - - - - Creates a new instance of the - class. - - -

- This is an abstract class, and as such exposes no publicly visible - constructors. -

-

- - The list can also contain any - s - that need evaluation at runtime. - s included in an - - must already have been found to have matched as far as was possible - statically. Passing an array might be about 10% faster, but - would complicate the code, and it would work only for static - pointcuts. - -

-
- The AOP proxy. - The target object. - the target method. - The target method's arguments. - - The of the target object. - - The list of interceptors that are to be applied. May be - . - - - If the is . - -
- - - Proceeds to the next interceptor in the chain. - - - The return value of the method invocation. - - - If any of the interceptors at the joinpoint throws an exception. - - - - - - Retrieves a new instance - for the next Proceed method call. - - - The current instance. - - - The new instance to use. - - - - - - Invokes the joinpoint. - - -

- Subclasses can override this to use custom invocation. -

-
- - The return value of the invocation of the joinpoint. - - - If invoking the joinpoint resulted in an exception. - - -
- - - A that represents the current - invocation. - - -

- - Does not invoke on the - target - object, as that too may be proxied. - -

-
- - A that represents the current invocation. - -
- - - Gets the method invocation that is to be invoked. - - -

- May or may not correspond with a method invoked on an underlying - implementation of that interface. -

-
- -
- - - Gets the static part of this joinpoint. - - - The proxied member's information. - - - - - - Gets the proxy that this interception was made through. - - - The proxy that this interception was made through. - - - - - Gets the target object for the invocation. - - - The target object for this method invocation. - - - - - Gets the type of the target object. - - - The type of the target object. - - - - - Gets and sets the arguments (if any - may be ) - to the method that is to be invoked. - - - The arguments (if any - may be ) to the - method that is to be invoked. - - - - - - The list of method interceptors. - - -

- May be . -

-
-
- - - Gets the target object. - - - - - Sleeps for the appropriate amount of time for an exception. - - - - - Mark Pollack - $Id: RetryExceptionHandler.cs,v 1.1 2007/10/10 07:38:17 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Handles the exception. - - - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - - Gets the maximum retry count. - - The maximum retry count. - - - - Gets a value indicating whether this instance is delay based. - - - true if this instance is delay based; otherwise, false. - - - - - Gets or sets the delay time span to sleep after an exception is thrown and a rety is - attempted. - - The delay time span. - - - - Gets or sets the delay rate expression. - - The delay rate expression. - - - - Convenient class for building up pointcuts. - - -

- All methods return a - instance, which facilitates the following concise usage pattern... -

- - IPointcut pointcut = new ComposablePointcut() - .Union(typeFilter) - .Intersection(methodMatcher) - .Intersection(pointcut); - -

- There is no Union() method on this class. Use the - method for such functionality. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: ComposablePointcut.cs,v 1.7 2007/03/16 04:01:23 aseovic Exp $ -
- - - Creates a new instance of the - class - that matches all the methods on all s. - - - - - Creates a new instance of the - class - that uses the supplied and - . - - - The type filter to use. - - - The method matcher to use. - - - - - Changes the current type filter to be the union of the existing filter and the - supplied . - - The filter to union with. - - The union of the existing filter and the supplied . - - - - - Changes the current type filter to be the intersection of the existing filter - and the supplied . - - The filter to diff against. - - The intersection of the existing filter and the supplied . - - - - - Changes the current method matcher to be the union of the existing matcher and the - supplied . - - The matcher to union with. - - The union of the existing matcher and the supplied . - - - - - Changes the current method matcher to be the intersection of the existing matcher - and the supplied . - - The matcher to diff against. - - The intersection of the existing matcher and the supplied . - - - - - Changes current pointcut to intersection of the current and supplied pointcut - - pointcut to diff against - updated pointcut - - - - The for this pointcut. - - - The current . - - - - - The for this pointcut. - - - The current . - - - - - Advice that executes after a method returns successfully. - - -

- After returning advice is invoked only on a normal method - return, but not if an exception is thrown. Such advice can see - the return value of the advised method invocation, but cannot change it. -

-

- Possible uses for this type of advice would include performing access - control checks on the return value of an advised method invocation, the - ubiquitous logging of method invocation return values (useful during - development), etc. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - - $Id: IAfterReturningAdvice.cs,v 1.6 2006/04/09 07:18:36 markpollack Exp $ -
- - - Executes after - returns successfully. - - -

- Note that the supplied cannot - be changed by this type of advice... use the around advice type - () if you - need to change the return value of an advised method invocation. - The data encapsulated by the supplied - can of course be modified though. -

-
- - The value returned by the . - - The intecepted method. - The intercepted method's arguments. - The target object. - -
- - - Invokes a target method using standard reflection. - - Rod Johnson - Aleksandar Seovic (.NET) - Rick Evans (.NET) - Bruno Baia (.NET) - $Id: ReflectiveMethodInvocation.cs,v 1.18 2008/02/06 18:28:52 bbaia Exp $ - - - - The method invocation that is to be invoked on the proxy. - - - - - Creates a new instance of the - class. - - The AOP proxy. - The target object. - The target method proxied. - The method to invoke on proxy. - The target method's arguments. - - The of the target object. - - The list of interceptors that are to be applied. May be - . - - - If any of the or - parameters is . - - - - - Invokes the joinpoint using standard reflection. - - -

- Subclasses can override this to use custom invocation. -

-
- - The return value of the invocation of the joinpoint. - - - If invoking the joinpoint resulted in an exception. - - -
- - - Creates a new instance - from the specified and - increments the interceptor index. - - - The current instance. - - - The new instance to use. - - - - - Builds an AOP proxy type using inheritance. - - Bruno Baia - $Id: InheritanceAopProxyTypeBuilder.cs,v 1.2 2008/03/03 09:28:50 bbaia Exp $ - - - - AdvisedProxy instance calls should be delegated to. - - - - - Creates a new instance of the - class. - - The proxy configuration. - - - - Creates the proxy type. - - The generated proxy class. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Declares field that holds the - instance used by the proxy. - - - The builder to use for code generation. - - - - - Implements serialization method. - - - - - - Implements serialization constructor. - - Type builder to use. - - - - Defines the types of the parameters for the specified constructor. - - The constructor to use. - The types for constructor's parameters. - - - - Generates the proxy constructor. - - -

- This implementation creates instance of the AdvisedProxy object. -

-
- The constructor builder to use. - The IL generator to use. - The constructor to delegate the creation to. -
- - - Implements interface. - - The type builder to use. - - - - Determines if the specified - is one of those generated by this builder. - - The type to check. - - if the type is a inheritance-based proxy; - otherwise . - - - - - Gets or sets a value indicating whether inherited members should be proxied. - - - if inherited members should be proxied; - otherwise, . - - - - - This class contains the results of parsing an advice expresion of the form - on exception name [ExceptionName1,ExceptionName2,...] [action] [action expression] - or - on exception [constraint expression] [action] [action expression] - - - - - Mark Pollack - $Id: ParsedAdviceExpression.cs,v 1.1 2007/10/08 22:05:16 markpollack Exp $ - - - - Initializes a new instance of the class. - - The advice expression. - - - - Gets or sets the advice expression. - - The advice expression. - - - - Gets or sets the exception names. - - The exception names. - - - - Gets or sets the constraint expression. - - The constraint expression. - - - - Gets or sets the action expression text. - - The action expression text. - - - - Gets or sets the action text. - - The action text. - - - - Gets or sets a value indicating whether this is success. - - true if success; otherwise, false. - - - - Implementation of a cache invalidation advice. - - -

- This advice can be used to evict items from the cache. -

-

- Information that determines which items should be evicted and from which cache - are retrieved from the s that are defined - on the pointcut. -

-

- Items are evicted *after* target method is invoked. Return value of the method, - as well as method arguments, can be used to determine a list of keys for the items - that should be evicted (return value will be passed as a context for - expression evaluation, and method - arguments will be passed as variables, keyed by argument name). -

-
- - Aleksandar Seovic - $Id: InvalidateCacheAdvice.cs,v 1.4 2007/04/01 15:04:05 bbaia Exp $ -
- - - Executes after - returns successfully. - - -

- Note that the supplied cannot - be changed by this type of advice... use the around advice type - () if you - need to change the return value of an advised method invocation. - The data encapsulated by the supplied - can of course be modified though. -

-
- - The value returned by the . - - The intecepted method. - The intercepted method's arguments. - The target object. - -
- - - Implementation of a result caching advice. - - -

- This advice can be used to cache the return value of the method. -

-

- Parameters that determine where, how and for how long the return value - will be cached are retrieved from the and/or - that are defined on the pointcut. -

-
- - - Aleksandar Seovic - $Id: CacheResultAdvice.cs,v 1.6 2008/05/05 15:00:55 markpollack Exp $ -
- - - Applies caching around a method invocation. - - -

- This method tries to retrieve an object from the cache, using the supplied - to generate a cache key. If an object is found - in the cache, the cached value is returned and the method call does not - proceed any further down the invocation chain. -

-

- If object does not exist in the cache, the advised method is called (using - ) - and any return value is cached for the next method invocation. -

-
- - The method invocation that is being intercepted. - - - A cached object or the result of the - call. - - - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - Obtains return value either from cache or by invoking target method - and caches it if necessary. - - - The method invocation that is being intercepted. - - - Attribute specifying where and how to cache return value. Can be null, - in which case no caching of the result as a whole will be performed - (if the result is collection, individual items could still be cached separately). - - - Returns true if the return value was found in cache, false otherwise. - - - Return value for the specified . - - - - - Caches each item from the collection returned by target method. - - - A collection of items to cache. - - - Attributes specifying where and how to cache each item from the collection. - - - - - Defines miscellaneous filter operations. - - Rod Johnson - Aleksandar Seovic (.Net) - $Id: TypeFilters.cs,v 1.4 2007/03/16 04:01:25 aseovic Exp $ - - - - Creates a union of two filters. - - -

- The filter arising from the union will match all of the - that either of the two supplied filters - would match. -

-
- - The first filter. - - - The second filter. - - - The union of the supplied filters. - -
- - - Creates the intersection of two filters. - - -

- The filter arising from the intersection will match all of the - that both of the two supplied filters - would match. -

-
- - The first filter. - - - The second filter. - - - The intersection of the supplied filters. - -
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly visible constructors. -

-
-
- - - Union class filter implementation. - - - - - Intersection implementation. - - - - - Convenient class for name-match method pointcuts that hold an Interceptor, - making them an Advisor. - - Juergen Hoeller - Aleksandar Seovic (.NET) - Mark Pollack (.NET) - $Id: NameMatchMethodPointcutAdvisor.cs,v 1.5 2007/05/30 22:35:43 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class - for the supplied . - - - - - - The for this pointcut. - - Default is - - The current . - - - - - Convenience property when we have only a single method name - to match. - - - - Use either this property or the - property, - not both. - - - - - - Set the method names defining methods to match. - - -

- Matching will be the union of all these; if any match, the pointcut matches. -

-
-
- - - The that drives this advisor. - - - - - Simple marker interface for throws advice. - - -

- There are no methods on this interface, as methods are discovered and - invoked via reflection. Please do see read the API documentation for the - class; - said documention describes in detail the signature of the methods that - implementations of the interface - must adhere to in the specific case of Spring.NET's implementation of - throws advice. -

-

- There are any number of possible uses for this type of advice. Some - examples would include the ubiquitous logging of any such exceptions, - monitoring the number and type of exceptions and sending emails to - a support desk once certain criteria have been met, wrapping generic - exceptions such as in - exceptions that are more meaningful to your business logic, etc. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - - $Id: IThrowsAdvice.cs,v 1.5 2006/04/09 07:18:36 markpollack Exp $ -
- - - Exception thrown when an attempt is made to use an unsupported - or - type. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: UnknownAdviceTypeException.cs,v 1.4 2006/04/09 07:18:35 markpollack Exp $ - - - - Creates a new instance of the - class. - - The advice that caused the exception. - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class with - the specified message. - - - A message about the exception. - - - - - Creates a new instance of the - class with - the specified message and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - implementation that creates a - new instance of the target object for each request. - - -

- Can only be used in an object factory. -

-
- Rod Johnson - Spinazzi Federico (.NET) - $Id: PrototypeTargetSource.cs,v 1.3 2006/04/09 07:18:37 markpollack Exp $ - -
- - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - -

- No-op implementation. -

-
- The target object to release. -
- - - Is the target source static? - - - because this target source is never static. - - - - - Regular expression based pointcut object. - - -

- Uses the regular expression classes from the .NET Base Class Library. -

-

- The regular expressions must be a match. For example, the - .*Get* pattern will match Com.Mycom.Foo.GetBar(), and - Get.* will not. -

-
- Rod Johnson - Simon White (.NET) -
- - - Abstract base regular expression pointcut object. - - -

- The regular expressions must be a match. For example, the - .*Get.* pattern will match Com.Mycom.Foo.GetBar(), and - Get.* will not. -

-

- This base class is serializable. Subclasses should decorate all - fields with the - the - - method in this class will be invoked again on the client side on deserialization. -

-
- Rod Johnson - Juergen Hoeller - Simon White (.NET) -
- - - Creates a new instance of the - - class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - If an error was encountered during the deserialization process. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - Subclasses must implement this to initialize regular expression pointcuts. - - -

- Can be invoked multiple times. -

-

- This method will be invoked from the property, - and also on deserialization. -

-
- - The patterns to initialize. - - - In the case of an invalid pattern. - -
- - - Does the pattern at the supplied - match this ? - - The pattern to match - The index of pattern. - - if there is a match. - - - - - Does the supplied satisfy this matcher? - - -

- Try to match the regular expression against the fully qualified name - of the method's declaring , plus the name of - the supplied . -

-

- Note that the declaring is that - that originally declared - the method, not necessarily the that is - currently exposing it. For example, - matches any subclass of 's - method. -

-
- The candidate method. - - The target (may be , - in which case the candidate must be taken - to be the 's declaring class). - - - if this this method matches statically. - -
- - - Should the pointcut apply to the supplied - ? - - -

- In this instance, simply returns . -

-
- - The candidate . - - - if the advice should apply to the supplied - - -
- - - The for this pointcut. - - - The current . - - - - - Convenience property for setting a single pattern. - - - Use this property or Patterns, not both. - - - - - The regular expressions defining methods to match. - - - Matching will be the union of all these; if any match, - the pointcut matches. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class, - using the supplied pattern or . - - - The intial pattern value(s) to be matched against. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - If an error was encountered during the deserialization process. - - - - - Initializes the regular expression pointcuts. - - -

- Can be invoked multiple times. -

-

- This method will be invoked from the - property, - and also on deserialization. -

-
- - The patterns to initialize. - - - In the case of an invalid pattern. - - - If the supplied is . - -
- - - Does the pattern at the supplied - match this ? - - The pattern to match - The index of pattern. - - if there is a match. - - - - - Gets or sets default options that should be used by - regular expressions that don't have options explicitly set. - - - Default options that should be used by regular expressions - that don't have options explicitly set. - - - - - Simple implementation that - by default applies to any class. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: DefaultIntroductionAdvisor.cs,v 1.11 2007/03/16 04:01:23 aseovic Exp $ - - - - Superinterface for advisors that perform one or more AOP - introductions. - - -

- This interface cannot be implemented directly; subinterfaces must - provide the advice type implementing the introduction. -

-

- Introduction is the implementation of additional interfaces (not - implemented by a target) via AOP advice. -

-
- - Rod Johnson - Aleksandar Seovic (.NET) - $Id: IIntroductionAdvisor.cs,v 1.8 2006/04/09 07:18:36 markpollack Exp $ -
- - - Can the advised interfaces be implemented by the introduction - advice? - - -

- Invoked before adding an - . -

-
- - If the advised interfaces cannot be implemented by the introduction - advice. - - -
- - - Returns the filter determining which target classes this - introduction should apply to. - - -

- This is the part of a pointcut. - Be advised that method matching doesn't make sense in the context - of introductions. -

-
- - The filter determining which target classes this introduction - should apply to. - -
- - - Gets the interfaces introduced by this - . - - - The interfaces introduced by this - . - - - - - Creates a new instance of the - class using - the supplied - - -

- This constructor adds all interfaces implemented by the supplied - (except the - interface) to the list of - interfaces to introduce. -

-
- The introduction to use. -
- - - Creates a new instance of the - class using - the supplied - - The introduction to use. - - The interface to introduce. - - - - - Creates a new instance of the - class using - the supplied - - The introduction to use. - - The interfaces to introduce. - - - If the supplied is . - - - - - Adds the supplied to the list of - introduced interfaces. - - The interface to add. - - If any of the are not interface . - - - - - Should the pointcut apply to the supplied - ? - - -

- This, the default, implementation always returns . -

-
- - The candidate . - - - if the advice should apply to the supplied - - -
- - - Can the advised interfaces be implemented by the introduction - advice? - - -

- Invoked before adding an - . -

-
- - If the advised interfaces cannot be implemented by the introduction - advice. - - - - If any of the are not interface . - -
- - - Returns the filter determining which target classes this - introduction should apply to. - - - The filter determining which target classes this introduction - should apply to. - - - - - Gets the interfaces introduced by this - . - - - The interfaces introduced by this - . - - - - - Is this advice associated with a particular instance? - - -

- Default for an introduction is per-instance interception. -

-
- - if this advice is associated with a - particular instance. - -
- - - Return the advice part of this aspect. - - - The advice that should apply if the pointcut matches. - - - - - Summary description for AbstractPrototypeBasedTargetSourceCreator. - - - - - The logger - - - - - Create a special TargetSource for the given object, if any. - - the type of the object to create a TargetSource for - the name of the object - the containing factory - - a special TargetSource or null if this TargetSourceCreator isn't - interested in the particular object - - - - - Creates the prototype target source. - - The type of the object to create a target source for. - The name. - The factory. - - - - - implementation - to enable to be used in the - Spring.NET AOP framework. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: ThrowsAdviceAdapter.cs,v 1.4 2007/03/16 04:01:21 aseovic Exp $ - - - - Returns if the supplied - is an instance of the - interface. - - The advice to check. - - if the supplied is - an instance of the interface; - if not or if the supplied - is . - - - - - Wraps the supplied 's - within a - - instance. - - - The advisor exposing the that - is to be wrapped. - - - The supplied 's - wrapped within a - - instance. - - - - - Log the exceptions. Default log nameis "LogExceptionHandler" and log level is Debug - - Mark Pollack - $Id: LogExceptionHandler.cs,v 1.6 2008/02/26 00:03:24 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Handles the exception. - - the calling context dictionary - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - - Gets or sets the name of the log. - - The name of the log. - - - - Implementation of a parameter caching advice. - - -

- This advice can be used to cache the parameter of the method. -

-

- Information that determines where, how and for how long the return value - will be cached are retrieved from the s - that are defined on the pointcut. -

-

- Parameter values are cached *after* the target method is invoked in order to - capture any parameter state changes it might make (for example, it is common - to set an object identifier within the save method for the persistent entity). -

-
- - Aleksandar Seovic - $Id: CacheParameterAdvice.cs,v 1.7 2008/05/05 15:00:55 markpollack Exp $ -
- - - Executes after target - returns successfully. - - -

- Note that the supplied cannot - be changed by this type of advice... use the around advice type - () if you - need to change the return value of an advised method invocation. - The data encapsulated by the supplied - can of course be modified though. -

-
- - The value returned by the . - - The intecepted method. - The intercepted method's arguments. - The target object. - -
- - - Caching aspect implementation. - - - This class encapsulates all the advisors that need to be configured to support - Spring's full caching functionality. - - - - - Aleksandar Seovic - $Id: CacheAspect.cs,v 1.2 2007/08/03 14:38:35 markpollack Exp $ - - - - AOP Aspect abstraction, holding a list of s - - - Aleksandar Seovic (.NET) - $Id: IAdvisors.cs,v 1.1 2007/08/03 14:38:30 markpollack Exp $ - - - - Gets or sets a list of advisors. - - - A list of advisors. - - - - - Creates a new instance. - - - - - Gets or sets a list of advisors for this aspect. - - - A list of advisors for this aspect. - - - - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - The to be used - when there is no target object, and behavior is supplied by the - advisors. - - -

- This class is exposed as a singleton. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: EmptyTargetSource.cs,v 1.4 2007/10/08 22:04:51 markpollack Exp $ -
- - - The to be used - when there is no target object, and behavior is supplied by the - advisors. - - - - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly visible constructors. -

-
-
- - - Returns the target object. - - The target object. - - If unable to obtain the target object. - - - - - Releases the target object. - - - - This is a no-op operation in this implementation. - - - The target object to release. - - - - A that represents the current - . - - - A that represents the current - . - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The of the target object. - - - - - Is the target source static? - - -

- The - instance is static, and this always returns . -

-
- - if the target source is static. - -
- - - Advice executed before a method is invoked. - - -

- Such advice cannot prevent the method call proceeding, short of - throwing an . -

-

- The main advantage of before advice is that there is no - possibility of inadvertently failing to proceed down the interceptor - chain, since there is no need (and indeed means) to invoke the next - interceptor in the call chain. -

-

- Possible uses for this type of advice would include performing class - invariant checks prior to the actual method invocation, the ubiquitous - logging of method invocations (useful during development), etc. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - - - - - $Id: IMethodBeforeAdvice.cs,v 1.6 2006/04/09 07:18:36 markpollack Exp $ -
- - - The callback before a given method is invoked. - - The method being invoked. - The arguments to the method. - - The target of the method invocation. May be . - - - Thrown when and if this object wishes to abort the call. Any - exception so thrown will be propagated to the caller. - - - - - Decorates a target source with the - interface. - - -

- Because the target source is static, the target object can be cached - and simply returned as is. -

-
- Aleksandar Seovic - $Id: StaticTargetSourceWrapper.cs,v 1.3 2007/03/16 04:01:20 aseovic Exp $ -
- - - Creates a new instance of the - - class. - - - The target object that proxy methods will be delegated to. - - - If the supplied is - . - - - - - Returns the target object that proxy methods will be delegated to. - - The target object. - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - This is a no-op operation in this implementation. - - - - - - implementation - that registers instances of any non-default - instances with the - - singleton. - - -

- The only requirement for it to work is that it needs to be defined - in an application context along with any arbitrary "non-native" Spring.NET - instances that need - to be recognized by Spring.NET's AOP framework. -

-
- Dmitriy Kopylenko - Aleksandar Seovic (.NET) - $Id: AdvisorAdapterRegistrationManager.cs,v 1.5 2007/08/22 08:49:08 markpollack Exp $ -
- - - Apply this - to the given new object instance before any object initialization callbacks. - - -

- Does nothing, simply returns the supplied as is. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - Apply this to the - given new object instance after any object initialization callbacks. - - -

- Registers the supplied with the - - singleton if it is an - instance. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - AOP Advice to retry a method invocation on an exception. The retry semantics are defined by a DSL of the - form on exception name [ExceptionName1,ExceptionName2,...] retry [number of times] [delay|rate] [delay time|rate expression]. - For example, on exception name ArithmeticException retry 3x delay 1s - - - - - Mark Pollack - $Id: RetryAdvice.cs,v 1.5 2008/03/17 20:25:34 markpollack Exp $ - - - - Implement this method to perform extra treatments before and after - the call to the supplied . - - The method invocation that is being intercepted. - - The result of the call to the - method of - the supplied ; this return value may - well have been intercepted by the interceptor. - - -

- Polite implementations would certainly like to invoke - . -

-
- - If any of the interceptors in the chain or the target object itself - throws an exception. - -
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Parses the specified handler string. - - The handler string. - - - - - Gets the match for action expression. - - The action expression string. - The regex string. - The Match object resulting from the regular expression match. - - - - Gets or sets the retry expression. - - The retry expression. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception name' and exception handling actions. - - The regex string to parse advice expressions starting with 'on exception name' and exception handling actions. - - - - Gets or sets the Regex string used to parse advice expressions starting with 'on exception (constraint)' and exception handling actions. - - The regex string to parse advice expressions starting with 'on exception (constraint)' and exception handling actions. - - - - Convinience advisor implementation that applies - to all the methods that have defined on one or - more of their parameters. - - Aleksandar Seovic - $Id: CacheParameterAdvisor.cs,v 1.1 2007/02/16 03:12:56 aseovic Exp $ - - - - Creates new advisor instance. - - - - - Returns true if any of the parameters of the specified - has applied. - - - Method to check. - - - Type of target object. - - - true if any of the parameters of the specified - has applied; false otherwise. - - - - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - Convinience advisor implementation that applies - to all the methods that have defined. - - Aleksandar Seovic - $Id: CacheResultAdvisor.cs,v 1.1 2007/02/16 03:13:01 aseovic Exp $ - - - - Creates new advisor instance. - - - - - Returns true if either or - is applied to the - . - - - Method to check. - - - Type of target object. - - - true if either or - is applied to the - ; false otherwise. - - - - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - implementation to - source AOP proxies from a Spring.NET IoC container (an - ). - - -

- s and - s are identified by a list of object - names in the current container.

-

- Global interceptors and advisors can be added at the factory level - (that is, outside the context of a - definition). The - specified interceptors and advisors are expanded in an interceptor list - (see - ) - where an 'xxx*' wildcard-style entry is included in the list, - matching the given prefix with the object names. For example, - 'global*' would match both 'globalObject1' and - 'globalObjectBar', and '*' would match all defined - interceptors. The matching interceptors get applied according to their - returned order value, if they implement the - interface. An interceptor name list - may not conclude with a global 'xxx*' pattern, as global - interceptors cannot invoke targets. -

-

- It is possible to cast a proxy obtained from this factory to an - reference, or to obtain the - reference and - programmatically manipulate it. This won't work for existing prototype - references, which are independent... however, it will work for prototypes - subsequently obtained from the factory. Changes to interception will - work immediately on singletons (including existing references). - However, to change interfaces or the target it is necessary to obtain a - new instance from the surrounding container. This means that singleton - instances obtained from the factory do not have the same object - identity... however, they do have the same interceptors and target, and - changing any reference will change all objects. -

-
- Rod Johnson - Juergen Hoeller - Federico Spinazzi (.NET) - Choy Rim (.NET) - Mark Pollack (.NET) - Aleksandar Seovic (.NET) - $Id: ProxyFactoryObject.cs,v 1.26 2007/08/03 14:38:30 markpollack Exp $ - - - - - -
- - - This suffix in a value in an interceptor list indicates to expand globals. - - - - - The shared instance for this class. - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - The cached instance if this proxy factory object is a singleton. - - - - - The owning object factory (which cannot be changed after this object is initialized). - - - - - The mapping from an or interceptor - to an object name (or ), depending on where it was - sourced from. - - -

- If it's sourced from object name, it will need to be - refreshed each time a new prototype instance is created. -

-
-
- - - Names of interceptors and pointcut objects in the factory. - - -

- Default is for globals expansion only. -

-
-
- - - Names of introductions and pointcut objects in the factory. - - -

- Default is for globals expansion only. -

-
-
- - - The name of the target object(in the enclosing - ). - - - - - Creates an instance of the AOP proxy to be returned by this factory - - -

- Invoked when clients obtain objects from this factory object. The - (proxy) instance will be cached for a singleton, and created on each - call to - for a prototype. -

-
- - A fresh AOP proxy reflecting the current state of this factory. - - -
- - Create the advisor (interceptor) chain. - - The advisors that are sourced from an ObjectFactory will be refreshed each time - a new prototype instance is added. Interceptors added programmatically through - the factory API are unaffected by such changes. - - - - - Configures introductions for this proxy. - - - - Add all global interceptors and pointcuts. - - - Add all global introductions. - - - Add the given interceptor or pointcut to the interceptor list. - interceptor or pointcut to add - object name from which we obtained this object in our owning object factory - - - Add the introduction to the introduction list. - - If specified parameter is IIntroducionAdvisor it is added directly, otherwise it is wrapped - with DefaultIntroductionAdvisor first. - - introducion to add - object name from which we obtained this object in our owning object factory - - - Refresh named objects from the interceptor chain. - We need to do this every time a new prototype instance is returned, - to return distinct instances of prototype interfaces and pointcuts. - - - - - Refreshes target object for prototype instances. - - - - Refresh named objects from the interceptor chain. - We need to do this every time a new prototype instance is returned, - to return distinct instances of prototype interfaces and pointcuts. - - - - Wraps pointcut or interceptor with appropriate advisor - pointcut or interceptor that needs to be wrapped with advisor - Advisor - - - Wraps target with SingletonTargetSource if necessary - target or target source object - target source passed or target wrapped with SingletonTargetSource - - - Wraps introduction with IIntroductionAdvisor if necessary - object to wrap - Introduction advisor - - - - - - - No need to do anything when advice change, proxy can handle those changes by itself. - - - - - Implementation of listener for AdvisedSupport.InterfacesChanged event - event source - - - - Sets the names of the interfaces that are to be implemented by the proxy. - - - The names of the interfaces that are to be implemented by the proxy. - - - If the supplied value (or any of its elements) is ; - or if any of the element values is not the (assembly qualified) name of - an interface type. - - - - - Sets the name of the target object being proxied. - - -

- Only works when the - - property is set; it is a logic error on the part of the programmer - if this value is set and the accompanying - is not also set. -

-
- - The name of the target object being proxied. - -
- - - Sets the list of and - object names. - - -

- This property must always be set (configured) when using a - in an - context. -

-
- - The list of and - object names. - - - - - -
- - - Sets the list of introduction object names. - - -

- Only works when the - - property is set; it is a logic error on the part of the programmer - if this value is set and the accompanying - is not supplied. -

-
- - The list of introduction object names. . - -
- - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - - In case of initialization errors. - - - - - - - Return the of the proxy. - - - Will check the singleton instance if already created, - else fall back to the proxy interface (if a single one), - the target bean type, or the TargetSource's target class. - - Return the of object that this - creates, or - if not known in advance. - - - - Is the object managed by this factory a singleton or a prototype? - - - - - implementation - that delegates method calls to target object. - - Aleksandar Seovic - Bruno Baia - $Id: TargetAopProxyMethodBuilder.cs,v 1.3 2008/01/29 18:24:50 markpollack Exp $ - - - - The local variable to store - the instance. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - The dictionary to cache the list of target - s. - - - - - Creates local variable declarations. - - The IL generator to use. - The method to proxy. - - - - Generates method logic. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Calls proxied method directly. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Configurable advice for logging. - - - - - Mark Pollack - $Id: SimpleLoggingAdvice.cs,v 1.7 2008/04/04 15:30:13 markpollack Exp $ - - - - Flag to indicate if unique identifier should be in the log message. - - - - - Flag to indicate if the execution time should be in the log message. - - - - - Flag to indicate if the method arguments should be in the log message. - - - - - Flag to indicate if the return value should be in the log message. - - - - - The separator string to use for delmiting log message fields. - - - - - The log level to use for logging the entry, exit, exception messages. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if set to true to use dynamic logger, if - false use static logger. - - - - Subclasses must override this method to perform any tracing around the supplied - IMethodInvocation. - - The method invocation to log - The log to write messages to - - The result of the call to IMethodInvocation.Proceed() - - - Subclasses are resonsible for ensuring that the IMethodInvocation actually executes - by calling IMethodInvocation.Proceed(). - - By default, the passed-in ILog instance will have log level - "trace" enabled. Subclasses do not have to check for this again, unless - they overwrite the IsInterceptorEnabled method to modify - the default behavior. - - - - If any of the interceptors in the chain or the target object itself - throws an exception. - - - - - Determines whether the given log is enabled. - - The log instance to check. - - true if log is for a given log level; otherwise, false. - - - Default is true when the trace level is enabled. Subclasses may override this - to change the level at which logging occurs, or return true to ignore level - checks. - - - - Creates a unique identifier. - - - Default implementation uses Guid.NewGuid(). Subclasses may override to provide an alternative - ID generation implementation. - - A unique identifier - - - - Gets the entry message to log - - The invocation. - The id string. - The entry log message - - - - Gets the exception message. - - The method invocation. - The thown exception. - The execution time span. - The id string. - The exception log message. - - - - Gets the exit log message. - - The method invocation. - The return value. - The execution time span. - The id string. - the exit log message - - - - Appends common information across entry,exit, exception logging - - Add method name and unique identifier if required. - The string buffer building logging message. - The method invocation. - The unique identifier string. - - - - Gets the method argument as argumen name/value pairs. - - The method invocation. - string for logging method argument name and values. - - - - Gets or sets a value indicating whether to log a unique identifier with the log message. - - true if [log unique identifier]; otherwise, false. - - - - Gets or sets a value indicating whether to log execution time. - - true if log execution time; otherwise, false. - - - - Gets or sets a value indicating whether log method arguments. - - true if log method arguments]; otherwise, false. - - - - Gets or sets a value indicating whether log return value. - - true if log return value; otherwise, false. - - - - Gets or sets the seperator string to use for delmiting log message fields. - - The seperator. - - - - Gets or sets the entry log level. - - The entry log level. - - - - Evaluates the expression for the return value of the method. - - Mark Pollack - $Id: ReturnValueExceptionHandler.cs,v 1.3 2007/10/10 18:07:46 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The exception names. - - - - Returns the result of evaluating the translation expression. - - The return value from handling the exception, if not rethrown or a new exception is thrown. - - - - Canonical instance that matches - everything. - - Rod Johnson - Aleksandar Seovic (.NET) - - - - Canonical instance that matches everything. - - - - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly - visible constructors. -

-
-
- - - A that represents the current - . - - - A that represents the current - . - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The for this pointcut. - - - The current . - - - - - The for this pointcut. - - - The current . - - - - - Convenient superclass for s that - are also static pointcuts. - - Rod Johnson - Aleksandar Seovic (.Net) - $Id: StaticMethodMatcherPointcutAdvisor.cs,v 1.6 2006/04/09 07:18:37 markpollack Exp $ - - - - Creates a new instance of the - - class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - Creates a new instance of the - - class for the supplied - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
- - The advice to use. - -
- - - Is this advice associated with a particular instance? - - - if this advice is associated with a - particular instance. - - - Always; this property is not yet supported. - - - - - Returns this s order in the - interception chain. - - - This s order in the - interception chain. - - - - - Return the advice part of this advisor. - - - The advice that should apply if the pointcut matches. - - - - - - The that drives this advisor. - - - - - Convenient class for regular expression method pointcuts that hold an - , making them an - . - - -

- Configure this class using the and - pass-through properties. These are analogous - to the and - s properties of the - class. -

-

- Can delegate to any type of regular expression pointcut. Currently only - pointcuts based on the regular expression classes from the .NET Base - Class Library are supported. The - - property must be a subclass of the - class. -

-

- This should not normally be set directly. -

-
- Dmitriy Kopylenko - Rod Johnson - Simon White (.NET) - Mark Pollack (.NET) - -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class for the supplied . - - The target advice. - - - - - Initialises the pointcut. - - - - - A single pattern to be used during method evaluation. - - - - - Multiple patterns to be used during method evaluation. - - - - - The that drives this advisor. - - - - - Various related utility methods. - - -

- These methods are particularly useful for composing pointcuts - using the union and intersection methods. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: Pointcuts.cs,v 1.6 2007/03/16 04:01:25 aseovic Exp $ -
- - - Creates a union of the two supplied pointcuts. - - The first pointcut. - The second pointcut. - - The union of the two supplied pointcuts. - - - - - - Creates an that is the - intersection of the two supplied pointcuts. - - The first pointcut. - The second pointcut. - - An that is the - intersection of the two supplied pointcuts. - - - - - Performs the least expensive check for a match. - - - The to be evaluated. - - The candidate method. - - The target . - - The arguments to the method - if there is a runtime match. - - - - - Are the supplied s equal? - - The first pointcut. - The second pointcut. - - if the supplied s - are equal. - - - - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly - visible constructors. -

-
-
- - - implementation that delegates - method calls to an instance. - - Bruno Baia - $Id: IAdvisedProxyMethodBuilder.cs,v 1.3 2006/11/12 01:37:47 bbaia Exp $ - - - - The implementation to use. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - implementation - that delegates method calls to the base method. - - Bruno Baia - $Id: BaseAopProxyMethodBuilder.cs,v 1.1 2008/02/06 18:28:52 bbaia Exp $ - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - The dictionary to cache the list of target - s. - - - The dictionary to cache the list of target - s defined on the proxy. - - - - - Create static field that will cache target method when defined on the proxy. - - The IL generator to use. - The target method. - - - - Calls target method directly. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Implementation of the - interface that caches the AOP proxy instance. - - -

- Caches against a key based on : - - the base type - - the target type - - the interfaces to proxy -

-
- Bruno Baia - Erich Eichinger - - - $Id: CachedAopProxyFactory.cs,v 1.1 2007/08/02 04:15:21 markpollack Exp $ -
- - - The shared instance for this class. - - - - - Generates the proxy type and caches the - instance against the base type and the interfaces to proxy. - - - The to use - - The generated or cached proxy class. - - - - Uniquely identifies a proxytype in the cache - - - - - Utility methods used by the AOP framework. - - -

- Not intended to be used directly by applications. -

-
- Rod Johnson - Juergen Hoeller - Aleksandar Seovic (.NET) - $Id: AopUtils.cs,v 1.4 2007/10/10 18:07:38 markpollack Exp $ -
- - - Is the supplied an AOP proxy? - - - Return whether the given object is either - a composition-based proxy or a decorator-based proxy. - - The instance to be checked. - - if the supplied is - an AOP proxy. - - - - - Is the supplied a composition-based AOP proxy? - - The instance to be checked. - - if the supplied is - an composition-based AOP proxy. - - - - - Is the supplied a decorator-based AOP proxy? - - The instance to be checked. - - if the supplied is - an decorator-based AOP proxy. - - - - - Gets all of the interfaces that the of the - supplied implements. - - -

- This includes interfaces implemented by any superclasses. -

-
- - The object to analyse for interfaces. - - - All of the interfaces that the of the - supplied implements; or an empty - array if the supplied is - . - -
- - - Can the supplied apply at all on the - supplied ? - - -

- This is an important test as it can be used to optimize out a - pointcut for a class. -

-

- Invoking this method with a that is - an interface type will always yield a - return value. -

-
- The pointcut being tested. - The class being tested. - - The interfaces being proxied. If , all - methods on a class may be proxied. - - - if the pointcut can apply on any method. - -
- - - Can the supplied apply at all on the - supplied ? - - -

- This is an important test as it can be used to optimize out an - advisor for a class. -

-
- The advisor to check. - The class being tested. - - The interfaces being proxied. If , all - methods on a class may be proxied. - - - if the advisor can apply on any method. - -
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly - visible constructors. -

-
-
- - - Gets the type of the target. - - The candidate. - - - - - This advice is typically applied to service-layer methods in order to validate - method arguments. - - - Each argument that should be validated has to be marked with one or more - s. - If the validation fails, this advice will throw , - thus preventing target method invocation. - - - Damjan Tomic - Aleksandar Seovic - $Id: ParameterValidationAdvice.cs,v 1.2 2008/04/02 23:00:28 markpollack Exp $ - - - - Intercepts method invocation and validates arguments. - - - Method invocation. - - - Method arguments. - - - Target object. - - - If one or more method arguments fail validation. - - - - - Gets or sets the application context to search for validators in. - - - The application context to search for validators in. - - - - - Various utility methods relating to the composition of - s. - - -

- A method matcher may be evaluated statically (based on method and target - class) or need further evaluation dynamically (based on arguments at - the time of method invocation). -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: MethodMatchers.cs,v 1.7 2007/03/16 04:01:24 aseovic Exp $ -
- - - Creates a new that is the - union of the two supplied s. - - -

- The newly created matcher will match all the methods that either of the two - supplied matchers would match. -

-
- The first method matcher. - The second method matcher. - - A new that is the - union of the two supplied s - -
- - - Creates a new that is the - intersection of the two supplied s. - - -

- The newly created matcher will match only those methods that both - of the supplied matchers would match. -

-
- The first method matcher. - The second method matcher. - - A new that is the - intersection of the two supplied s - -
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly - visible constructors. -

-
-
- - - Builds an AOP proxy type using composition. - - Aleksandar Seovic - Bruno Baia - $Id: CompositionAopProxyTypeBuilder.cs,v 1.15 2007/12/07 17:58:56 bbaia Exp $ - - - - Creates a new instance of the - class. - - The proxy configuration. - - - - Creates the proxy type. - - The generated proxy type. - - - - Generates the IL instructions that pushes - the current - instance on stack. - - The IL generator to use. - - - - Implements serialization constructor. - - Type builder to use. - - - - Implements constructors for the proxy class. - - -

- This implementation calls the base constructor. -

-
- - The builder to use. - -
- - - Determines if the specified - is one of those generated by this builder. - - The type to check. - - if the type is a composition-based proxy; - otherwise . - - - - - Utility methods for use by - implementations. - - -

- Not intended to be used directly by applications. -

-
- Rod Johnson - Aleksandar Seovic (.NET) - $Id: AdvisorChainFactoryUtils.cs,v 1.7 2006/04/09 07:18:35 markpollack Exp $ -
- - - Gets the list of - interceptors and dynamic interception - advice that may apply to the supplied - invocation. - - The proxy configuration. - The object proxy. - - The method to evaluate interceptors for. - - - The of the target object. - - - A of - (if there's - a dynamic method matcher that needs evaluation at runtime). - - - - - Creates a new instance of the - - class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - implementation - to enable to be used in the - Spring.NET AOP framework. - - Rod Johnson - Aleksandar Seovic (.NET) - $Id: AfterReturningAdviceAdapter.cs,v 1.5 2007/03/16 04:01:20 aseovic Exp $ - - - - Returns if the supplied - is an instance of the - interface. - - The advice to check. - - if the supplied is - an instance of the interface; - if not or if the supplied - is . - - - - - Wraps the supplied 's - within a - - instance. - - - The advisor exposing the that - is to be wrapped. - - - The supplied 's - wrapped within a - - instance. - - - - - Invokes a target method using dynamic reflection. - - - Aleksandar Seovic - Bruno Baia - $Id: DynamicMethodInvocation.cs,v 1.3 2008/02/06 18:28:52 bbaia Exp $ - - - - The method invocation that is to be invoked on the proxy. - - - - - Creates a new instance of the - class. - - The AOP proxy. - The target object. - The target method proxied. - The method to invoke on proxy. - The target method's arguments. - - The of the target object. - - The list of interceptors that are to be applied. May be - . - - - If any of the or - parameters is . - - - - - Invokes the joinpoint using dynamic reflection. - - -

- Subclasses can override this to use custom invocation. -

-
- - The return value of the invocation of the joinpoint. - - - If invoking the joinpoint resulted in an exception. - - -
- - - Creates a new instance - from the specified and - increments the interceptor index. - - - The current instance. - - - The new instance to use. - - -
-
diff --git a/src/Spring/Spring.Core/Spring.Core.xml b/src/Spring/Spring.Core/Spring.Core.xml deleted file mode 100644 index 2ded4f5d..00000000 --- a/src/Spring/Spring.Core/Spring.Core.xml +++ /dev/null @@ -1,42722 +0,0 @@ - - - - Spring.Core - - - - - Validates that required value is not empty. - - -

- This validator uses following rules to determine if target value is valid: - - - - - - - - - - - - - - - - - - - - - - - - - -
Target Valid Value
A .Not or an empty string.
A .Not and not .
One of the number types.Not zero.
A .Not or whitespace.
Any reference type other than .Not .
-

-

- You cannot use this validator to validate any value types other than the ones - specified in the table above. -

-
- Aleksandar Seovic - $Id: RequiredValidator.cs,v 1.8 2008/03/21 14:12:02 markpollack Exp $ -
- - - Base class that defines common properties for all validators. - - -

- Custom validators should always extend this class instead of - simply implementing interface, in - order to inherit common validator functionality. -

-
- Aleksandar Seovic - $Id: BaseValidator.cs,v 1.12 2008/02/05 20:40:26 aseovic Exp $ -
- - - An object that can validate application-specific objects. - - -

- The primary motivation for this interface is to enable validation to be - decoupled from the (user) interface and placed in business objects. -

-

- Application developers writing their own custom - implementations will - typically not implement this interface directly. In most cases, custom - validators woud be better served deriving from the - class, with the - custom validation ligic being implemented in an override of the - - - template method. -

-
- Aleksandar Seovic - $Id: IValidator.cs,v 1.8 2008/02/05 20:40:26 aseovic Exp $ - -
- - - Validates the specified object. - - The object to validate. - - The instance to add any error - messages to in the case of validation failure. - - - if validation was successful. - - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - - The instance to add any error - messages to in the case of validation failure. - - - if validation was successful. - - - - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Validates the specified object. - - The object to validate. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Validates test object. - - Object to validate. - True if specified object is valid, False otherwise. - - - - Evaluates test expression. - - Root context to use for expression evaluation. - Additional context parameters. - Result of the test expression evaluation, or validation context if test is null. - - - - Evaluates when expression. - - Root context to use for expression evaluation. - Additional context parameters. - True if the condition is true, False otherwise. - - - - Processes the error messages. - - Whether validator is valid or not. - Validation context. - Additional context parameters. - Validation errors container. - - - - Gets or sets the test expression. - - The test expression. - - - - Gets or sets the expression that determines if this validator should be evaluated. - - The expression that determines if this validator should be evaluated. - - - - Gets or sets the validation actions. - - The actions that should be executed after validation. - - - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Validates the supplied . - - - In the case of the class, - the test should be a variable expression that will be evaluated and the object - obtained as a result of this evaluation will be tested using the rules described - in the class overview of the - class. - - The object to validate. - - if the supplied is valid. - - - - - implementation that supports grouping of validators. - - -

- This validator will be valid when one or more of the validators in the Validators - collection are valid. -

-

- ValidationErrors property will return a union of all validation error messages - for the contained validators, but only if this validator is not valid (meaning, when none - of the contained validators are valid). -

-
- Aleksandar Seovic - $Id: AnyValidatorGroup.cs,v 1.9 2008/02/05 20:40:26 aseovic Exp $ -
- - - implementation that supports grouping of validators. - - -

- This validator will be valid only when all of the validators in the Validators - collection are valid. -

-

- ValidationErrors property will return a union of all validation error messages - for the contained validators. -

-
- Aleksandar Seovic - $Id: ValidatorGroup.cs,v 1.10 2008/02/05 20:40:26 aseovic Exp $ -
- - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Doesn't do anything for validator group as there is no single test. - - Object to validate. - True if specified object is valid, False otherwise. - - - - Gets or sets the validators. - - The validators. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Various utility methods relating to numbers. - - -

- Mainly for internal use within the framework. -

-
- Aleksandar Seovic - $Id: NumberUtils.cs,v 1.6 2008/03/20 23:58:16 oakinger Exp $ -
- - - Determines whether the supplied is an integer. - - The object to check. - - if the supplied is an integer. - - - - - Determines whether the supplied is a decimal number. - - The object to check. - - if the supplied is a decimal number. - - - - - Determines whether the supplied is of numeric type. - - The object to check. - - true if the specified object is of numeric type; otherwise, false. - - - - - Determines whether the supplied can be converted to an integer. - - The object to check. - - if the supplied can be converted to an integer. - - - - - Determines whether the supplied can be converted to an integer. - - The object to check. - - if the supplied can be converted to an integer. - - - - - Determines whether the supplied can be converted to a number. - - The object to check. - - true if the specified object is decimal number; otherwise, false. - - - - - Is the supplied equal to zero (0)? - - The number to check. - - id the supplied is equal to zero (0). - - - - - Negates the supplied . - - The number to negate. - The supplied negated. - - If the supplied is not a supported numeric type. - - - - - Adds the specified numbers. - - The first number. - The second number. - - - - Subtracts the specified numbers. - - The first number. - The second number. - - - - Multiplies the specified numbers. - - The first number. - The second number. - - - - Divides the specified numbers. - - The first number. - The second number. - - - - Calculates remainder for the specified numbers. - - The first number (dividend). - The second number (divisor). - - - - Raises first number to the power of the second one. - - The first number. - The second number. - - - - Coerces the types so they can be compared. - - The right. - The left. - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Various utility methods relating to the manipulation of arrays. - - Aleksandar Seovic - $Id: ArrayUtils.cs,v 1.15 2007/02/17 08:28:12 bbaia Exp $ - - - - Checks if the given array or collection is null or has no elements. - - - - - - - Tests equality of two single-dimensional arrays by checking each element - for equality. - - The first array to be checked. - The second array to be checked. - True if arrays are the same, false otherwise. - - - - Returns hash code for an array that is generated based on the elements. - - - Hash code returned by this method is guaranteed to be the same for - arrays with equal elements. - - - Array to calculate hash code for. - - - A hash code for the specified array. - - - - - Returns string representation of an array. - - - Array to return as a string. - - - String representation of the specified . - - - - - Support to account for differences between java nad .NET: -
    -
-
-
- - - .NET threads have not a method to check if they have been interrupted. - Moreover, differently from java threads, when entering locked - blocks, Monitor, Sleep, SpinWait and so on, a - will be raised by the runtime. -

Spring.Threading classes usually call this method before entering a lock block, to mirror java code -

Usually this is non issue because the same exception will be raised entering the monitor - associated with the lock () -

-
- if the thread has been interrupted -
- - - Normalize the given so that - is is comparable with . - - Date. - - - - - - - - - the difference between millisecodns of the first and second date - - - - Returns the number of nanoseconds for the current value of - - Current number of nanoseconds - - - - Returns the number of nano seconds represented by the - - to use - Number of nano seconds for - - - - Returns a representing the number of nanoseconds passed in via . - - Number of nanoseconds. - representing the number of nanoseconds passed in. - - - - Placeholder for java.lang.System.currentTimeMillis - - The current machine time in milliseconds - - - - Has been interrupted this thread - - - - A TimeoutSync is an adaptor class that transforms all - calls to acquire to instead invoke attempt with a predetermined - timeout value. - - - - - - Acquire/Release protocol, base of many concurrency utilities. - - - -

objects isolate waiting and notification for particular logical - states, resource availability, events, and the like that are shared - across multiple threads.

- -

Use of s sometimes (but by no means always) adds - flexibility and efficiency compared to the use of plain - .Net monitor methods and locking, and are sometimes (but by no means - always) simpler to program with.

- -

Used for implementation of a

-
- - Doug Lea - Federico Spinazzi (.Net) - $Id: ISync.cs,v 1.6 2006/09/15 19:06:08 markpollack Exp $ -
- - Wait (possibly forever) until successful passage. - Fail only upon interuption. Interruptions always result in - `clean' failures. On failure, you can be sure that it has not - been acquired, and that no - corresponding release should be performed. Conversely, - a normal return guarantees that the acquire was successful. - - - - - Potentially enable others to pass. -

- Because release does not raise exceptions, - it can be used in `finally' clauses without requiring extra - embedded try/catch blocks. But keep in mind that - as with any java method, implementations may - still throw unchecked exceptions such as Error or NullPointerException - when faced with uncontinuable errors. However, these should normally - only be caught by higher-level error handlers. -

-
-
- - - Wait at most msecs to pass; report whether passed. -

- The method has best-effort semantics: - The msecs bound cannot - be guaranteed to be a precise upper bound on wait time in Java. - Implementations generally can only attempt to return as soon as possible - after the specified bound. Also, timers in Java do not stop during garbage - collection, so timeouts can occur just because a GC intervened. - So, msecs arguments should be used in - a coarse-grained manner. Further, - implementations cannot always guarantee that this method - will return at all without blocking indefinitely when used in - unintended ways. For example, deadlocks may be encountered - when called in an unintended context. -

-
- the number of milleseconds to wait - An argument less than or equal to zero means not to wait at all. - However, this may still require - access to a synchronization lock, which can impose unbounded - delay if there is a lot of contention among threads. - - true if acquired -
- - - the adapted sync - - - - - timeout value - - - - Create a TimeoutSync using the given Sync object, and - using the given timeout value for all calls to acquire. - - - - - Try to acquire the sync before the timeout - - In case a time out occurred - - - - - - - - - - - - - - Utility class to use an with the - C# using () {} idiom - - - - - Creates a new trying to the given - - - the to be held - - - - Creates a new trying to the given - - - the to be held - millisecond to try to acquire the lock - - - - Releases the held - - - - - initializes and acquire access to the - - - - - - Defines interface that proxy method builders have to implement. - - Aleksandar Seovic - Bruno Baia - $Id: IProxyMethodBuilder.cs,v 1.1 2006/08/10 18:45:55 bbaia Exp $ - - - - Dynamically builds proxy method. - - The method to proxy. - - The interface definition of the method, if applicable. - - - The for the proxy method. - - - - - Builds a proxy type using composition. - - - - In order for this builder to work, the target must implement - one or more interfaces. - - - Aleksandar Seovic - Bruno Baia - $Id: CompositionProxyTypeBuilder.cs,v 1.12 2007/03/27 02:27:43 bbaia Exp $ - - - - Base class for proxy builders that can be used - to create a proxy for any class. - - -

- This class provides a set of template - methods that derived classes can override to provide custom behaviour - appropriate to the type of proxy that is being generated (one of - inheritance or composition-based proxying). -

-
- Aleksandar Seovic - Bruno Baia - $Id: AbstractProxyTypeBuilder.cs,v 1.33 2007/12/07 17:59:20 bbaia Exp $ -
- - - Describes the operations for a generic proxy type builder that can be - used to create a proxy type for any class. - - Aleksandar Seovic - $Id: IProxyTypeBuilder.cs,v 1.8 2007/06/20 15:59:54 bbaia Exp $ - - - - Creates the proxy type. - - The generated proxy class. - - - - The name of the proxy . - - The name of the proxy . - - - - The of the target object. - - - - - The of the class that the proxy must - inherit from. - - - - - Gets or sets the list of interfaces proxy should implement. - - - - - Should we proxy target attributes? - - - by default. - Target type attributes, method attributes, method's return type attributes - and method's parameter attributes are copied to the proxy. - - - - - The list of custom s that the proxy - class must be decorated with. - - -

- Note that the list is composed of instances of the actual - s that are to be applied, not the - s of the s. -

-
- -

- The following code snippets show examples of how to decorate the - the proxied class with one or more s. -

- - // get a concrete implementation of an IProxyTypeBuilder... - IProxyTypeBuilder builder = ... ; - builder.TargetType = typeof( ... ); - - IDictionary typeAtts = new Hashtable(); - builder.TypeAttributes = typeAtts; - - // applies a single Attribute to the proxied class... - typeAtts = new Attribute[] { new MyCustomAttribute() }); - - // applies a number of Attributes to the proxied class... - typeAtts = new Attribute[] - { - new MyCustomAttribute(), - new AnotherAttribute(), - }); - -
-
- - - The custom s that the proxy - members must be decorated with. - - -

- This dictionary must use simple s for keys - (denoting the member names that the attributes are to be applied to), - with the corresponding values being - s. -

-

- The key may be wildcarded using the '*' character... if so, - then those proxy members that match against the key will be - decorated with the attendant list of - s. This naturally implies that using - the '*' character as a key will result in the attendant list - of s being applied to every member of - the proxied class. -

-
- -

- The following code snippets show examples of how to decorate the - members of a proxied class with one or more - s. -

- - // get a concrete implementation of an IProxyTypeBuilder... - IProxyTypeBuilder builder = ... ; - builder.TargetType = typeof( ... ); - - IDictionary memAtts = new Hashtable(); - builder.MemberAttributes = memAtts; - - // applies a single Attribute to all members of the proxied class... - memAtts ["*"] = new Attribute[] { new MyCustomAttribute() }); - - // applies a number of Attributes to all members of the proxied class... - memAtts ["*"] = new Attribute[] - { - new MyCustomAttribute(), - new AnotherAttribute(), - }); - - // applies a single Attribute to those members of the proxied class - // that have identifiers starting with 'Do' ... - memAtts ["Do*"] = new Attribute[] { new MyCustomAttribute() }); - - // applies a number of Attributes to those members of the proxied class - // that have identifiers starting with 'Do' ... - memAtts ["Do*"] = new Attribute[] - { - new MyCustomAttribute(), - new AnotherAttribute(), - }); - -
-
- - - Describes the operations that generates IL instructions - used to build the proxy type. - - Bruno Baia - $Id: IProxyTypeGenerator.cs,v 1.3 2006/11/12 01:37:47 bbaia Exp $ - - - - Generates the IL instructions that pushes - the proxy instance on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - The shared instance for this class (and derived classes). - - - - - Creates the proxy type. - - The generated proxy class. - - - - Generates the IL instructions that pushes - the proxy instance on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Creates an appropriate type builder. - - The name to use for the proxy type name. - The type to extends if provided. - The type builder to use. - - - - Applies attributes to the proxy class. - - The type builder to use. - The proxied class. - - - - - - Applies attributes to the proxied method. - - The method builder to use. - The proxied method. - - - - - - Applies attributes to the proxied method's return type. - - The method builder to use. - The proxied method. - - - - - Applies attributes to proxied method's parameters. - - The method builder to use. - The proxied method. - - - - - Calculates and returns the list of attributes that apply to the - specified type. - - The type to find attributes for. - - A list of custom attributes that should be applied to type. - - - - - - - Calculates and returns the list of attributes that apply to the - specified method. - - The method to find attributes for. - - A list of custom attributes that should be applied to method. - - - - - - - Calculates and returns the list of attributes that apply to the - specified method's return type. - - The method to find attributes for. - - A list of custom attributes that should be applied to method's return type. - - - - - - Calculates and returns the list of attributes that apply to the - specified method's parameters. - - The method to find attributes for. - The method's parameter to find attributes for. - - A list of custom attributes that should be applied to the specified method's parameter. - - - - - - Check that the specified object is matching the passed attribute type. - - -

- The specified object can be of different type : -

- - - - - - System.Reflection.CustomAttributeData (Only with .NET 2.0) - - - - - -
- The object instance to check. - The attribute type to test against. - - if the object instance matches the attribute type; - otherwise . - -
- - - Defines the types of the parameters for the specified constructor. - - The constructor to use. - The types for constructor's parameters. - - - - Implements constructors for the proxy class. - - - The builder to use. - - - - - Generates the proxy constructor. - - The constructor builder to use. - The IL generator to use. - The constructor to use. - - - - Implements an interface. - - - Generates proxy methods that belongs to the interface - using the specified . - - The type builder to use. - - The implementation to use - - The interface to implement. - - The of the target object. - - - - - Implements an interface. - - - Generates proxy methods that belongs to the interface - using the specified . - - The type builder to use. - - The implementation to use - - The interface to implement. - - The of the target object. - - - if target virtual methods should not be proxied; - otherwise . - - - - - Gets the mapping of the interface to proxy - into the actual methods on the target type - that does not need to implement that interface. - - -

- If the target type does not implement the interface, - we return the interfaces methods as the target methods for many reasons : -

    -
  • - The target object can change for an object that implements the interface. - (See 'Spring.Aop.Framework.DynamicProxy.IAdvisedProxyMethodBuilder' - implementation in the Spring AOP framework for an example) -
  • -
  • - Allow Transparent proxies to be proxied. - (See Spring Remoting framework for an example) -
  • -
  • - Allow null target to be proxied. - (See Spring AOP framework which avoid calls to the target object - by intercepting all methods. Think "dynamic mock") - (See 'Spring.Web.Services.WebServiceProxyFactory' implementation for another example) -
  • -
-

-
- - The of the target object. - - The interface to implement. - - An interface mapping for the interface to proxy. - -
- - - Inherit from a type. - - - Generates proxy methods for base virtual methods - using the specified . - - - The builder to use for code generation. - - - The implementation to use to override base virtual methods. - - The to inherit from. - - - - Inherit from a type. - - - Generates proxy methods for base virtual methods - using the specified . - - - The builder to use for code generation. - - - The implementation to use to override base virtual methods. - - The to inherit from. - - if only members declared at the level - of the supplied 's hierarchy should be proxied; - otherwise . - - - - - Implements the specified . - - The type builder to use. - The type the property is defined on. - The property to proxy. - The implemented methods map. - - - - Implements the specified event. - - The type builder to use. - The type the event is defined on. - The event to proxy. - The implemented methods map. - - - - Returns an array of s that represent - the proxiable interfaces. - - - An interface is proxiable if it's not marked with the - . - - - The array of interfaces from which - we want to get the proxiable interfaces. - - - An array containing the interface s. - - - - - Checks if specified interface is of a special type - that should never be proxied (i.e. ISerializable). - - Interface type to check. - - true if it is, false otherwise. - - - - - The name of the proxy . - - The name of the proxy . - - - - The of the target object. - - - - - The of the class that the proxy must - inherit from. - - -

- The default value of this property is the - . -

-
-
- - - Gets or sets the list of interfaces proxy should implement. - - - The default value of this property is all the interfaces - implemented or inherited by the target type. - - - - - Should we proxy target attributes? - - - - - - The list of custom s that the proxy - class must be decorated with. - - - - - - The custom s that the proxy - members must be decorated with. - - - - - - Target instance calls should be delegated to. - - - - - Creates a new instance of the - class. - - - - - Creates a proxy that delegates calls to an instance of the - target object. - - -

- Only interfaces can be proxied using composition, so the target - must implement one or more interfaces. -

-
- The generated proxy class. - - If the - does not implement any interfaces. - -
- - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Deaclares a field that holds the target object instance. - - - The builder to use for code generation. - - - - - Generates the proxy constructor. - - -

- This implementation creates instance of the target object for delegation - using constructor arguments. -

-
- The constructor builder to use. - The IL generator to use. - The constructor to delegate the creation to. -
- - - Gets or sets a value indicating whether interfaces should be implemented explicitly. - - - if they should be; otherwise, . - - - - - Performs a comparison of two objects, using the specified object property via - an . - - Juergen Hoeller - Jean-Pierre Pawlak - Simon White (.NET) - $Id: PropertyComparator.cs,v 1.12 2007/07/31 00:09:03 markpollack Exp $ - - - - Creates a new instance of the - class. - - - The to use for any - sorting. - - - If the supplied is . - - - - - Compares two objects and returns a value indicating whether one is less - than, equal to or greater than the other. - - The first object to compare. - The second object to compare. - - - - - Get the 's property - value for the given object. - - The object to get the property value for. - The property value. - - - - Sort the given according to the - given sort definition. - - - The to be sorted. - - The parameters to sort by. - - In the case of a missing property name. - - - If the supplied is . - - - - - Gets the to - use for any sorting. - - - The to use for - any sorting. - - - - - Helper class allowing one to declaratively specify a method call for later invocation. - - -

- Typically not used directly but via its subclasses such as - . -

-

- Usage: specify either the and - or the - and - properties respectively, and - (optionally) any arguments to the method. Then call the - method to prepare the invoker. - Once prepared, the invoker can be invoked any number of times. -

-
- -

- The following example uses the class to invoke the - ToString() method on the Foo class using a mixture of both named and unnamed - arguments. -

- - public class Foo - { - public string ToString(string name, int age, string address) - { - return string.Format("{0}, {1} years old, {2}", name, age, address); - } - - public static void Main() - { - Foo foo = new Foo(); - MethodInvoker invoker = new MethodInvoker(); - invoker.Arguments = new object [] {"Kaneda", "18 Kaosu Gardens, Nakatani Drive, Okinanawa"}; - invoker.AddNamedArgument("age", 29); - invoker.Prepare(); - // at this point, the arguments that will be passed to the method invocation - // will have been resolved into the following ordered array : {"Kaneda", 29, "18 Kaosu Gardens, Nakatani Drive, Okinanawa"} - string details = (string) invoker.Invoke(); - Console.WriteLine (details); - // will print out 'Kaneda, 29 years old, 18 Kaosu Gardens, Nakatani Drive, Okinanawa' - } - } - -
- Colin Sampaleanu - Juergen Hoeller - Simon White (.NET) - $Id: MethodInvoker.cs,v 1.7 2007/08/04 01:05:15 bbaia Exp $ -
- - - The used to search for - the method to be invoked. - - - - - The value returned from the invocation of a method that returns void. - - - - - The method that will be invoked. - - - - - Creates a new instance of the class. - - - - - Prepare the specified method. - - -

- The method can be invoked any number of times afterwards. -

-
- - If all required properties are not set, or a matching argument could not be found - for a named argument (typically down to a typo). - - - If the specified method could not be found. - -
- - - Searches for and returns the method that is to be invoked. - - - The return value of this method call will subsequently be returned from the - . - - The method that is to be invoked. - - If no method could be found. - - - If more than one method was found. - - - - - Adds the named argument to this instances mapping of argument names to argument values. - - - The name of an argument on the method that is to be invoked. - - - The value of the named argument on the method that is to be invoked. - - - - - Returns the prepared object that - will be invoked. - - -

- A possible use case is to determine the return of the method. -

-
- - The prepared object that - will be invoked. - -
- - - Invoke the specified method. - - -

- The invoker needs to have been prepared beforehand (via a call to the - method). -

-
- - The object returned by the method invocation, or - if the method returns void. - - - If at least one of the arguments passed to this - was incompatible with the signature of the invoked method. - -
- - - The target on which to call the target method. - - -

- Only necessary when the target method is ; - else, a target object needs to be specified. -

-
-
- - - The target object on which to call the target method. - - -

- Only necessary when the target method is not ; - else, a target class is sufficient. -

-
-
- - - The name of the method to be invoked. - - -

- Refers to either a method - or a non- method, depending on - whether or not a target object has been set. -

-
- -
- - - Arguments for the method invocation. - - -

- Ordering is significant... the order of the arguments in this - property must match the ordering of the various parameters on the target - method. There does however exist a small possibility for confusion when - the arguments in this property are supplied in addition to one or more named - arguments. In this case, each named argument is slotted into the index position - corresponding to the named argument... once once all named arguments have been - resolved, the arguments in this property are slotted into any remaining (empty) - slots in the method parameter list (see the example in the overview of the - class if this is not clear). -

-

- If this property is not set, or the value passed to the setter invocation - is or a zero-length array, a method with no (un-named) arguments is assumed. -

-
- -
- - - The resolved arguments for the method invocation. - - - - This property is not set until the target method has been resolved via a call to the - method). It is a combination of the - named and plain vanilla arguments properties, and it is this object array that - will actually be passed to the invocation of the target method. - -

- Setting the value of this property to results in basically clearing out any - previously prepared arguments... another call to the - method will then be required to prepare the arguments again (or the prepared arguments - can be set explicitly if so desired). -

-
- - -
- - - Named arguments for the method invocation. - - -

- The keys of this dictionary are the () names of the - method arguments, and the () values are the actual - argument values themselves. -

-

- If this property is not set, or the value passed to the setter invocation - is a reference, a method with no named arguments is assumed. -

-
- -
- - - Specialisation of the class that tries - to convert the given arguments for the actual target method via an - appropriate implementation. - - Juergen Hoeller - Rick Evans - $Id: ArgumentConvertingMethodInvoker.cs,v 1.10 2007/07/31 18:17:08 bbaia Exp $ - - - - - Creates a new instance of the - class. - - - - - Prepare the specified method. - - -

- The method can be invoked any number of times afterwards. -

-
- - If all required properties are not set. - - - If the specified method could not be found. - -
- - - Register the given custom - for all properties of the given . - - - The of property. - - - The to register. - - - - - Simple interface for object definition readers. - - Juergen Hoeller - Rick Evans - $Id: IObjectDefinitionReader.cs,v 1.8 2007/08/08 17:47:13 bbaia Exp $ - - - - Load object definitions from the supplied . - - - The resource for the object definitions that are to be loaded. - - - The number of object definitions found - - - In the case of loading or parsing errors. - - - - - Load object definitions from the supplied . - - - The resources for the object definitions that are to be loaded. - - - The number of object definitions found - - - In the case of loading or parsing errors. - - - - - Loads the object definitions from the specified resource location. - - The resource location, to be loaded with the - IResourceLoader location . - - The number of object definitions found - - - - - Loads the object definitions from the specified resource locations. - - The the resource locations to be loaded with the - IResourceLoader of this object definition reader. - - The number of object definitions found - - - - - Gets the - - instance that this reader works on. - - - - - The against which any class names - will be resolved into instances. - - - - - The to use for anonymous - objects (wihtout explicit object name specified). - - - - - Gets the resource loader to use for resource locations. - - There is also a method - available for loading object definitions from a resource location. This is - a convenience to avoid explicit ResourceLoader handling. - The resource loader. - - - - Responsible for creating instances corresponding to a - . - - Rod Johnson - Rick Evans (.NET) - $Id: IInstantiationStrategy.cs,v 1.6 2006/04/09 07:18:49 markpollack Exp $ - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - An instance of the object described by the supplied - from the supplied . - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - The to be used to instantiate - the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - The to be used to get the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - - - - - Abstract base class for object definition readers. - - -

- Provides common properties like the object registry to work on. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: AbstractObjectDefinitionReader.cs,v 1.14 2008/01/10 14:32:24 bbaia Exp $ -
- - - The shared instance for this class (and derived classes). - - - - - Creates a new instance of the - - class. - - - The - instance that this reader works on. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Creates a new instance of the - - class. - - - The - instance that this reader works on. - - - The against which any class names - will be resolved into instances. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Load object definitions from the supplied . - - - The resource for the object definitions that are to be loaded. - - - The number of object definitions that were loaded. - - - In the case of loading or parsing errors. - - - - - Load object definitions from the supplied . - - - The resources for the object definitions that are to be loaded. - - - The number of object definitions found - - - In the case of loading or parsing errors. - - - - - Loads the object definitions from the specified resource location. - - The resource location, to be loaded with the - IResourceLoader location . - - The number of object definitions found - - - - - Loads the object definitions from the specified resource locations. - - The the resource locations to be loaded with the - IResourceLoader of this object definition reader. - - The number of object definitions found - - - - - Gets the - - instance that this reader works on. - - - - - The to use for anonymous - objects (wihtout explicit object name specified). - - - - - - The against which any class names - will be resolved into instances. - - - - - Gets or sets the resource loader to use for resource locations. - - The resource loader. - - - - An that returns a value - that is the result of a or instance method invocation. - - -

- Note that this class generally is expected to be used for accessing factory methods, - and as such defaults to operating in singleton mode. The first request to - - by the owning object factory will cause a method invocation, the return - value of which will be cached for all subsequent requests. The - property may be set to - , to cause this factory to invoke the target method each - time it is asked for an object. -

-

- A target method may be specified by setting the - property to a string representing - the method name, with specifying - the that the method is defined on. - Alternatively, a target instance method may be specified, by setting the - property as the target object, and - the property as the name of the - method to call on that target object. Arguments for the method invocation may be - specified by setting the property. -

-

- Another (esoteric) use case for this factory object is when one needs to call a method - that doesn't return any value (for example, a class method to - force some sort of initialization to happen)... this use case is not supported by - factory-methods, since a return value is needed to become the object. -

-

- - This class depends on the - - method being called after all properties have been set, as per the - contract. If you are - using this class outside of a Spring.NET IoC container, you must call one of either - or - yourself to ready the object's internal - state, or you will get a nasty . - -

-
- -

- The following example uses an instance of this class to call a - factory method... -

- - - - - - - - 1st - 2nd - and 3rd arguments - - - - -

- The following example is similar to the preceding example; the only pertinent difference is the fact that - a number of different objects are passed as arguments, demonstrating that not only simple value types - are valid as elements of the argument list... -

- - - - - - - - - - - 1st - - - - - - - http://www.springframework.net/ - - - - - -

- Named parameters are also supported... this next example yields the same results as - the preceding example (that did not use named arguments). -

- - - - - - - - - - 1st - and 3rd arguments - 2nd - - - - -

- Similarly, the following example uses an instance of this class to call an instance method... -

- - - - - - - - - -

- The above example could also have been written using an anonymous inner object definition... if the - object on which the method is to be invoked is not going to be used outside of the factory object - definition, then this is the preferred idiom because it limits the scope of the object on which the - method is to be invoked to the surrounding factory object. -

- - - - - - - - - - Colin Sampaleanu - Juergen Hoeller - Rick Evans (.NET) - Simon White (.NET) - $Id: MethodInvokingFactoryObject.cs,v 1.15 2007/03/16 04:01:38 aseovic Exp $ - - - - - - Interface to be implemented by objects used within an - that are themselves - factories. - - -

- If an object implements this interface, it is used as a factory, - not directly as an object. s - can support singletons and prototypes - ()... - please note that an - itself can only ever be a singleton. It is a logic error to configure an - itself to be a prototype. -

- - An object that implements this interface cannot be used as a normal object. - -
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: IFactoryObject.cs,v 1.6 2006/04/09 07:18:48 markpollack Exp $ -
- - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - - If this method is being called in the context of an enclosing IoC container and - returns , the IoC container will consider this factory - object as not being fully initialized and throw a corresponding (and most - probably fatal) exception. - - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - Return the of object that this - creates, or - if not known in advance. - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - Defines a simple initialization callback for objects that need to to some - post-initialization logic after all of their dependencies have been injected. - - -

- An implementation of the - - method might perform some additional custom initialization (over and above that - performed by the constructor), or merely check that all mandatory properties - have been set (this last example is a very typical use case of this interface). -

- - The use of the - interface - by non-Spring.NET framework code can be avoided (and is generally - discouraged). The Spring.NET container provides support for a generic - initialization method given to the object definition in the object - configuration store (be it XML, or a database, etc). This requires - slightly more configuration (one attribute-value pair in the case of - XML configuration), but removes any dependency on Spring.NET from the - class definition. - -
- Rod Johnson - Rick Evans (.NET) - $Id: IInitializingObject.cs,v 1.8 2006/04/09 07:18:48 markpollack Exp $ - -
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - -

- Returns the return value of the method that is to be invoked. -

-

- Will return the same value each time if the - - property value is . -

-
- - An instance (possibly shared or independent) of the object managed by - this factory. - - -
- - - Prepares this method invoker. - - - If all required properties are not set. - - - If the specified method could not be found. - - - - - - If a singleton should be created, or a new object on each request. - Defaults to . - - - - - Return the return value of the method - that this factory invokes, or if not - known in advance. - - -

- If the return value of the method that this factory is to invoke is - , then the - will be returned (in accordance with the - contract that - treats a value as a configuration error). -

-
- -
- - - SPI interface to be implemented by most if not all listable object factories. - - -

- Allows for framework-internal plug'n'play, e.g. in - . -

-
- Juergen Hoeller - Rick Evans (.NET) -
- - - Extension of the interface - to be implemented by object factories that can enumerate all their object instances, - rather than attempting object lookup by name one by one as requested by clients. - - -

- implementations that preload - all their objects (for example, DOM-based XML factories) may implement this - interface. This interface is discussed in - "Expert One-on-One J2EE Design and Development", by Rod Johnson. -

-

- If this is an , - the return values will not take any - hierarchy into account, but - will relate only to the objects defined in the current factory. - Use the helper class to - get all objects. -

-

- With the exception of - , - the methods and properties in this interface are not designed for frequent - invocation. Implementations may be slow. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: IListableObjectFactory.cs,v 1.12 2007/07/29 19:39:27 markpollack Exp $ -
- - - The root interface for accessing a Spring.NET IoC container. - - -

- This is the basic client view of a Spring.NET IoC container; further interfaces - such as and - - are available for specific purposes such as enumeration and configuration. -

-

- This is the root interface to be implemented by objects that can hold a number - of object definitions, each uniquely identified by a - name. An independent instance of any of these objects can be obtained - (the Prototype design pattern), or a single shared instance can be obtained - (a superior alternative to the Singleton design pattern, in which the instance is a - singleton in the scope of the factory). Which type of instance - will be returned depends on the object factory configuration - the API is the same. - The Singleton approach is more useful and hence more common in practice. -

-

- The point of this approach is that the IObjectFactory is a central registry of - application components, and centralizes the configuring of application components - (no more do individual objects need to read properties files, for example). - See chapters 4 and 11 of "Expert One-on-One J2EE Design and Development" for a - discussion of the benefits of this approach. -

-

- Normally an IObjectFactory will load object definitions stored in a configuration - source (such as an XML document), and use the - namespace to configure the objects. However, an implementation could simply return - .NET objects it creates as necessary directly in .NET code. There are no - constraints on how the definitions could be stored: LDAP, RDBMS, XML, properties - file etc. Implementations are encouraged to support references amongst objects, - to either Singletons or Prototypes. -

-

- In contrast to the methods in - , all of the methods - in this interface will also check parent factories if this is an - . If an object is - not found in this factory instance, the immediate parent is asked. Objects in - this factory instance are supposed to override objects of the same name in any - parent factory. -

-

- Object factories are supposed to support the standard object lifecycle interfaces - as far as possible. The maximum set of initialization methods and their standard - order is: -

-

- - - - 's - property. - - - - - 's - property. - - - - - - (only applicable if running within an ). - - - - - The - - method of - s. - - - - - 's - method. - - - - - A custom init-method definition. - - - - - The - - method of - s. - - - -

-

-

- On shutdown of an object factory, the following lifecycle methods apply: -

-

- - - - 's - method. - - - - - A custom destroy-method definition. - - - -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: IObjectFactory.cs,v 1.17 2007/07/30 15:41:32 markpollack Exp $ -
- - - Is this object a singleton? - - -

- That is, will - always return the same object? -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to query. - True if the named object is a singleton. - - If there's no such object definition. - -
- - - Determines whether the specified object name is prototype. That is, will GetObject - always return independent instances? - - This method returning false does not clearly indicate a singleton object. - It indicated non-independent instances, which may correspond to a scoped object as - well. use the IsSingleton property to explicitly check for a shared - singleton instance. - Translates aliases back to the corresponding canonical object name. Will ask the - parent factory if the object can not be found in this factory instance. - - - - The name of the object to query - - true if the specified object name will always deliver independent instances; otherwise, false. - - if there is no object with the given name. - - - - Does this object factory contain an object with the given name? - - -

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to query. - True if an object with the given name is defined. -
- - - Return the aliases for the given object name, if defined. - - -

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The object name to check for aliases. - The aliases, or an empty array if none. - - If there's no such object definition. - -
- - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - -
- - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. If there is no factory method and the - arguments are not null, then match the argument values by type and - call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the supplied is . - -
- - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - - The the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , then - match the argument values by type and call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - - - If the supplied is . - - - - - - Return an instance (possibly shared or independent) of the given object name. - - -

- Provides a measure of type safety by throwing an exception if the object is - not of the required . -

-

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - - the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - -
- - - Determine the type of the object with the given name. - - -

- More specifically, checks the type of object that - would return. - For an , returns the type - of object that the creates. -

-
- The name of the object to query. - - The type of the object or if not determinable. - -
- - - Determines whether the object with the given name matches the specified type. - - More specifically, check whether a GetObject call for the given name - would return an object that is assignable to the specified target type. - Translates aliases back to the corresponding canonical bean name. - Will ask the parent factory if the bean cannot be found in this factory instance. - - The name of the object to query. - Type of the target to match against. - - true if the object type matches; otherwise, false - if it doesn't match or cannot be determined yet. - - Ff there is no object with the given name - - - - - Injects dependencies into the supplied instance - using the named object definition. - - -

- In addition to being generally useful, typically this method is used to provide - dependency injection functionality for objects that are instantiated outwith the - control of a developer. A case in point is the way that the current (1.1) - ASP.NET classes instantiate web controls... the instantiation takes place within - a private method of a compiled page, and thus cannot be hooked into the - typical Spring.NET IOC container lifecycle for dependency injection. -

-
- - The following code snippet assumes that the instantiated factory instance - has been configured with an object definition named - 'ExampleNamespace.BusinessObject' that has been configured to set the - Dao property of any ExampleNamespace.BusinessObject instance - to an instance of an appropriate implementation... - - namespace ExampleNamespace - { - public class BusinessObject - { - private IDao _dao; - - public BusinessObject() {} - - public IDao Dao - { - get { return _dao; } - set { _dao = value; } - } - } - } - - with the corresponding driver code looking like so... - - IObjectFactory factory = GetAnIObjectFactoryImplementation(); - BusinessObject instance = new BusinessObject(); - factory.ConfigureObject(instance, "object_definition_name"); - // at this point the dependencies for the 'instance' object will have been resolved... - - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - If there is no object definition for the supplied . - - - If any of the target object's dependencies could not be created. - -
- - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-

- This is the indexer for the - interface. -

-
- The name of the object to return. - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - -
- - - Check if this object factory contains an object definition with the given name. - - -

- Does not consider any hierarchy this factory may participate in. -

- - Ignores any singleton objects that have been registered by other means - than object definitions. - -
- The name of the object to look for. - - if this object factory contains an object - definition with the given name. - -
- - - Return the names of all objects defined in this factory. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - -

- Does consider objects created by s, - or rather it considers the type of objects created by - (which means that - s will be instantiated). -

-

- Does not consider any hierarchy this factory may participate in. -

-
- - The (class or interface) to match, or - for all object names. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - -
- - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - -

- Does consider objects created by s, - or rather it considers the type of objects created by - (which means that - s will be instantiated). -

-

- Does not consider any hierarchy this factory may participate in. -

-
- - The (class or interface) to match, or - for all object names. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - -
- - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - -

- This version of the - method matches all kinds of object definitions, be they singletons, prototypes, or - s. Typically, the results - of this method call will be the same as a call to - IListableObjectFactory.GetObjectsOfType(type,true,true) . -

-
- - The (class or interface) to match. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - -
- - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - - The (class or interface) to match. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - - - - - Return the number of objects defined in the factory. - - - The number of objects defined in the factory. - - - - - Configuration interface to be implemented by most if not all object - factories. - - -

- Provides the means to configure an object factory in addition to the - object factory client methods in the - interface. -

-

- Allows for framework-internal plug'n'play even when needing access to object - factory configuration methods. -

-

- When disposed, it will destroy all cached singletons in this factory. Call - when you want to shutdown - the factory. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IConfigurableObjectFactory.cs,v 1.14 2007/07/16 21:06:21 markpollack Exp $ -
- - - Sub-interface implemented by object factories that can be part - of a hierarchy. - - Rod Johnson - Rick Evans (.NET) - $Id: IHierarchicalObjectFactory.cs,v 1.6 2006/04/09 07:18:48 markpollack Exp $ - - - - Return the parent object factory, or - if this factory does not have a parent. - - - The parent object factory, or - if this factory does not have a parent. - - - - - Ignore the given dependency type for autowiring. - - -

- To be invoked during factory configuration. -

-

- This will typically be used for dependencies that are resolved - in other ways, like - through . -

-
- - The to be ignored. - -
- - - Determines whether the specified object name is currently in creation.. - - Name of the object. - - true if the specified object name is currently in creation; otherwise, false. - - - - - Add a new - that will get applied to objects created by this factory. - - -

- To be invoked during factory configuration. -

-
- - The - to register. - -
- - - Given an object name, create an alias. - - -

- This is typically used to support names that are illegal within - XML ids (which are used for object names). -

-

- Typically invoked during factory configuration, but can also be - used for runtime registration of aliases. Therefore, a factory - implementation should synchronize alias access. -

-
- The name of the object. - - - The alias that will behave the same as the object name. - - - If there is no object with the given name. - - - If the alias is already in use. - -
- - - Register the given existing object as singleton in the object factory, - under the given object name. - - -

- Typically invoked during factory configuration, but can also be - used for runtime registration of singletons. Therefore, a factory - implementation should synchronize singleton access; it will have - to do this anyway if it supports lazy initialization of singletons. -

-
- - The name of the object. - - The existing object. - - If the singleton could not be registered. - -
- - - Register the given custom - for all properties of the given . - - -

- To be invoked during factory configuration. -

-
- - The required of the property. - - - The to register. - -
- - - Does this object factory contains a singleton instance with the - supplied ? - - -

- Only checks already instantiated singletons; does not return - for singleton object definitions that have - not been instantiated yet. -

-

- The main purpose of this method is to check manually registered - singletons (). This - method can also be used to check whether a singleton defined by an - object definition has already been created. -

-

- To check whether an object factory contains an object definition - with a given name, use the - - method. Calling both - - and definitively answers - the question of whether a specific object factory contains a - singleton object with the given name. -

-

- Use the - - method for general checks as to whether a factory knows about an - object with a given name (regrdless of whether the object in - question is a manually registed singleton instance or created by - an object definition)... this also has the happy bonus of also - checking any ancestor factories. -

-
- - The name of the (singleton) object to look for. - - - if this object factory contains a singleton - instance with the given . - - - -
- - - Set the parent of this object factory. - - -

- Note that the parent shouldn't be changed: it should only be set outside - a constructor if it isn't available when an object of this class is - created. -

-
-
- - - Returns the current number of registered - s. - - - The current number of registered - s. - - - - - Extension of the - interface to be implemented by object factories that are capable of - autowiring and expose this functionality for existing object instances. - - Juergen Hoeller - Rick Evans (.NET) - - - - Create a new object instance of the given class with the specified - autowire strategy. - - - The of the object to instantiate. - - - The desired autowiring mode. - - - Whether to perform a dependency check for objects (not applicable to - autowiring a constructor, thus ignored there). - - The new object instance. - - If the wiring fails. - - - - - - Autowire the object properties of the given object instance by name or - . - - - The existing object instance. - - - The desired autowiring mode. - - - Whether to perform a dependency check for the object. - - - If the wiring fails. - - - - - - Apply s - to the given existing object instance, invoking their - - methods. - - -

- The returned object instance may be a wrapper around the original. -

-
- - The existing object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - If any post-processing failed. - - -
- - - Apply s - to the given existing object instance, invoking their - - methods. - - -

- The returned object instance may be a wrapper around the original. -

-
- - The existing object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - If any post-processing failed. - - -
- - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - Whether to search parent object factories. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Injects dependencies into the supplied instance - using the supplied . - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - An object definition that should be used to configure object. - - - - - - Ensure that all non-lazy-init singletons are instantiated, also - considering s. - - -

- Typically invoked at the end of factory setup, if desired. -

-

- As this is a startup method, it should destroy already created singletons if - it fails, to avoid dangling resources. In other words, after invocation - of that method, either all or no singletons at all should be - instantiated. -

-
- - If one of the singleton objects could not be created. - -
- - - Holder for event handler values for an object. - - Rick Evans (.NET) - $Id: EventValues.cs,v 1.8 2007/03/16 04:01:38 aseovic Exp $ - - - - The empty array of s. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The - to be used to populate this instance. - - - - - Copy all given argument values into this object. - - - The - to be used to populate this instance. - - - - - Adds the supplied handler to the collection of event handlers. - - The handler to be added. - - - - The mapping of event names to an - of - s. - - - - - Gets the of events - that have handlers associated with them. - - - - - Gets the of - s for the supplied - event name. - - - - - Various utility methods for .NET style .config files. - - -

- Currently supports reading custom configuration sections and returning them as - objects. -

-
- Simon White - Mark Pollack - $Id: ConfigurationReader.cs,v 1.18 2007/08/08 17:47:13 bbaia Exp $ -
- - - Reads the specified configuration section into a - . - - The resource to read. - The section name. - - A newly populated - . - - - If any errors are encountered while attempting to open a stream - from the supplied . - - - If any errors are encountered while loading or reading (this only applies to - v1.1 and greater of the .NET Framework) the actual XML. - - - If any errors are encountered while loading or reading (this only applies to - v1.0 of the .NET Framework). - - - If the configuration section was otherwise invalid. - - - - - Reads the specified configuration section into the supplied - . - - The resource to read. - The section name. - - The collection that is to be populated. May be - . - - - A newly populated - . - - - If any errors are encountered while attempting to open a stream - from the supplied . - - - If any errors are encountered while loading or reading (this only applies to - v1.1 and greater of the .NET Framework) the actual XML. - - - If any errors are encountered while loading or reading (this only applies to - v1.0 of the .NET Framework). - - - If the configuration section was otherwise invalid. - - - - - Reads the specified configuration section into the supplied - . - - The resource to read. - The section name. - - The collection that is to be populated. May be - . - - - If a key already exists, is its value to be appended to the current - value or replaced? - - - The populated - . - - - If any errors are encountered while attempting to open a stream - from the supplied . - - - If any errors are encountered while loading or reading (this only applies to - v1.1 and greater of the .NET Framework) the actual XML. - - - If any errors are encountered while loading or reading (this only applies to - v1.0 of the .NET Framework). - - - If the configuration section was otherwise invalid. - - - - - Read from the specified configuration from the supplied XML - into a - . - - - - Does not support section grouping. The supplied XML - must already be loaded. - - - - The to read from. - - - The configuration section name to read. - - - A newly populated - . - - - If any errors are encountered while reading (this only applies to - v1.1 and greater of the .NET Framework). - - - If any errors are encountered while reading (this only applies to - v1.0 of the .NET Framework). - - - If the configuration section was otherwise invalid. - - - - - Populates the supplied with values from - a .NET application configuration file. - - - The - to add any key-value pairs to. - - - The configuration section name in the a .NET application configuration - file. - - - If a key already exists, is its value to be appended to the current - value or replaced? - - - if the supplied - was found. - - - - - Creates a new instance of the ConfigurationReader class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - Utility class to aid in the manipulation of events and delegates. - - Griffin Caprio - $Id: EventManipulationUtils.cs,v 1.3 2007/07/31 01:35:12 markpollack Exp $ - - - - Returns a new instance of the requested . - - -

- Often used to wire subscribers to event publishers. -

-
- - The of delegate to create. - - - The target subscriber object that contains the delegate implementation. - - - referencing the delegate method on the subscriber. - - - A delegate handler that can be added to an events list of handlers, or called directly. - -
- - - Queries the input type for a signature matching the input - signature. - - - Typically used to query a potential subscriber to see if they implement an event handler. - - to match against - to query - - matching input - signature, or if there is no match. - - - - - Creates a new instance of the EventManipulationUtilities class. - - -

- This is a utility class, and as such has no publicly visible constructors. -

-
-
- - - Represents parsed indexer node in the navigation expression. - - Aleksandar Seovic - $Id: IndexerNode.cs,v 1.16 2007/09/07 03:01:26 markpollack Exp $ - - - - Base type for nodes that accept arguments. - - Aleksandar Seovic - $Id: NodeWithArguments.cs,v 1.15 2007/09/07 03:01:26 markpollack Exp $ - - - - Base type for all expression nodes. - - Aleksandar Seovic - $Id: BaseNode.cs,v 1.24 2007/09/07 03:01:21 markpollack Exp $ - - - - For internal purposes only. Use for expression node implementations. - - - This class is only required to enable serialization of parsed Spring expressions since antlr.CommonAST - unfortunately is not marked as [Serializable].
-
- Note:Since SpringAST implements , deriving classes - have to explicitely override if they need to persist additional - data during serialization. -
-
- - - The global SpringAST node factory - - - - - Create an instance - - - - - Create an instance from a token - - - - - initialize this instance from an AST - - - - - initialize this instance from an IToken - - - - - initialize this instance from a token type number and a text - - - - - sets the text of this node - - - - - gets the text of this node - - - - - Create a new instance from SerializationInfo - - - - - populate SerializationInfo from this instance - - - - - gets or sets the token type of this node - - - - - gets or sets the text of this node - - - - - Interface that all navigation expression nodes have to implement. - - Aleksandar Seovic - $Id: IExpression.cs,v 1.5 2007/07/31 08:18:20 markpollack Exp $ - - - - Returns expression value. - - Value of the expression. - - - - Returns expression value. - - Object to evaluate expression against. - Value of the expression. - - - - Returns expression value. - - Object to evaluate expression against. - Expression variables map. - Value of the expression. - - - - Sets expression value. - - Object to evaluate expression against. - New value for the last node of the expression. - - - - Sets expression value. - - Object to evaluate expression against. - Expression variables map. - New value for the last node of the expression. - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns node's value. - - Node's value. - - - - Returns node's value for the given context. - - Object to evaluate node against. - Node's value. - - - - Returns node's value for the given context. - - Object to evaluate node against. - Expression variables map. - Node's value. - - - - This is the entrypoint into evaluating this expression. - - - - - Called internally during expression evaluation - - Object to evaluate node against. - Current expression evaluation context. - - - - - Returns node's value for the given context. - - Node's value. - - - - Sets node's value for the given context. - - Object to evaluate node against. - New value for this node. - - - - Sets node's value for the given context. - - Object to evaluate node against. - Expression variables map. - New value for this node. - - - - This is the entrypoint into evaluating this expression. - - - - - Called internally during expression evaluation. - - - - - Sets node's value for the given context. - - -

- This is a default implementation of Set method, which - simply throws . -

-

- This was done in order to avoid redundant Set method implementations, - because most of the node types do not support value setting. -

-
-
- - - Returns a string representation of this node instance. - - - - - Holds the state during evaluating an expression. - - - - - Gets/Sets the root context of the current evaluation - - - - - Gets/Sets the current context of the current evaluation - - - - - Gets/Sets global variables of the current evaluation - - - - - Gets/Sets local variables of the current evaluation - - - - - Initializes a new EvaluationContext instance. - - The root context for this evaluation - dictionary of global variables used during this evaluation - - - - Switches current ThisContext. - - - - - Switches current LocalVariables. - - - - - Gets the type of the - - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Initializes the node. - - - - - Asserts the argument count. - - The required count. - - - - Resolves the arguments. - - Current expression evaluation context. - An array of argument values - - - - Resolves the named arguments. - - Current expression evaluation context. - A dictionary of argument name to value mappings. - - - - Resolves the argument. - - Argument position. - Current expression evaluation context. - Resolved argument value. - - - - Resolves the named argument. - - Argument name. - Current expression evaluation context. - Resolved named argument value. - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Sets node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - - - - Utility method that is needed by ObjectWrapper and AbstractAutowireCapableObjectFactory. - - Context to resolve property against. - Expression variables map. - PropertyInfo for this node. - - - - Represents logical MATCHES operator. - - Aleksandar Seovic - $Id: OpMatches.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Base class for unary operators. - - Aleksandar Seovic - $Id: BinaryOperator.cs,v 1.8 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Gets the left operand. - - The left operand. - - - - Gets the right operand. - - The right operand. - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical MATCHES operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - - true if the left operand matches the right operand, false otherwise. - - - - - Represents parsed variable node. - - Aleksandar Seovic - $Id: LocalVariableNode.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns value of the local variable represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Sets value of the local variable represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - - - - Defines an interface that should be implemented - by all collection processors and aggregators. - - - - - Processes a list of source items and returns a result. - - - The source list to process. - - - An optional processor arguments array. - - - The processing result. - - - - - Reverts order of elements in the list - - Erich Eichinger - $Id: ReverseProcessor.cs,v 1.1 2008/03/20 23:58:16 oakinger Exp $ - - - - Processes a list of source items and returns a result. - - - The source list to process. - - - An optional processor arguments array. - - - The processing result. - - - - - Represents parsed default node in the navigation expression. - - Aleksandar Seovic - $Id: DefaultNode.cs,v 1.3 2007/09/07 03:01:24 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns left operand if it is not null, or the right operand if it is. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Exception thrown on a mismatch when trying to set a property - or resolve an argument to a method invocation. - - Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - $Id: TypeMismatchException.cs,v 1.1 2007/07/31 00:08:42 markpollack Exp $ - - - - Superclass for exceptions related to a property access, such as a - mismatch or a target invocation exception. - - Rod Johnson - Mark Pollack (.NET) - $Id: PropertyAccessException.cs,v 1.2 2007/07/31 03:47:22 markpollack Exp $ - - - - Superclass for all exceptions thrown in the Objects namespace and sub-namespaces. - - Rod Johnson - Mark Pollack (.NET) - $Id: ReflectionException.cs,v 1.1 2007/07/31 03:47:23 markpollack Exp $ - - - - Creates a new instance of the ObjectsException class. - - - - Creates a new instance of the ObjectsException class. with the specified message. - - - A message about the exception. - - - - - Creates a new instance of the ObjectsException class with the specified message - and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectsException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Interface that can be implemented by exceptions etc that are error coded. - - -

- The error code is a , rather than a number, so it can - be given user-readable values, such as "object.failureDescription". -

-
- Rod Johnson - Aleksandar Seovic (.Net) - $Id: IErrorCoded.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ -
- - - Return the error code associated with this failure. - - -

- The GUI can render this anyway it pleases, allowing for I18n etc. -

-
- - The error code associated with this failure, - or the empty string instance if not error-coded. - -
- - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - Create a new instance of the PropertyAccessException class. - - - A message about the exception. - - Describes the change attempted on the property. - - - - Create a new instance of the PropertyAccessException class. - - - A message about the exception. - - Describes the change attempted on the property. - - The root exception that is being wrapped. - - - - - Creates a new instance of the PropertyAccessException class. - - - - - Creates a new instance of the PropertyAccessException class. - - - A message about the exception. - - - - - Creates a new instance of the PropertyAccessExceptionsException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the PropertyAccessExceptionsException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Returns the PropertyChangeEventArgs that resulted in the problem. - - - - - The string error code used to classify the error. - - - - - Creates a new instance of the TypeMismatchException class. - - - - - Creates a new instance of the TypeMismatchException class. - - - A message about the exception. - - - - - Creates a new instance of the TypeMismatchException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the TypeMismatchException class describing the - property and required type that could not used to set a property on the target object. - - - The description of the property that was to be changed. - - The target conversion type. - - - - Creates a new instance of the TypeMismatchException class describing the - property, required type, and underlying exception that could not be used - to set a property on the target object. - - - The description of the property that was to be changed. - - The target conversion type. - The underlying exception. - - - - Creates a new instance of the TypeMismatchException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - The string error code used to classify the exception. - - - - - Criteria that is satisfied if the of each of the - parameters of a given matches each - of the parameter s of a given - . - - -

- If no array is passed to the overloaded constructor, - any method that has no parameters will satisfy an instance of this - class. The same effect could be achieved by passing the - array to the overloaded constructor. -

-
- Rick Evans - $Id: MethodParametersCriteria.cs,v 1.2 2007/09/20 14:20:46 bbaia Exp $ -
- - - The criteria for an arbitrary filter. - - Rick Evans - $Id: ICriteria.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ - - - - Does the supplied satisfy the criteria - encapsulated by this instance? - - - The datum to be checked by this criteria instance. - - - if the supplied - satisfies the criteria encapsulated by this instance; - if not, or the supplied - is . - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - -

- If the supplied array is null, then this - constructor uses the array. -

-
- - The array that this criteria will use to - check parameter s. - -
- - - Does the supplied satisfy the criteria encapsulated by - this instance? - - -

- This implementation respects the inheritance chain of any parameter - s... i.e. methods that have a base type (or - interface) that is assignable to the in the - same corresponding index of the parameter types will satisfy this - criteria instance. -

-
- The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - -
- - - Configuration section handler for the Spring.NET typeAliases - config section. - - -

- Type aliases can be used instead of fully qualified type names anywhere - a type name is expected in a Spring.NET configuration file. -

-

- This includes type names specified within an object definition, as well - as values of the properties or constructor arguments that expect - instances. -

-
- -

- The following example shows how to configure both this section handler and - how to define type aliases within a Spring.NET config section: -

- - - - -
- - - - - - - ... - - ... - - - - - Aleksandar Seovic - $Id: TypeAliasesSectionHandler.cs,v 1.8 2007/07/31 18:15:50 bbaia Exp $ - - - - - Populates using values specified in - the typeAliases config section. - - - The configuration settings in a corresponding parent - configuration section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - This method always returns , because the - is populated as a side-effect of this - object's execution and thus there is no need to return anything. - - - - - Handler for Spring.NET resourceHandlers config section. - - -

- Spring allows registration of custom resource handlers that can be used to load - object definitions from. -

-

- For example, if you wanted to store your object definitions in a database instead - of in the config file, you could write a custom implementation - and register it with Spring using 'db' as a protocol name. -

-

- Afterwards, you would simply specify resource URI within the context config element - using your custom resource handler. -

-
- -

- The following example shows how to configure both this section handler, - how to define custom resource within Spring config section, and how to load - object definitions using custom resource handler: -

- - - - -
- - - - - - - - - - - - - - Aleksandar Seovic - $Id: ResourceHandlersSectionHandler.cs,v 1.3 2007/08/08 17:46:37 bbaia Exp $ - - - - - Registers resource handlers that are specified in - the resources config section with the . - - - The configuration settings in a corresponding parent - configuration section. Ignored. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - This method always returns null, because resource handlers are registered - as a sideffect of its execution and there is no need to return anything. - - - - - Provides the means to configure an application context in addition to - the methods exposed on the - interface. - - -

- This interface is to be implemented by most (if not all) - implementations. -

-

- Configuration and lifecycle methods are encapsulated here to avoid - making them obvious to - client code. -

-

- Calling will close this - application context, releasing all resources and locks that the - implementation might hold. This includes disposing all cached - singleton objects. -

- - does not invoke the - attendant on any parent - context. - -
- Juergen Hoeller - Mark Pollack (.NET) - $Id: IConfigurableApplicationContext.cs,v 1.10 2006/04/09 07:18:38 markpollack Exp $ - - -
- - - The central interface to Spring.NET's IoC container. - - -

- implementations - provide: - - - - Object factory functionality inherited from the - - and - interfaces. - - - - - The ability to resolve messages, supporting internationalization. - Inherited from the - interface. - - - - - The ability to load file resources in a generic fashion. - Inherited from the - interface. - - - - - Acts an an event registry for supporting loosely coupled eventing - between objecs. Inherited from the - interface. - - - - - The ability to raise events related to the context lifecycle. Inherited - from the - interface. - - - - - Inheritance from a parent context. Definitions in a descendant context - will always take priority. - - - -

-

- In addition to standard object factory lifecycle capabilities, - implementations need - to detect - , - , and - objects and supply - their attendant dependencies accordingly. -

-

- This interface is the central client interface in Spring.NET's IoC - container implementation. As such it does inherit a quite sizeable - number of interfaces; implementations are strongly encouraged to use - composition to satisfy each of the inherited interfaces (where - appropriate of course). -

-
- Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - - - - - $Id: IApplicationContext.cs,v 1.15 2007/08/08 17:46:37 bbaia Exp $ -
- - - Describes an object that can resolve messages. - - -

- This enables the parameterization and internationalization of messages. -

-

- Spring.NET provides one out-of-the-box implementation for production - use: -

    -
  • .
  • -
-

-
- Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - Aleksandar Seovic (.NET) - $Id: IMessageSource.cs,v 1.13 2007/07/02 21:24:39 markpollack Exp $ - -
- - - Resolve the message identified by the supplied - . - - -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- - - Throw an exception. - - - - Return the supplied as is. - - - -
- The name of the message to resolve. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - -
- - - Resolve the message identified by the supplied - . - - -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- - - Throw an exception. - - - - Return the supplied as is. - - - -
- The name of the message to resolve. - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - -
- - - Resolve the message identified by the supplied - . - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- - - Throw an exception. - - - - Return the supplied as is. - - - -
- The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - -
- - - Resolve the message identified by the supplied - . - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- - - Throw an exception. - - - - Return the supplied as is. - - - -
- The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - -
- - - Resolve the message identified by the supplied - . - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- - - Throw an exception. - - - - Return the supplied as is. - - - -
- The name of the message to resolve. - The default message if name is not found. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - -
- - - Resolve the message using all of the attributes contained within - the supplied - argument. - - - The value object storing those attributes that are required to - properly resolve a message. - - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - Gets a localized resource object identified by the supplied - . - - -

- This method must use the - - value to obtain a resource. -

-

- Examples of resources that may be resolved by this method include - (but are not limited to) objects such as icons and bitmaps. -

-
- - The name of the resource object to resolve. - - - The resolved object, or if not found. - -
- - - Gets a localized resource object identified by the supplied - . - - -

- Examples of resources that may be resolved by this method include - (but are not limited to) objects such as icons and bitmaps. -

-
- - The name of the resource object to resolve. - - - The with which the - resource is associated. - - - The resolved object, or if not found. - -
- - - Applies resources to object properties. - - -

- Resource key names are of the form objectName.propertyName. -

-
- - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - -
- - - Encapsulates event publication functionality. - - -

- Serves as a super-interface for the - interface. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IApplicationEventPublisher.cs,v 1.2 2006/04/09 07:18:38 markpollack Exp $ -
- - - Publishes an application context event. - - - The source of the event. May be . - - - The event that is to be raised. - - - - - Describes an object that can load - s. - - -

- An implementation is - generally required to support the functionality described by this - interface. -

-

- The class is a - standalone implementation that is usable outside an - ; the aforementioned - class is also used by the - class. -

-
- Juergen Hoeller - Mark Pollack (.NET) - $Id: IResourceLoader.cs,v 1.12 2007/08/08 17:46:55 bbaia Exp $ - - - -
- - - Return an handle for the - specified resource. - - -

- The handle should always be a reusable resource descriptor; this - allows one to make repeated calls to the underlying - . -

-

-

    -
  • - Must support fully qualified URLs, e.g. "file:C:/test.dat". -
  • -
  • - Should support relative file paths, e.g. "test.dat" (this will be - implementation-specific, typically provided by an - implementation). -
  • -
-

- - An handle does not imply an - existing resource; you need to check the value of an - 's - property to determine - conclusively whether or not the resource actually exists. - -
- The resource location. - - An appropriate handle. - - - - -
- - - A registry that manages subscriptions to and the - publishing of events. - - Griffin Caprio - $Id: IEventRegistry.cs,v 1.5 2006/04/09 07:18:47 markpollack Exp $ - - - - Publishes all events of the source object. - - - The source object containing events to publish. - - - - - Subscribes to all events published, if the subscriber - implements compatible handler methods. - - The subscriber to use. - - - - Subscribes to the published events of all objects of a given - , if the subscriber implements - compatible handler methods. - - The subscriber to use. - - The target to subscribe to. - - - - - Raised in response to an application context event. - - - - - Returns the date and time this context was loaded. - - -

- This is to be set immediately after an - has been - instantiated and its configuration has been loaded. Implementations - are permitted to update this value if the context is reset or - refreshed in some way. -

-
- - The representing when this context - was loaded. - - -
- - - Gets the parent context, or if there is no - parent context. - - -

- If the parent context is , then this context - is the root of any context hierarchy. -

-
- - The parent context, or if there is no - parent. - -
- - - Gets and sets a name for this context. - - - A name for this context. - - - - - Add an - - that will get applied to the internal object factory of this - application context on refresh, before any of the object - definitions are evaluated. - - -

- To be invoked during context configuration. -

-
- - The factory processor to register. - - -
- - - Load or refresh the persistent representation of the configuration, - which might an XML file, properties file, or relational database schema. - - - If the configuration cannot be loaded. - - - If the object factory could not be initialized. - - - - - Return the internal object factory of this application context. - - -

- Can be used to access specific functionality of the factory. -

- - This is just guaranteed to return an instance that is not - after the context has been refreshed - at least once. - - - Do not use this to post-process the object factory; singletons - will already have been instantiated. Use an - - to intercept the object factory setup process before objects even - get touched. - -
- -
- - - Sets the parent of this application context. - - - - The parent should not be changed: it should only be set - outside a constructor if it isn't available when an instance of - this class is created. - - - - The parent context. - - - - - Implements an immutable (read-only) - wrapper. - - -

- Although this class is advertised as immutable, it really isn't. - Anyone with access to the wrapped - can still change the data. So - is not implemented for this , as - is the case for all - implementations in this library. This design decision was based on the - efficiency of not having to clone the wrapped - every time you wrap a mutable - . -

-
- $Id: ImmutableSet.cs,v 1.6 2007/03/16 04:01:28 aseovic Exp $ -
- - - A collection that contains no duplicate elements. - - - $Id: Set.cs,v 1.7 2007/03/16 04:01:28 aseovic Exp $ - - - - A collection that contains no duplicate elements. - - -

- This interface models the mathematical - abstraction. The order of - elements in a set is dependant on (a)the data-structure implementation, and - (b)the implementation of the various - methods, and thus is not - guaranteed. -

-

- overrides the - method to test for "equivalency": - whether the two sets contain the same elements. The "==" and "!=" - operators are not overridden by design, since it is often desirable to - compare object references for equality. -

-

- Also, the method is not - implemented on any of the set implementations, since none of them are - truly immutable. This is by design, and it is the way almost all - collections in the .NET framework function. So as a general rule, don't - store collection objects inside - instances. You would typically want to use a keyed - instead. -

-

- None of the implementations in - this library are guaranteed to be thread-safe in any way unless wrapped - in a . -

-

- The following table summarizes the binary operators that are supported - by the class. -

- - - Operation - Description - Method - - - Union (OR) - - Element included in result if it exists in either A OR - B. - - Union() - - - Intersection (AND) - - Element included in result if it exists in both A AND - B. - - InterSect() - - - Exclusive Or (XOR) - - Element included in result if it exists in one, but not both, - of A and B. - - ExclusiveOr() - - - Minus (n/a) - - Take all the elements in A. Now, if any of them exist in - B, remove them. Note that unlike the other operators, - A - B is not the same as B - A. - - Minus() - - -
- $Id: ISet.cs,v 1.5 2006/04/09 07:18:37 markpollack Exp $ -
- - - Performs a "union" of the two sets, where all the elements - in both sets are present. - - -

- That is, the element is included if it is in either - or this set. Neither this set nor the input - set are modified during the operation. The return value is a - clone of this set with the extra elements added in. -

-
- A collection of elements. - - A new containing the union of - this with the specified - collection. Neither of the input objects is modified by the union. - -
- - - Performs an "intersection" of the two sets, where only the elements - that are present in both sets remain. - - -

- That is, the element is included if it exists in both sets. The - Intersect() operation does not modify the input sets. It - returns a clone of this set with the appropriate elements - removed. -

-
- A set of elements. - - The intersection of this set with . - -
- - - Performs a "minus" of this set from the - set. - - -

- This returns a set of all the elements in set - , removing the elements that are also in - this set. The original sets are not modified during this operation. - The result set is a clone of this - containing the elements from - the operation. -

-
- A set of elements. - - A set containing the elements from this set with the elements in - removed. - -
- - - Performs an "exclusive-or" of the two sets, keeping only those - elements that are in one of the sets, but not in both. - - -

- The original sets are not modified during this operation. The - result set is a clone of this set containing the elements - from the exclusive-or operation. -

-
- A set of elements. - - A set containing the result of - ^ this. - -
- - - Returns if this set contains the specified - element. - - The element to look for. - - if this set contains the specified element. - - - - - Returns if the set contains all the - elements in the specified collection. - - A collection of objects. - - if the set contains all the elements in the - specified collection. - - - - - Adds the specified element to this set if it is not already present. - - The object to add to the set. - - is the object was added, - if the object was already present. - - - - - Adds all the elements in the specified collection to the set if - they are not already present. - - A collection of objects to add to the set. - - is the set changed as a result of this - operation. - - - - - Removes the specified element from the set. - - The element to be removed. - - if the set contained the specified element. - - - - - Remove all the specified elements from this set, if they exist in - this set. - - A collection of elements to remove. - - if the set was modified as a result of this - operation. - - - - - Retains only the elements in this set that are contained in the - specified collection. - - - The collection that defines the set of elements to be retained. - - - if this set changed as a result of this - operation. - - - - - Removes all objects from this set. - - - - - Returns if this set contains no elements. - - - - - Performs a "union" of the two sets, where all the elements - in both sets are present. - - A collection of elements. - - A new containing the union of - this with the specified - collection. Neither of the input objects is modified by the union. - - - - - - Performs a "union" of two sets, where all the elements in both are - present. - - -

- That is, the element is included if it is in either - or . The return - value is a clone of one of the sets ( - if it is not ) with elements of the other set - added in. Neither of the input sets is modified by the operation. -

-
- A set of elements. - A set of elements. - - A set containing the union of the input sets; - if both sets are . - -
- - - Performs a "union" of two sets, where all the elements in both are - present. - - A set of elements. - A set of elements. - - A set containing the union of the input sets; - if both sets are . - - - - - - Performs an "intersection" of the two sets, where only the elements - that are present in both sets remain. - - A set of elements. - - The intersection of this set with . - - - - - - Performs an "intersection" of the two sets, where only the elements - that are present in both sets remain. - - -

- That is, the element is included only if it exists in both - and . Neither input - object is modified by the operation. The result object is a - clone of one of the input objects ( - if it is not ) containing the elements from - the intersect operation. -

-
- A set of elements. - A set of elements. - - The intersection of the two input sets; if - both sets are . - -
- - - Performs an "intersection" of the two sets, where only the elements - that are present in both sets remain. - - A set of elements. - A set of elements. - - The intersection of the two input sets; if - both sets are . - - - - - - Performs a "minus" of this set from the - set. - - A set of elements. - - A set containing the elements from this set with the elements in - removed. - - - - - - Performs a "minus" of set from set - . - - -

- This returns a set of all the elements in set - , removing the elements that are also in - set . The original sets are not modified - during this operation. The result set is a clone of set - containing the elements from the operation. -

-
- A set of elements. - A set of elements. - - A set containing - - elements. - if is - . - -
- - - Performs a "minus" of set from set - . - - A set of elements. - A set of elements. - - A set containing - - elements. - if is - . - - - - - - Performs an "exclusive-or" of the two sets, keeping only those - elements that are in one of the sets, but not in both. - - A set of elements. - - A set containing the result of - ^ this. - - - - - - Performs an "exclusive-or" of the two sets, keeping only those - elements that are in one of the sets, but not in both. - - -

- The original sets are not modified during this operation. The - result set is a clone of one of the sets ( - if it is not ) - containing the elements from the exclusive-or operation. -

-
- A set of elements. - A set of elements. - - A set containing the result of - ^ . - if both sets are . - -
- - - Performs an "exclusive-or" of the two sets, keeping only those - elements that are in one of the sets, but not in both. - - A set of elements. - A set of elements. - - A set containing the result of - ^ . - if both sets are . - - - - - - Adds the specified element to this set if it is not already present. - - The object to add to the set. - - is the object was added, - if the object was already present. - - - - - Adds all the elements in the specified collection to the set if - they are not already present. - - A collection of objects to add to the set. - - is the set changed as a result of this - operation. - - - - - Removes all objects from this set. - - - - - Returns if this set contains the specified - element. - - The element to look for. - - if this set contains the specified element. - - - - - Returns if the set contains all the - elements in the specified collection. - - A collection of objects. - - if the set contains all the elements in the - specified collection. - - - - - Removes the specified element from the set. - - The element to be removed. - - if the set contained the specified element. - - - - - Remove all the specified elements from this set, if they exist in - this set. - - A collection of elements to remove. - - if the set was modified as a result of this - operation. - - - - - Retains only the elements in this set that are contained in the - specified collection. - - - The collection that defines the set of elements to be retained. - - - if this set changed as a result of this - operation. - - - - - Returns a clone of the - instance. - - -

- This will work for derived - classes if the derived class implements a constructor that takes no - arguments. -

-
- A clone of this object. -
- - - Copies the elements in the to - an array. - - -

- The type of array needs to be compatible with the objects in the - , obviously. -

-
- - An array that will be the target of the copy operation. - - - The zero-based index where copying will start. - -
- - - Gets an enumerator for the elements in the - . - - - An over the elements - in the . - - - - - This method will test the - against another for - "equality". - - -

- In this case, "equality" means that the two sets contain the same - elements. The "==" and "!=" operators are not overridden by design. - If you wish to check for "equivalent" - instances, use - Equals(). If you wish to check to see if two references are - actually the same object, use "==" and "!=". -

-
- - A object to compare to. - - - if the two sets contain the same elements. - -
- - - Gets the hashcode for the object. - - - - - Returns if this set contains no elements. - - - - - The number of elements currently contained in this collection. - - - - - Returns if the - is synchronized across - threads. - - -

- Note that enumeration is inherently not thread-safe. Use the - to lock the object during enumeration. -

-
-
- - - An object that can be used to synchronize this collection to make - it thread-safe. - - -

- When implementing this, if your object uses a base object, like an - , or anything that has - a SyncRoot, return that object instead of "this". -

-
- - An object that can be used to synchronize this collection to make - it thread-safe. - -
- - - Constructs an immutable (read-only) - wrapper. - - - The that is to be wrapped. - - - - - Adds the specified element to this set if it is not already present. - - The object to add to the set. - - is the object was added, - if the object was already present. - - - - - - Adds all the elements in the specified collection to the set if - they are not already present. - - A collection of objects to add to the set. - - is the set changed as a result of this - operation. - - - - - - Removes all objects from this set. - - - - - - Returns if this set contains the specified - element. - - The element to look for. - - if this set contains the specified element. - - - - - Returns if the set contains all the - elements in the specified collection. - - A collection of objects. - - if the set contains all the elements in the - specified collection. - - - - - Removes the specified element from the set. - - The element to be removed. - - if the set contained the specified element. - - - - - - Remove all the specified elements from this set, if they exist in - this set. - - A collection of elements to remove. - - if the set was modified as a result of this - operation. - - - - - - Retains only the elements in this set that are contained in the - specified collection. - - - The collection that defines the set of elements to be retained. - - - if this set changed as a result of this - operation. - - - - - - Copies the elements in the to - an array. - - -

- The type of array needs to be compatible with the objects in the - , obviously. -

-
- - An array that will be the target of the copy operation. - - - The zero-based index where copying will start. - -
- - - Gets an enumerator for the elements in the - . - - - An over the elements - in the . - - - - - Returns a clone of the - instance. - - A clone of this object. - - - - Performs a "union" of the two sets, where all the elements - in both sets are present. - - A collection of elements. - - A new containing the union of - this with the specified - collection. Neither of the input objects is modified by the union. - - - - - - Performs an "intersection" of the two sets, where only the elements - that are present in both sets remain. - - A set of elements. - - The intersection of this set with . - - - - - - Performs a "minus" of this set from the - set. - - A set of elements. - - A set containing the elements from this set with the elements in - removed. - - - - - - Performs an "exclusive-or" of the two sets, keeping only those - elements that are in one of the sets, but not in both. - - A set of elements. - - A set containing the result of - ^ this. - - - - - - Returns if this set contains no elements. - - - - - The number of elements currently contained in this collection. - - - - - Returns if the - is synchronized across - threads. - - -

- Note that enumeration is inherently not thread-safe. Use the - to lock the object during enumeration. -

-
-
- - - An object that can be used to synchronize this collection to make - it thread-safe. - - - An object that can be used to synchronize this collection to make - it thread-safe. - - - - - is an - class that supports the creation of new - types where the underlying data - store is an instance. - - -

- You can use any object that implements the - interface to hold set - data. You can define your own, or you can use one of the objects - provided in the framework. The type of - you - choose will affect both the performance and the behavior of the - using it. -

-

- This object overrides the method, - but not the method, because - the class is mutable. - Therefore, it is not safe to use as a key value in a dictionary. -

-

- To make a typed based on your - own , simply derive a new - class with a constructor that takes no parameters. Some - implmentations cannot be defined - with a default constructor. If this is the case for your class, you - will need to override clone as well. -

-

- It is also standard practice that at least one of your constructors - takes an or an - as an argument. -

-
- - $Id: DictionarySet.cs,v 1.7 2007/03/16 04:01:27 aseovic Exp $ -
- - - Adds the specified element to this set if it is not already present. - - The object to add to the set. - - is the object was added, - if the object was already present. - - - - - Adds all the elements in the specified collection to the set if - they are not already present. - - A collection of objects to add to the set. - - is the set changed as a result of this - operation. - - - - - Removes all objects from this set. - - - - - Returns if this set contains the specified - element. - - The element to look for. - - if this set contains the specified element. - - - - - Returns if the set contains all the - elements in the specified collection. - - A collection of objects. - - if the set contains all the elements in the - specified collection; also if the - supplied is . - - - - - Removes the specified element from the set. - - The element to be removed. - - if the set contained the specified element. - - - - - Remove all the specified elements from this set, if they exist in - this set. - - A collection of elements to remove. - - if the set was modified as a result of this - operation. - - - - - Retains only the elements in this set that are contained in the - specified collection. - - - The collection that defines the set of elements to be retained. - - - if this set changed as a result of this - operation. - - - - - Copies the elements in the to - an array. - - -

- The type of array needs to be compatible with the objects in the - , obviously. -

-
- - An array that will be the target of the copy operation. - - - The zero-based index where copying will start. - -
- - - Gets an enumerator for the elements in the - . - - - An over the elements - in the . - - - - - Provides the storage for elements in the - , stored as the key-set - of the object. - - -

- Set this object in the constructor if you create your own - class. -

-
-
- - - The placeholder object used as the value for the - instance. - - - There is a single instance of this object globally, used for all - s. - - - - - Returns if this set contains no elements. - - - - - The number of elements currently contained in this collection. - - - - - Returns if the - is synchronized across - threads. - - - - - - An object that can be used to synchronize this collection to make - it thread-safe. - - - An object that can be used to synchronize this collection to make - it thread-safe. - - - - - - Represents a reference to an externally defined validator object - - -

- This class allows validation groups to reference validators that - are defined outside of the group itself. -

-

- It also allows users to narrow the context for the referenced validator - by specifying value for the Context property. -

-
- Aleksandar Seovic - $Id: ValidatorReference.cs,v 1.5 2008/02/05 20:40:26 aseovic Exp $ -
- - - Interface to be implemented by objects that wish to be aware of their owning - . - - -

- For example, objects can look up collaborating objects via the factory. -

-

- Note that most objects will choose to receive references to collaborating - objects via respective properties and / or an appropriate constructor. -

-

- For a list of all object lifecycle methods, see the - API documentation. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: IObjectFactoryAware.cs,v 1.6 2006/04/09 07:18:48 markpollack Exp $ -
- - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
- - In case of initialization errors. - -
- - - Initializes a new instance of the class. - - - - - Validates the specified object. - - The object to validate. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Gets or sets the name of the referenced validator. - - The name of the referenced validator. - - - - Gets or sets the expression that should be used to narrow validation context. - - The expression that should be used to narrow validation context. - - - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
- - In case of initialization errors. - -
- - Utility methods for simple pattern matching, in particular for - Spring's typical "xxx*", "*xxx" and "*xxx*" pattern styles. - - Juergen Hoeller - Mark Pollack - $Id: PatternMatchUtils.cs,v 1.4 2007/07/31 18:16:25 bbaia Exp $ - - - Match a String against the given pattern, supporting the following simple - pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. - - the pattern to match against - - the String to match - - whether the String matches the given pattern - - - - Match a String against the given patterns, supporting the following simple - pattern styles: "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. - - the patterns to match against - - the String to match - - whether the String matches any of the given patterns - - - - - Thrown on an unrecoverable problem encountered in the - objects namespace or sub-namespaces, e.g. bad class or field. - - Rod Johnson - Mark Pollack (.NET) - $Id: FatalReflectionException.cs,v 1.1 2007/07/31 03:47:23 markpollack Exp $ - - - - - Creates a new instance of the FatalObjectException class. - - - - - Creates a new instance of the FatalObjectException class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the FatalObjectException class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the FatalObjectException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Base class implementation for classes that describe an event handler. - - Rick Evans - $Id: AbstractEventHandlerValue.cs,v 1.7 2006/04/09 07:19:00 markpollack Exp $ - - - - Describes an event handler. - - Rick Evans - $Id: IEventHandlerValue.cs,v 1.6 2006/04/09 07:18:49 markpollack Exp $ - - - - Wires up the specified handler to the named event on the - supplied event source. - - - The object (an object instance, a , etc) - exposing the named event. - - - The handler for the event (an object instance, a - , etc). - - - - - The source of the event. - - - - - The name of the method that is going to handle the event. - - - - - The name of the event that is being wired up. - - - - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Creates a new instance of the - class. - - - The object (possibly unresolved) that is exposing the event. - - - The name of the method on the handler that is going to handle the event. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Wires up the specified handler to the named event on the - supplied event source. - - - The object (an object instance, a , etc) - exposing the named event. - - - The handler for the event (an object instance, a - , etc). - - - - - Returns a stringified representation of this object. - - A stringified representation of this object. - - - - The source of the event (may be unresolved, as in the case - of a - value). - - - - - The name of the method that is going to handle the event. - - - - - The name of the event that is being wired up. - - - - - Tag subclass used to hold a set of managed elements. - - Juergen Hoeller - Rick Evans (.NET) - - - - Implements an that automatically - changes from a list based implementation to a hashtable based - implementation when the size reaches a certain threshold. - - -

- This is good if you are unsure about whether you data-set will be tiny - or huge. -

- - Because this uses a dual implementation, iteration order is not - guaranteed! - -
- - $Id: HybridSet.cs,v 1.6 2007/03/16 04:01:28 aseovic Exp $ -
- - - Creates a new set instance based on either a list or a hash table, - depending on which will be more efficient based on the data-set - size. - - - - - Creates a new set instance based on either a list or a hash table, - depending on which will be more efficient based on the data-set - size, and initializes it based on a collection of elements. - - - A collection of elements that defines the initial set contents. - - - - - Denotes a special placeholder collection that may contain - s or - other placeholder objects that will need to be resolved. - - -

- 'A special placeholder collection' means that the elements of this - collection can be placeholders for objects that will be resolved later by - a Spring.NET IoC container, i.e. the elements themselves will be - resolved at runtime by the enclosing IoC container. -

-

- The core Spring.NET library already provides three implementations of this interface - straight out of the box; they are... -

- - - - . - - - - - . - - - - - . - - - -

- If you have a custom collection class (i.e. a class that either implements the - directly or derives from a class that does) - that you would like to expose as a special placeholder collection (i.e. one that can - have s as elements - that will be resolved at runtime by an appropriate Spring.NET IoC container, just - implement this interface. -

-
- -

- Lets say one has a Bag class (i.e. a collection that supports bag style semantics). -

- - using System; - - using Spring.Objects.Factory.Support; - - namespace MyNamespace - { - public sealed class Bag : ICollection - { - // ICollection implementation elided for clarity... - - public void Add(object o) - { - // implementation elided for clarity... - } - } - - public class ManagedBag : Bag, IManagedCollection - { - public ICollection Resolve( - string objectName, RootObjectDefinition definition, - string propertyName, ManagedCollectionElementResolver resolver) - { - Bag newBag = new Bag(); - string elementName = propertyName + "[bag-element]"; - foreach(object element in this) - { - object resolvedElement = resolver(objectName, definition, elementName, element); - newBag.Add(resolvedElement); - } - return newBag; - } - } - } - -
- Rick Evans - $Id: IManagedCollection.cs,v 1.5 2007/03/16 03:05:37 bbaia Exp $ -
- - - Resolves this managed collection at runtime. - - - The name of the top level object that is having the value of one of it's - collection properties resolved. - - - The definition of the named top level object. - - - The name of the property the value of which is being resolved. - - - The callback that will actually do the donkey work of resolving - this managed collection. - - A fully resolved collection. - - - - Resolves this managed collection at runtime. - - - The name of the top level object that is having the value of one of it's - collection properties resolved. - - - The definition of the named top level object. - - - The name of the property the value of which is being resolved. - - - The callback that will actually do the donkey work of resolving - this managed collection. - - A fully resolved collection. - - - - Gets or sets the unresolved name for the - of the elements of this managed set. - - The unresolved name for the type of the elements of this managed set. - - - - Convenience methods operating on object factories, returning object instances, - names, or counts. - - -

- The nesting hierarchy of an object factory is taken into account by the various methods - exposed by this class. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectFactoryUtils.cs,v 1.17 2007/07/31 03:47:39 markpollack Exp $ -
- - - Used to dereference an - and distinguish it from managed objects created by the factory. - - -

- For example, if the managed object identified as foo is a - factory, getting &foo will return the factory, not the - instance returned by the factory. -

-
-
- - - Creates a new instance of the - class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - Count all object definitions in any hierarchy in which this - factory participates. - - -

- Includes counts of ancestor object factories. -

-

- Objects that are "overridden" (specified in a descendant factory - with the same name) are counted only once. -

-
- The object factory. - - The count of objects including those defined in ancestor factories. - -
- - - Return all object names in the factory, including ancestor factories. - - The object factory. - The array of object names, or an empty array if none. - - - - Get all object names for the given type, including those defined in ancestor - factories. - - -

- Will return unique names in case of overridden object definitions. -

-

- Does consider objects created by s - if is set to true, - which means that s will get initialized. -

-
- - If this isn't also an - , - this method will return the same as it's own - - method. - - - The that objects must match. - - - Whether to include prototype objects too or just singletons - (also applies to instances). - - - Whether to include instances - too or just normal objects. - - - The array of object names, or an empty array if none. - -
- - - Get all object names for the given type, including those defined in ancestor - factories. - - -

- Will return unique names in case of overridden object definitions. -

-

- Does consider objects created by s, - or rather it considers the type of objects created by - (which means that - s will be instantiated). -

-
- - If this isn't also an - , - this method will return the same as it's own - - method. - - - The that objects must match. - - - The array of object names, or an empty array if none. - -
- - - Return all objects of the given type or subtypes, also picking up objects - defined in ancestor object factories if the current object factory is an - . - - -

- The return list will only contain objects of this type. - Useful convenience method when we don't care about object names. -

-
- The object factory. - The of object to match. - - Whether to include prototype objects too or just singletons - (also applies to instances). - - - Whether to include instances - too or just normal objects. - - - If the objects could not be created. - - - The of object instances, or an - empty if none. - -
- - - Return a single object of the given type or subtypes, also picking up objects defined - in ancestor object factories if the current object factory is an - . - - -

- Useful convenience method when we expect a single object and don't care - about the object name. -

-
- The object factory. - The of object to match. - - Whether to include prototype objects too or just singletons - (also applies to instances). - - - Whether to include instances - too or just normal objects. - - - If the object could not be created. - - - If more than one instance of an object was found. - - - A single object of the given type or subtypes. - -
- - - Return a single object of the given type or subtypes, not looking in - ancestor factories. - - -

- Useful convenience method when we expect a single object and don't care - about the object name. -

-
- The object factory. - The of object to match. - - Whether to include prototype objects too or just singletons - (also applies to instances). - - - Whether to include instances - too or just normal objects. - - - If the object could not be created. - - - If not exactly one instance of an object was found. - - - A single object of the given type or subtypes. - -
- - - Return a single object of the given type or subtypes, not looking in - ancestor factories. - - -

- Useful convenience method when we expect a single object and don't care - about the object name. - This version of ObjectOfType automatically includes prototypes and - instances. -

-
- The object factory. - The of object to match. - - If the object could not be created. - - - If not exactly one instance of an object was found. - - - A single object of the given type or subtypes. - -
- - - Return the object name, stripping out the factory dereference prefix if necessary. - - The name of the object. - The object name sans any factory dereference prefix. - - - - Given an (object) name, builds a corresponding factory object name such that - the return value can be used as a lookup name for a factory object. - - - The name to be used to build the resulting factory object name. - - - The transformed into its factory object name - equivalent. - - - - - - - Is the supplied a factory dereference? - - -

- That is, does the supplied begin with - the - ? -

-
- The name to check. - - if the supplied is a - factory dereference; if not, or the - aupplied is or - consists solely of the - - value. - - -
- - - Implementation of that - resolves variable name against special folders (as defined by - enumeration). - - Aleksandar Seovic - $Id: SpecialFolderVariableSource.cs,v 1.3 2007/08/02 22:18:32 markpollack Exp $ - - - - Defines contract that different variable sources have to implement. - - -

- The "variable sources" are objects containing name-value pairs - that allow a variable value to be retrieved for the given name.

-

- Out of the box, Spring.NET supports a number of variable sources, - that allow users to obtain variable values from .NET config files, - Java-style property files, environment, registry, etc.

-

- Users can always write their own variable sources implementations, - that will allow them to load variable values from the database or - other proprietary data source.

-
- - - - - - - Aleksandar Seovic - $Id: IVariableSource.cs,v 1.3 2007/08/02 22:18:32 markpollack Exp $ -
- - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Resolves specified special folder to its full path. - - - The name of the special folder to resolve. Should be one of the values - defined by the enumeration. - - - The folder path if able to resolve, null otherwise. - - - - - Implementation of that - resolves variable name against Java-style property file. - - - Aleksandar Seovic - $Id: PropertyFileVariableSource.cs,v 1.5 2007/08/08 17:47:13 bbaia Exp $ - - - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Initializes properties based on the specified - property file locations. - - - - - Gets or sets the locations of the property files - to read properties from. - - - The locations of the property files - to read properties from. - - - - - Convinience property. Gets or sets a single location - to read properties from. - - - A location to read properties from. - - - - - Base class that provides common functionality needed for several IObjectFactoryPostProcessor - implementations - - Mark Pollack - $Id: AbstractConfigurer.cs,v 1.3 2007/07/31 18:16:49 bbaia Exp $ - - - - Interface that can be implemented by objects that should be orderable, e.g. in an - . - - -

- The actual order can be interpreted as prioritization, the first object (with the - lowest order value) having the highest priority. -

-
- Juergen Hoeller - Aleksandar Seovic (.Net) - $Id: IOrdered.cs,v 1.6 2007/05/26 00:42:36 markpollack Exp $ -
- - - Return the order value of this object, where a higher value means greater in - terms of sorting. - - -

- Normally starting with 0 or 1, with indicating - greatest. Same order values will result in arbitrary positions for the affected - objects. -

-

- Higher value can be interpreted as lower priority, consequently the first object - has highest priority. -

-
- The order value. -
- - - Allows for custom modification of an application context's object - definitions, adapting the object property values of the context's - underlying object factory. - - -

- Application contexts can auto-detect - IObjectFactoryPostProcessor objects in their object definitions and - apply them before any other objects get created. -

-

- Useful for custom config files targeted at system administrators that - override object properties configured in the application context. -

-

- See PropertyResourceConfigurer and its concrete implementations for - out-of-the-box solutions that address such configuration needs. -

-
- Juergen Hoeller - Rick Evans (.Net) -
- - - Modify the application context's internal object factory after its - standard initialization. - - -

- All object definitions will have been loaded, but no objects will have - been instantiated yet. This allows for overriding or adding properties - even to eager-initializing objects. -

-
- - The object factory used by the application context. - - - In case of errors. - -
- - - Modify the application context's internal object factory after its - standard initialization. - - The object factory used by the application context. - -

- All object definitions will have been loaded, but no objects will have - been instantiated yet. This allows for overriding or adding properties - even to eager-initializing objects. -

-
- - In case of errors. - -
- - - Resolves the supplied into a - instance. - - The object that is to be resolved into a - instance. - The error context source. - The error context string. - A resolved . - -

- This (default) implementation supports resolving - s and s. - Only override this method if you want to key your type alias - on something other than s - and s. -

-
- - If the supplied is , - or the supplied cannot be resolved. - -
- - - Return the order value of this object, with a higher value meaning - greater in terms of sorting. - - The order value. - - - - - A implementation that enforces required properties to have been configured. - Required properties are detected through an attribute, by default, Spring's - attribute. - - - The motivation for the existence of this IObjectPostProcessor is to allow - developers to annotate the setter properties of their own classes with an - arbitrary attribute to indicate that the container must check - for the configuration of a dependency injected value. This neatly pushes - responsibility for such checking onto the container (where it arguably belongs), - and obviates the need (in part) for a developer to code a method that - simply checks that all required properties have actually been set. - - Please note that an 'init' method may still need to implemented (and may - still be desirable), because all that this class does is enforce that a - 'required' property has actually been configured with a value. It does - not check anything else... In particular, it does not check that a - configured value is not null. - - - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: RequiredAttributeObjectPostProcessor.cs,v 1.2 2008/04/08 19:29:07 markpollack Exp $ - - - - Adapter that implements all methods on - as no-ops, which will not change normal processing of each object instantiated - by the container. Subclasses may override merely those methods that they are - actually interested in. - - - Note that this base class is only recommendable if you actually require - functionality. If all you need - is plain functionality, prefer a straight - implementation of that (simpler) interface. - - Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - $Id: InstantiationAwareObjectPostProcessorAdapter.cs,v 1.1 2008/04/02 18:02:24 markpollack Exp $ - - - - Extension of the interface, - adding a callback for predicting the eventual type of a processed object. - - This interface is a special purpose interface, mainly for - internal use within the framework. In general, application-provided - post-processors should simply implement the plain - interface or derive from the - class. New methods might be added to this interface even in point releases. - - - Juergen Hoeller - Mark Pollack (.NET) - $Id: SmartInstantiationAwareObjectPostProcessor.cs,v 1.1 2008/04/02 18:02:24 markpollack Exp $ - - - - Subinterface of - - that adds a before-instantiation callback. - - -

- Typical use cases might include being used to suppress the default - instantiation of specific target objects, perhaps in favour of creating - proxies with special Spring.Aop.ITargetSources (pooling targets, - lazily initializing targets, etc). -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IInstantiationAwareObjectPostProcessor.cs,v 1.4 2007/08/22 08:49:39 markpollack Exp $ -
- - - Allows for custom modification of new object instances, e.g. - checking for marker interfaces or wrapping them with proxies. - - -

- Application contexts can auto-detect - - objects in their object definitions and apply them before any other - objects get created. Plain object factories allow for programmatic - registration of post-processors. -

-

- Typically, post-processors that populate objects via marker interfaces - or the like will implement - , - and post-processors that wrap objects with proxies will normally implement - . -

-
- Juergen Hoeller - Aleksandar Seovic (.NET) - $Id: IObjectPostProcessor.cs,v 1.9 2007/08/22 08:49:39 markpollack Exp $ - -
- - - Apply this - to the given new object instance before any object initialization callbacks. - - -

- The object will already be populated with property values. - The returned object instance may be a wrapper around the original. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - Apply this to the - given new object instance after any object initialization callbacks. - - -

- The object will already be populated with property values. The returned object - instance may be a wrapper around the original. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - Apply this - - before the target object gets instantiated. - - -

- The returned object may be a proxy to use instead of the target - object, effectively suppressing the default instantiation of the - target object. -

-

- If the object is returned by this method is not - , the object creation process will be - short-circuited. The returned object will not be processed any - further; in particular, no further - - callbacks will be applied to it. This mechanism is mainly intended - for exposing a proxy instead of an actual target object. -

-

- This callback will only be applied to object definitions with an - object class. In particular, it will not be applied to - objects with a "factory-method" (i.e. objects that are to be - instantiated via a layer of indirection anyway). -

-
- - The of the target object that is to be - instantiated. - - - The name of the target object. - - - The object to expose instead of a default instance of the target - object. - - - In the case of any errors. - - - -
- - - Perform operations after the object has been instantiated, via a constructor or factory method, - but before Spring property population (from explicit properties or autowiring) occurs. - - The object instance created, but whose properties have not yet been set - Name of the object. - true if properties should be set on the object; false if property population - should be skipped. Normal implementations should return true. Returning false will also - prevent any subsequent InstantiationAwareObjectPostProcessor instances from being - invoked on this object instance. - - - - Post-process the given property values before the factory applies them - to the given object. - - Allows for checking whether all dependencies have been - satisfied, for example based on a "Required" annotation on bean property setters. - Also allows for replacing the property values to apply, typically through - creating a new MutablePropertyValues instance based on the original PropertyValues, - adding or removing specific values. - - - The property values that the factory is about to apply (never null). - he relevant property infos for the target object (with ignored - dependency types - which the factory handles specifically - already filtered out) - The object instance created, but whose properties have not yet - been set. - Name of the object. - The actual property values to apply to the given object (can be the - passed-in PropertyValues instances0 or null to skip property population. - - - - Predicts the type of the object to be eventually returned from this - processors callback. - - The raw Type of the object. - Name of the object. - The type of the object, or null if not predictable. - in case of errors - - - - Determines the candidate constructors to use for the given object. - - The raw Type of the object. - Name of the object. - The candidate constructors, or null if none specified - in case of errors - - - - Predicts the type of the object to be eventually returned from this - processors PostProcessBeforeInstantiation callback. - - The raw Type of the object. - Name of the object. - The type of the object, or null if not predictable. - in case of errors - - - - Determines the candidate constructors to use for the given object. - - The raw Type of the object. - Name of the object. - The candidate constructors, or null if none specified - in case of errors - - - - Apply this - - before the target object gets instantiated. - - -

- The returned object may be a proxy to use instead of the target - object, effectively suppressing the default instantiation of the - target object. -

-

- If the object is returned by this method is not - , the object creation process will be - short-circuited. The returned object will not be processed any - further; in particular, no further - - callbacks will be applied to it. This mechanism is mainly intended - for exposing a proxy instead of an actual target object. -

-

- This callback will only be applied to object definitions with an - object class. In particular, it will not be applied to - objects with a "factory-method" (i.e. objects that are to be - instantiated via a layer of indirection anyway). -

-
- - The of the target object that is to be - instantiated. - - - The name of the target object. - - - The object to expose instead of a default instance of the target - object. - - - In the case of any errors. - - - -
- - - Perform operations after the object has been instantiated, via a constructor or factory method, - but before Spring property population (from explicit properties or autowiring) occurs. - - The object instance created, but whose properties have not yet been set - Name of the object. - true if properties should be set on the object; false if property population - should be skipped. Normal implementations should return true. Returning false will also - prevent any subsequent InstantiationAwareObjectPostProcessor instances from being - invoked on this object instance. - - - - Post-process the given property values before the factory applies them - to the given object. - - Allows for checking whether all dependencies have been - satisfied, for example based on a "Required" annotation on bean property setters. - Also allows for replacing the property values to apply, typically through - creating a new MutablePropertyValues instance based on the original PropertyValues, - adding or removing specific values. - - - The property values that the factory is about to apply (never null). - he relevant property infos for the target object (with ignored - dependency types - which the factory handles specifically - already filtered out) - The object instance created, but whose properties have not yet - been set. - Name of the object. - The actual property values to apply to the given object (can be the - passed-in PropertyValues instances0 or null to skip property population. - - - - Apply this - to the given new object instance before any object initialization callbacks. - - -

- The object will already be populated with property values. - The returned object instance may be a wrapper around the original. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - Apply this to the - given new object instance after any object initialization callbacks. - - -

- The object will already be populated with property values. The returned object - instance may be a wrapper around the original. -

-
- - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - -
- - - Cache for validated object names, skipping re-validation for the same object - - - - - Post-process the given property values before the factory applies them - to the given object. Checks for the attribute specified by this PostProcessor's RequiredAttributeType. - - The property values that the factory is about to apply (never null). - The relevant property infos for the target object (with ignored - dependency types - which the factory handles specifically - already filtered out) - The object instance created, but whose properties have not yet - been set. - Name of the object. - - The actual property values to apply to the given object (can be the - passed-in PropertyValues instances or null to skip property population. - - If a required property value has not been specified - in the configuration metadata. - - - - Determines whether the supplied property is required to have a value, that is to be dependency injected. - - - This implementation looks for the existence of a "required" attribute on the supplied PropertyInfo and that - the property has a setter method. - - The target PropertyInfo - - true if the supplied property has been marked as being required;; otherwise, false if - not or if the supplied property does not have a setter method - - - - - Builds an exception message for the given list of invalid properties. - - The list of names of invalid properties. - Name of the object. - The exception message - - - - Sets the type of the required attribute, to be used on a property setter - - - The default required attribute type is the Spring-provided attribute. - This setter property exists so that developers can provide their own - (non-Spring-specific) annotation type to indicate that a property value is required. - - The type of the required attribute. - - - - Implementation of that can be used to - format and parse integer numbers. - - - - This formatter allows you to format and parse numbers that conform - to number style (leading and trailing - white space, leading sign). - - - Aleksandar Seovic - $Id: IntegerFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Interface that should be implemented by all formatters. - - - - Formatters assume that source value is a string, and make no assumptions - about the target value's type, which means that Parse method can return - object of any type. - - - Aleksandar Seovic - $Id: IFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Formats the specified value. - - The value to format. - Formatted . - - - - Parses the specified value. - - The value to parse. - Parsed . - - - - Initializes a new instance of the class, - using default format string of '{0:D}'. - - - - - Initializes a new instance of the class, - using specified format string. - - - - - Formats the specified integer value. - - The value to format. - Formatted integer number. - If is null. - If is not an integer number. - - - - Parses the specified integer value. - - The integer value to parse. - Parsed number value as a . - - - - Abstract base class that all localizers should extend - - -

- This class contains the bulk of the localizer logic, including implementation - of the ApplyResources methods that are defined in - interface. -

-

- All specific localizers need to do is inherit this class and implement - GetResources method that will return a list of - objects that should be applied to a specified target. -

-

- Custom implementations can use whatever type of resource storage they want, - such as standard .NET resource sets, custom XML files, database, etc. -

-
- Aleksandar Seovic - $Id: AbstractLocalizer.cs,v 1.5 2007/07/24 17:26:25 oakinger Exp $ -
- - - Defines an interface that localizers have to implement. - - -

- Localizers are used to automatically apply resources to object's members - using reflection. -

-
- Aleksandar Seovic - $Id: ILocalizer.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ -
- - - Applies resources of the specified culture to the specified target object. - - Target object to apply resources to. - instance to retrieve resources from. - Resource culture to use for resource lookup. - - - - Applies resources to the specified target object, using current thread's culture to resolve resources. - - Target object to apply resources to. - instance to retrieve resources from. - - - - Gets or sets the resource cache instance. - - The resource cache instance. - - - - Applies resources of the specified culture to the specified target object. - - Target object to apply resources to. - instance to retrieve resources from. - Resource culture to use for resource lookup. - - - - Applies resources to the specified target object, using current thread's uiCulture to resolve resources. - - Target object to apply resources to. - instance to retrieve resources from. - - - - Returns a list of instances that should be applied to the target. - - Target to get a list of resources for. - instance to retrieve resources from. - Resource locale. - A list of resources to apply. - - - - Loads resources from the storage and creates a list of instances that should be applied to the target. - - Target to get a list of resources for. - instance to retrieve resources from. - Resource locale. - A list of resources to apply. - - - - Gets or sets the resource cache instance. - - The resource cache instance. - - - - Represents logical "less than or equal" operator. - - Aleksandar Seovic - $Id: OpLessOrEqual.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical "less than or equal" operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical IN operator. - - Aleksandar Seovic - $Id: OpIn.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical IN operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - - true if the left operand is contained within the right operand, false otherwise. - - - - - Represents parsed selection node in the navigation expression. - - Aleksandar Seovic - $Id: SelectionLastNode.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns the last context item that matches selection expression. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the minimum aggregator. - - Aleksandar Seovic - $Id: MinAggregator.cs,v 1.2 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns the smallest item in the source collection. - - - The source collection to process. - - - Ignored. - - - The smallest item in the source collection. - - - - - Base implementation of the . - - Aleksandar Seovic - $Id: BaseBindingContainer.cs,v 1.2 2008/02/05 20:40:25 aseovic Exp $ - - - - An interface that has to be implemented by all data binding containers. - - Aleksandar Seovic - $Id: IBindingContainer.cs,v 1.1 2006/11/21 05:46:57 aseovic Exp $ - - - - An interface that defines the methods that have to be implemented by all data bindings. - - Aleksandar Seovic - $Id: IBinding.cs,v 1.3 2008/02/05 20:40:25 aseovic Exp $ - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Sets error message that should be displayed in the case - of a non-fatal binding error. - - - Resource ID of the error message. - - - List of error providers message should be added to. - - - - - Adds the binding. - - - Binding definition to add. - - - Added instance. - - - - - Adds the binding with a default - binding direction of . - - - This is a convinience method for adding SimpleExpressionBinding, - one of the most often used binding types, to the bindings list. - - - The source expression. - - - The target expression. - - - Added instance. - - - - - Adds the binding. - - - This is a convinience method for adding SimpleExpressionBinding, - one of the most often used binding types, to the bindings list. - - - The source expression. - - - The target expression. - - - Binding direction. - - - Added instance. - - - - - Adds the binding with a default - binding direction of . - - - This is a convinience method for adding SimpleExpressionBinding, - one of the most often used binding types, to the bindings list. - - - The source expression. - - - The target expression. - - - to use for value formatting and parsing. - - - Added instance. - - - - - Adds the binding. - - - This is a convinience method for adding SimpleExpressionBinding, - one of the most often used binding types, to the bindings list. - - - The source expression. - - - The target expression. - - - Binding direction. - - - to use for value formatting and parsing. - - - Added instance. - - - - - Gets a value indicating whether this data binding container - has bindings. - - - true if this data binding container has bindings; - false otherwise. - - - - - Creates a new instance of . - - - - - Adds the binding. - - - Binding definition to add. - - - Added instance. - - - - - Adds the binding with a default - binding direction of . - - - The source expression. - - - The target expression. - - - Added instance. - - - - - Adds the binding. - - - The source expression. - - - The target expression. - - - Binding direction. - - - Added instance. - - - - - Adds the binding with a default - binding direction of . - - - The source expression. - - - The target expression. - - - to use for value formatting and parsing. - - - Added instance. - - - - - Adds the binding. - - - The source expression. - - - The target expression. - - - Binding direction. - - - to use for value formatting and parsing. - - - Added instance. - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Sets error message that should be displayed in the case - of a non-fatal binding error. - - - Resource ID of the error message. - - - List of error providers message should be added to. - - - - - Gets a list of bindings for this container. - - - A list of bindings for this container. - - - - - Gets a value indicating whether this instance has bindings. - - - true if this instance has bindings; otherwise, false. - - - - - Converter for to directly set a - property. - - Jurgen Hoeller - Mark Pollack (.NET) - - - - Create a new StreamConverter using the default - . - - - - - Create a new StreamConverter using the given - . - - - The to use. - - - - Returns whether this converter can convert an object of one - to a - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Convert from a string value to a instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful. - - - - - Criteria that is satisfied if the number of generic arguments to a given - matches an arbitrary number. - - -

- This class supports checking the generic arguments count of both - generic methods and constructors. -

-
- Bruno Baia - $Id: MethodGenericArgumentsCountCriteria.cs,v 1.1 2007/08/04 01:04:33 bbaia Exp $ -
- - - Creates a new instance of the - class. - - -

- This constructor sets the - - property to zero (0). -

-
-
- - - Creates a new instance of the - class. - - - The number of generic arguments that a - must have to satisfy this criteria. - - - If the supplied is less - than zero. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - The number of generic arguments that a - must have to satisfy this criteria. - - - If the supplied value is less than zero. - - - - - Exception thrown when the ObjectFactory cannot load the specified type of a given object. - - Mark Pollack - $Id: CannotLoadObjectTypeException.cs,v 1.4 2007/08/01 23:24:11 bbaia Exp $ - - - - Initializes a new instance of the class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Initializes a new instance of the class. - - The resource description that the object definition came from. - Name of the object requested - Name of the object type. - The root cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - Gets he name of the object we are trying to load. - - The name of the object. - - - - Gets the name of the object type we are trying to load. - - The name of the object type. - - - - Gets the resource description that the object definition came from - - The resource description. - - - - Creates an instance - using context definitions supplied in a custom configuration and - configures the with that instance. - - - Implementations of the - interface must provide the following two constructors: - - - - A constructor that takes a string array of resource locations. - - - - - A constructor that takes a reference to a parent application context - and a string array of resource locations (and in that order). - - - -

- Note that if the type attribute is not present in the declaration - of a particular context, then a default - - is assumed. This default - - is currently the - ; please note the exact - of this default is an - implementation detail, that, while unlikely, may do so in the future. - to -

-
- -

- This is an example of specifying a context that reads its resources from - an embedded Spring.NET XML object configuration file... -

- - - - -
- - - - - - - - - -

- This is an example of specifying a context that reads its resources from - a custom configuration section within the same application / web - configuration file and uses case insensitive object lookups. -

-

- Please note that you must adhere to the naming - of the various sections (i.e. '<sectionGroup name="spring">' and - '<section name="context">'. -

- - - - -
-
- - - - - - - - - - - - -

- And this is an example of specifying a hierarchy of contexts. The - hierarchy in this case is only a simple parent->child hierarchy, but - hopefully it illustrates the nesting of context configurations. This - nesting of contexts can be arbitrarily deep, and is one way... child - contexts know about their parent contexts, but parent contexts do not - know how many child contexts they have (if any), or have references - to any such child contexts. -

- - - - -
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Mark Pollack - Aleksandar Seovic - Rick Evans - $Id: ContextHandler.cs,v 1.36 2008/03/13 20:07:33 bbaia Exp $ - - - - - Creates an instance - using the context definitions supplied in a custom - configuration section. - - -

- This instance is - also used to configure the . -

-
- - The configuration settings in a corresponding parent - configuration section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - An instance - populated with the object definitions supplied in the configuration - section. - -
- - - Create all child-contexts in the given for the given context. - - The parent context to use - The current configContext - The list of child context elements - - - - Instantiates a new context. - - - - - Gets the context's name specified in the name attribute of the context element. - - The current configContext - The context element - - - - Extracts the context-type from the context element. - If none is specified, returns the parent's type. - - - - - Extracts the case-sensitivity attribute from the context element - - - - - Gets the context specified in the type - attribute of the context element. - - -

- If this attribute is not defined it defaults to the - type. -

-
- - If the context type does not implement the - interface. - -
- - - Returns the array of resources containing object definitions for - this context. - - - - - Returns the array of child contexts for this context. - - - - - The of - created if no type attribute is specified on a context element. - - - - - - Get the context's case-sensitivity to use if none is specified - - -

- Derived handlers may override this property to change their default case-sensitivity. -

-

- Defaults to 'true'. -

-
-
- - - Returns if the context should be lazily - initialized. - - - - - Constants defining the structure and values associated with the - schema for laying out Spring.NET contexts in XML. - - - - - Defines a single - . - - - - - Specifies a context name. - - - - - Specifies if context should be case sensitive or not. Default is true. - - - - - Specifies a . - - -

- Does not have to be fully assembly qualified, but its generally regarded - as better form if the names of one's objects - are specified explicitly. -

-
-
- - - Specifies whether context should be lazy initialized. - - - - - Defines an - - - - - Specifies the URI for an - . - - - - - To be implemented by any object that wishes to be notified - of the that it runs in. - - -

- Implementing this interface makes sense when an object requires access - to a set of collaborating objects. Note that configuration via object - references is preferable to implementing this interface just for object - lookup purposes. -

-

- This interface can also be implemented if an object needs access to - file resources, i.e. wants to call - , or access to - the . However, it is - preferable to implement the more specific - - interface to receive a reference to the - object in that scenario. -

-

- Note that dependencies can also - be exposed as object properties of the - type, populated via strings with - automatic type conversion performed by an object factory. This obviates - the need for implementing any callback interface just for the purpose - of accessing a specific file resource. -

-

- - is a convenience implementation of this interface for your - application objects. -

-

- For a list of all object lifecycle methods, see the overview for the - interface. -

-
- Rod Johnson - Mark Pollack (.NET) - $Id: IApplicationContextAware.cs,v 1.8 2007/08/08 17:46:37 bbaia Exp $ - - - - $Id: IApplicationContextAware.cs,v 1.8 2007/08/08 17:46:37 bbaia Exp $ -
- - - Set the that this - object runs in. - - -

- Normally this call will be used to initialize the object. -

-

- 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. - - -
- - - Perform email validations. - - -

- This implementation is not guaranteed to catch all possible errors in an - email address. For example, an address like nobody@noplace.nowhere will - pass validator, even though there is no TLD "nowhere". - - Goran Milosavljevic - - -

- Creates a new instance of the EmailValidator class. - -
- - - Creates a new instance of the EmailValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the EmailValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Validates the supplied . - - - In the case of the class, - the test should be a string variable that will be evaluated and the object - obtained as a result of this evaluation will be checked if it is - a valid e-mail address. - - The object to validate. - - if the supplied is valid - e-mail address. - - - - - Regular expression used for validation of object passed to this . - - - - - Converts between instances of and their string representations. - - Erich Eichinger - $Id: UniqueKeyConverter.cs,v 1.1 2007/08/22 20:17:35 oakinger Exp $ - - - - Can we convert from the sourcetype to a ? - - -

- Currently only supports conversion from a instance. -

-
- - A that provides a format context. - - - A that represents the you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to an instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful, otherwise. - - The conversion cannot be performed. - - - - Returns whether this converter can convert the object to the specified type, using the specified context. - - An that provides a format context. - A that represents the type you want to convert to. - - true if this converter can perform the conversion; otherwise, false. - - - At the moment only conversion to string is supported. - - - - - Converts the given value object to the specified type, using the specified context and culture information. - - - - An that represents the converted value. - - - A . If null is passed, the current culture is assumed. - An that provides a format context. - The to convert the value parameter to. - The to convert. - The conversion cannot be performed. - The destinationType parameter is null. - - - - A simple pooling interface for managing and monitoring a pool - of objects. - - -

- Based on the Jakarta Commons Pool API. -

-
- Federico Spinazzi - $Id: IObjectPool.cs,v 1.5 2005/08/13 18:04:54 springboy Exp $ - -
- - - Obtain an instance from the pool. - - -

- By contract, clients must return the borrowed - instance using - or a related method as defined in an implementation or - sub-interface. -

-
- An instance from the pool. - - In case the pool is unusable. - - -
- - - Return an instance to the pool. - - -

- By contract, the object must have been obtained using - - or a related method as defined in an implementation or sub-interface. -

-
- The instance to be returned to the pool. - -
- - - Create an object using the factory set by - the property - or other implementation dependent mechanism - and place it into the pool. - - -

- This is an optional operation. AddObject is useful for "pre-loading" a - pool with idle objects. -

-
- - If the implementation does not support the operation. - -
- - - Close the pool and free any resources associated with it. - - - - - Clear objects sitting idle in the pool, releasing any - associated resources. - - -

- This is an optional operation. -

-
- - If the implementation does not support the operation. - -
- - - Gets the number of instances currently borrowed from the pool. - - -

- This is an optional operation. -

-
- - If the implementation does not support the operation. - -
- - - Gets the number of instances currently idle in the pool. - - -

- This is an optional operation. -

-

- This may be considered an approximation of the number of objects - that can be borrowed without creating any new instances. -

-
- - If the implementation does not support the operation. - -
- - - Set the factory used to create new instances. - - -

- This is an optional operation. -

-
- - If the implementation does not support the operation. - -
- - - A collection style container for - instances. - - Rod Johnson - Mark Pollack (.NET) - $Id: IPropertyValues.cs,v 1.7 2006/04/09 07:18:49 markpollack Exp $ - - - - Return the instance with the - given name. - - The name to search for. - the , or null if a - the with the supplied - did not exist in this collection. - - - - - Is there a instance for this - property name? - - The name to search for. - - True if there is a instance for - the supplied . - - - - - Return the difference (changes, additions, but not removals) of - property values between the supplied argument and the values - contained in the collection. - - -

- Subclasses should also override Equals. -

-
- The old property values. - - An containing any changes, or - an empty instance if there were - no changes. - -
- - - Return an array of the objects - held in this object. - - An array of the objects held - in this object. - - - - - Object definition reader for Spring's default XML object definition format. - - -

- Typically applied to a - instance. -

-

- This class registers each object definition with the given object factory superclass, - and relies on the latter's implementation of the - interface. -

-

- It supports singletons, prototypes, and references to either of these kinds of object. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: XmlObjectDefinitionReader.cs,v 1.33 2008/02/04 22:44:03 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - The - instance that this reader works on. - - - - - Creates a new instance of the - class. - - - The - instance that this reader works on. - - - The to be used for parsing. - - - - - Load object definitions from the supplied XML . - - - The XML resource for the object definitions that are to be loaded. - - - The number of object definitions that were loaded. - - - In the case of loading or parsing errors. - - - - - Actually load object definitions from the specified XML file. - - The input stream to read from. - The resource for the XML data. - - - - - Validation callback for a validating XML reader. - - The source of the event. - Any data pertinent to the event. - - - - Register the object definitions contained in the given DOM document. - - The DOM document. - - The original resource from where the - was read. - - - The number of object definitions that were registered. - - - In case of parsing errors. - - - - - Creates the to use for actually - reading object definitions from an XML document. - - Default implementation instantiates the specified 'documentReaderType'. - - - - - Creates the to be passed along - during the object definition reading process. - - The underlying that is currently processed. - A new - - - - The to be used for parsing. - - - - - Sets the IObjectDefinitionDocumentReader implementation to use, responsible for - the actual reading of the XML object definition document.stype of the document reader. - - The type of the document reader. - - - - Exception thrown when an object depends on other objects or simple properties - that were not specified in the object factory definition, although dependency - checking was enabled. - - Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: UnsatisfiedDependencyException.cs,v 1.8 2006/04/09 07:18:49 markpollack Exp $ - - - - Thrown when an - encounters an error when attempting to create an object from an object - definition. - - Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectCreationException.cs,v 1.15 2007/12/05 00:28:04 bbaia Exp $ - - - - Thrown on an unrecoverable problem encountered in the - objects namespace or sub-namespaces, e.g. bad class or field. - - Rod Johnson - Mark Pollack (.NET) - $Id: FatalObjectException.cs,v 1.7 2006/04/09 07:18:49 markpollack Exp $ - - - - - Superclass for all exceptions thrown in the Objects namespace and sub-namespaces. - - Rod Johnson - Mark Pollack (.NET) - $Id: ObjectsException.cs,v 1.8 2006/04/09 07:18:49 markpollack Exp $ - - - - Creates a new instance of the ObjectsException class. - - - - Creates a new instance of the ObjectsException class. with the specified message. - - - A message about the exception. - - - - - Creates a new instance of the ObjectsException class with the specified message - and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectsException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the FatalObjectException class. - - - - - Creates a new instance of the FatalObjectException class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the FatalObjectException class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the FatalObjectException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The description of the resource associated with the object. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - - - Creates a new instance of the - class. - - - The description of the resource associated with the object. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The name of the object that triggered the exception (if any). - - - - - The description of the resource associated with the object (if any). - - - - - Describes the creation failure trace of this exception. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - A message about the exception. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - The description of the resource associated with the object. - - - The name of the object that has the unsatisfied dependency. - - - The constructor argument index at which the dependency is - unsatisfied. - - - The of the constructor argument at - which the dependency is unsatisfied. - - - A message about the exception. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - The description of the resource associated with the object. - - - The name of the object that has the unsatisfied dependency. - - - The name identifying the property on which the dependency is - unsatisfied. - - - A message about the exception. - - - - - Creates a new instance of the UnsatisfiedDependencyException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Holder for a typed value. - - -

- Can be added to object definitions to explicitly specify - a target type for a value, - for example for collection - elements. -

-

- This holder just stores the value and the target - . The actual conversion will be performed by - the surrounding object factory. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: TypedStringValue.cs,v 1.5 2007/05/29 20:00:20 markpollack Exp $ -
- - - Creates a new instance of the - - class. - - - - - Initializes a new instance of the class. - - The value. - - - - Creates a new instance of the - - class. - - - The value that is to be converted. - - - The to convert to. - - - If the supplied is - . - - - - - The value that is to be converted. - - -

- Obviously if the - - is the , no conversion - will actually be performed. -

-
-
- - - The to convert to. - - - If the setter is supplied with a value. - - - - - Gets a value indicating whether this instance has target type. - - - true if this instance has target type; otherwise, false. - - - - - Simple class that holds the defaults specified at the <objects> - level in a standard Spring XML object definition document: - default-lazy-init, default-autowire, etc. - - Juergen Hoeller - Mark Pollack (.NET) - - - - Gets or sets the autowire setting for the document that's currently parsed. - - The autowire. - - - - Gets or sets the dependency-check setting for the document that's currently parsed - - The dependency check. - - - - Gets or sets the lazy-init flag for the document that's currently parsed. - - The lazy init. - - - - Strategy interface for - resolution. - - Aleksandar Seovic - $Id: ICultureResolver.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Resolves the - from some context. - - -

- The 'context' is determined by the appropriate implementation class. - An example of such a context might be a thread local bound - , or a - sourced from an HTTP - session. -

-
- - The that should be used - by the caller. - -
- - - Sets the . - - -

- This is an optional operation and does not need to be implemented - such that it actually does anything useful (i.e. it can be a no-op). -

-
- - The new or - to clear the current . - -
- - - Represents parsed real literal node. - - Aleksandar Seovic - $Id: RealLiteralNode.cs,v 1.11 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the real literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical NOT operator. - - Aleksandar Seovic - $Id: OpNOT.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Base class for unary operators. - - Aleksandar Seovic - $Id: UnaryOperator.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Gets the operand. - - The operand. - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical NOT operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed hexadecimal integer literal node. - - Aleksandar Seovic - $Id: HexLiteralNode.cs,v 1.9 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the hexadecimal integer literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents lambda expression. - - Aleksandar Seovic - $Id: LambdaExpressionNode.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - caches argumentNames of this instance - - - - - caches body expression of this lambda function - - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Assigns value of the right operand to the left one. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Returns Lambda Expression's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - A dictionary containing argument map for this lambda expression. - Node's value. - - - - Gets argument names for this lambda expression. - - - - - Represents parsed assignment node in the navigation expression. - - Aleksandar Seovic - $Id: AssignNode.cs,v 1.9 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Assigns value of the right operand to the left one. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Abstract base class for simple, one-to-one implementations. - - Aleksandar Seovic - $Id: AbstractSimpleBinding.cs,v 1.4 2008/02/05 20:40:25 aseovic Exp $ - - - - Abstract base class for implementations. - - Aleksandar Seovic - $Id: AbstractBinding.cs,v 1.2 2008/02/05 20:40:25 aseovic Exp $ - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Sets error message that should be displayed in the case - of a non-fatal binding error. - - - Resource ID of the error message. - - - List of error providers message should be added to. - - - - - Gets or sets a flag specifying whether this binding is valid. - - - true if this binding evaluated without errors; - false otherwise. - - - - - Gets or sets the . - - The binding direction. - - - - Gets the error message. - - The error message. - - - - Gets the error providers. - - - - - Initialize a new instance of without any - - - - - Initialize a new instance of with the - specified . - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Concrete implementation if source to target binding. - - - The source object. - - - The target object. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Concrete implementation of target to source binding. - - - The source object. - - - The target object. - - - Variables that should be used during expression evaluation. - - - - - Gets the source value for the binding. - - - Source object to extract value from. - - - Variables for expression evaluation. - - - The source value for the binding. - - - - - Sets the source value for the binding. - - - The source object to set the value on. - - - The value to set. - - - Variables for expression evaluation. - - - - - Gets the target value for the binding. - - - Source object to extract value from. - - - Variables for expression evaluation. - - - The target value for the binding. - - - - - Sets the target value for the binding. - - - The target object to set the value on. - - - The value to set. - - - Variables for expression evaluation. - - - - - Gets or sets the to use. - - The formatter to use. - - - - Helper methods with regard to type resolution. - - -

- Not intended to be used directly by applications. -

-
- Bruno Baia - $Id: TypeResolutionUtils.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Resolves the supplied type name into a - instance. - - -

- If you require special resolution, do - not use this method, but rather instantiate - your own . -

-
- - The (possibly partially assembly qualified) name of a - . - - - A resolved instance. - - - If the type cannot be resolved. - -
- - - Resolves a string array of interface names to - a array. - - - An array of valid interface names. Each name must include the full - interface and assembly name. - - An array of interface s. - - If any of the interfaces can't be loaded. - - - If any of the s specified is not an interface. - - - If (or any of its elements ) is - . - - - - - Match a method against the given pattern. - - the pattern to match against. - the method to match. - - if the method matches the given pattern; otherwise . - - - If the supplied is invalid. - - - - - Registry class that allows users to register and retrieve type converters. - - Aleksandar Seovic - $Id: TypeConverterRegistry.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Name of the .Net config section that contains Spring.Net type aliases. - - - - - Registers standard and configured type converters. - - - - - Returns for the specified type. - - Type to get the converter for. - a type converter for the specified type. - If is null. - - - - Registers for the specified type. - - Type to register the converter for. - Type converter to register. - If either of arguments is null. - - - - Registers for the specified type. - - - This is a convinience method that accepts the names of both - type to register converter for and the converter itself, - resolves them using , creates an - instance of type converter and calls overloaded - method. - - Type name of the type to register the converter for (can be a type alias). - Type name of the type converter to register (can be a type alias). - If either of arguments is null or empty string. - - If either of arguments fails to resolve to a valid . - - - If type converter does not derive from or if it cannot be instantiated. - - - - - Interface to be implemented by objects that can return information about - the current call stack. - - -

- Useful in AOP (as an expression of the AspectJ cflow concept) but not AOP-specific. -

-
- Rod Johnson - Aleksandar Seovic (.Net) - $Id: IControlFlow.cs,v 1.4 2006/04/09 07:18:38 markpollack Exp $ -
- - - Detects whether the caller is under the supplied , - according to the current stacktrace. - - - The to look for. - - - if the caller is under the supplied . - - - - - Detects whether the caller is under the supplied - and , according to the current stacktrace. - - - The to look for. - - The name of the method to look for. - - if the caller is under the supplied - and . - - - - - Does the current stack trace contain the supplied ? - - The token to match against. - - if the current stack trace contains the supplied - . - - - - - Helper class for easy access to messages from an - , providing various - overloaded GetMessage methods. - - -

- Available from - , but also - reusable as a standalone helper to delegate to in application objects. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: MessageSourceAccessor.cs,v 1.8 2007/08/23 14:30:50 oakinger Exp $ - - -
- - - Creates a new instance of the - class - that uses the current - for all locale specific lookups. - - - The to use to locate messages. - - - - - Creates a new instance of the - class - - - The to use to locate - messages. - - - The to use for - locale specific messages. - - - - - Retrieve the message for the given code and the default - . - - The code of the message. - The message. - - - - Retrieve the message for the given code and the given - . - - The code of the message. - - The to use for - lookups. - - The message. - - - - Retrieve the message for the given code and the default - . - - The code of the message. - - The arguments for the message, or if none. - - The message. - - If the message could not be found. - - - - - Retrieve the message for the given code and the given - . - - The code of the message. - - The to use for - lookups. - - - The arguments for the message, or if none. - - The message. - - If the message could not be found. - - - - - Retrieve a mesage using the given - . - - - The . - - The message. - - If the message could not be found. - - - - - Retrieve a mesage using the given - in the given - . - - - The . - - - The to use for - lookups. - - The message - - If the message could not be found. - - - - - Provides access to a central registry of - s. - - -

- A singleton implementation to access one or more application contexts. Application - context instances are cached. -

-

Note that the use of this class or similar is unnecessary except (sometimes) for - a small amount of glue code. Excessive usage will lead to code that is more tightly - coupled, and harder to modify or test. Consider refactoring your code to use standard - Dependency Injection techniques or implement the interface IApplicationContextAware to - obtain a reference to an application context.

-
- Mark Pollack - Aleksandar Seovic - - $Id: ContextRegistry.cs,v 1.28 2008/03/21 10:49:37 oakinger Exp $ -
- - - The shared instance for this class (and derived classes). - - - - - Creates a new instance of the ContextRegistry class. - - -

- Explicit static constructor to tell C# compiler - not to mark type as beforefieldinit. -

-
-
- - - Registers an instance of an - . - - -

- This is usually called via a - inside a .NET - application configuration file. -

-
- The application context to be registered. - - If a context has previously been registered using the same name - -
- - - Returns the root application context. - - -

- The first call to GetContext will create the context - as specified in the .NET application configuration file - under the location spring/context. -

-
- The root application context. -
- - - Returns context based on specified name. - - -

- The first call to GetContext will create the context - as specified in the .NET application configuration file - under the location spring/context. -

-
- The context name. - The specified context, or null, if context with that name doesn't exists. - - If the context name is null or empty - -
- - - Removes all registered - s from this - registry. - - - Raises the event while still holding a lock on - - - - - Allows to check, if a context is already registered - - The context name. - true, if the context is already registered. false otherwise - - - - This event is fired, if ContextRegistry.Clear() is called.
- Clients may register to get informed -
- - This event is fired while still holding a lock on the Registry.
- 'sender' parameter is sent as typeof(ContextRegistry), EventArgs are not used -
-
- - - Gets an object that should be used to synchronize access to ContextRegistry - from the calling code. - - - - - Interface to be implemented by any object that wishes to be notified - of the (typically the - ) that it runs in. - - -

- Note that dependencies can also - be exposed as object properties of type - , populated via strings with - automatic type conversion by the object factory. This obviates the - need for implementing any callback interface just for the purpose of - accessing a specific resource. -

-

- You typically need an - when your application object has to access a variety of file resources - whose names are calculated. A good strategy is to make the object use - a default resource loader but still implement the - interface to allow - for overriding when running in an - . -

-
- Juergen Hoeller - Mark Pollack (.NET) - $Id: IResourceLoaderAware.cs,v 1.8 2007/08/08 17:46:37 bbaia Exp $ - - - -
- - - Gets and sets the - that this object runs in. - - -

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

-
-
- - - Synchronized that should be returned by synchronized - dictionary implementations in order to ensure that the enumeration is thread safe. - - Aleksandar Seovic - $Id: SynchronizedDictionaryEnumerator.cs,v 1.1 2006/05/03 01:13:41 aseovic Exp $ - - - - Synchronized that should be returned by synchronized - collections in order to ensure that the enumeration is thread safe. - - Aleksandar Seovic - $Id: SynchronizedEnumerator.cs,v 1.1 2006/05/03 01:13:41 aseovic Exp $ - - - - A container for validation errors. - - -

- This class groups validation errors by validator names and allows - access to both the complete errors collection and to the errors for a - certain validator. -

-
- Aleksandar Seovic - Goran Milosavljevic - $Id: ValidationErrors.cs,v 1.9 2008/02/05 20:40:26 aseovic Exp $ -
- - - An interface that validation errors containers have to implement. - - Aleksandar Seovic - $Id: IValidationErrors.cs,v 1.1 2008/02/05 20:40:26 aseovic Exp $ - - - - Adds the supplied to this - instance's collection of errors. - - - The provider that should be used for message grouping; can't be - . - - The error message to add. - - If the supplied or is . - - - - - Merges another instance of into this one. - - -

- If the supplied is , - then no errors will be added to this instance, and this method will - (silently) return. -

-
- - The validation errors to merge; can be . - -
- - - Gets the list of errors for the supplied error . - - -

- If there are no errors for the supplied , - an empty will be returned. -

-
- Error key that was used to group messages. - - A list of all s for the supplied lookup . - -
- - - Gets the list of resolved error messages for the supplied lookup . - - -

- If there are no errors for the supplied lookup , - an empty will be returned. -

-
- Error key that was used to group messages. - to resolve messages against. - - A list of resolved error messages for the supplied lookup . - -
- - - Does this instance contain any validation errors? - - -

- If this returns , this means that it (obviously) - contains no validation errors. -

-
- if this instance is empty. -
- - - Gets the list of all error providers. - - - - - Default constructor. - - - - - This property is reserved, apply the - - to the class instead. - - - An that describes the - XML representation of the object that is produced by - the - method and consumed by the - - method. - - - - - Generates an object from its XML representation. - - - The stream - from which the object is deserialized. - - - - - Converts an object into its XML representation. - - - The stream - to which the object is serialized. - - - - - Adds the supplied to this - instance's collection of errors. - - - The provider that should be used for message grouping; can't be - . - - The error message to add. - - If the supplied or is . - - - - - Merges another instance of into this one. - - -

- If the supplied is , - then no errors will be added to this instance, and this method will - (silently) return. -

-
- - The validation errors to merge; can be . - -
- - - Gets the list of errors for the supplied lookup . - - -

- If there are no errors for the supplied lookup , - an empty will be returned. -

-
- Error key that was used to group messages. - - A list of all s for the supplied lookup . - -
- - - Gets the list of resolved error messages for the supplied lookup . - - -

- If there are no errors for the supplied lookup , - an empty will be returned. -

-
- Error key that was used to group messages. - to resolve messages against. - - A list of resolved error messages for the supplied lookup . - -
- - - Does this instance contain any validation errors? - - -

- If this returns , this means that it (obviously) - contains no validation errors. -

-
- if this instance is empty. -
- - - Gets the list of all providers. - - - - - XML utility methods. - - Aleksandar Seovic - $Id: XmlUtils.cs,v 1.5 2007/04/22 00:02:38 oakinger Exp $ - - - - Gets an appropriate implementation - for the supplied . - - The XML that is going to be read. - XML schemas that should be used for validation. - Validation event handler. - - A validating implementation. - - - - - Gets an appropriate implementation - for the supplied . - - The XML that is going to be read. - to be used for resolving external references - XML schemas that should be used for validation. - Validation event handler. - - A validating implementation. - - - - - Gets an appropriate implementation - for the supplied . - - The XML that is going to be read. - - A non-validating implementation. - - - - - Defines methods that dynamic property class has to implement. - - - - - Gets the value of the dynamic property for the specified target object. - - - Target object to get property value from. - - - A property value. - - - - - Gets the value of the dynamic property for the specified target object. - - - Target object to set property value on. - - - A new property value. - - - - - Safe wrapper for the dynamic property. - - - will attempt to use dynamic - property if possible, but it will fall back to standard - reflection if necessary. - - - - - Obtains cached property info or creates a new entry, if none is found. - - - - - Creates a new instance of the safe property wrapper. - - Property to wrap. - - - - Gets the value of the dynamic property for the specified target object. - - - Target object to get property value from. - - - A property value. - - - - - Gets the value of the dynamic property for the specified target object. - - - Target object to set property value on. - - - A new property value. - - - - - Internal PropertyInfo accessor. - - - - - Holds cached Getter/Setter delegates for a Property - - - - - Factory class for dynamic properties. - - Aleksandar Seovic - $Id: DynamicProperty.cs,v 1.3 2008/05/17 11:05:26 oakinger Exp $ - - - - Base class for dynamic members. - - Aleksandar Seovic - $Id: BaseDynamicMember.cs,v 1.1 2007/08/08 04:05:37 bbaia Exp $ - - - - Method attributes constant. - - - - - Sets up target instance for invocation. - - IL generator to use. - Type of target instance. - - - - Sets up invocation argument. - - IL generator to use. - Argument type. - Argument position. - - - - Generates method invocation code. - - IL generator to use. - Flag specifying whether method is static. - Flag specifying whether method is on the value type. - Method to invoke. - - - - Generates code to process return value if necessary. - - IL generator to use. - Type of the return value. - - - - Generates code that throws . - - IL generator to use. - Error message to use. - - - - Creates safe dynamic property instance for the specified . - - -

This factory method will create a dynamic property with a "safe" wrapper.

-

Safe wrapper will attempt to use generated dynamic property if possible, - but it will fall back to standard reflection if necessary.

-
- Property info to create dynamic property for. - Safe dynamic property for the specified . - -
- - - Creates dynamic property instance for the specified . - - Property info to create dynamic property for. - Dynamic property for the specified . - - - - Describes an implementation - that autowires events to handler methods. - - Rick Evans - $Id: AutoWiringEventHandlerValue.cs,v 1.11 2006/11/13 07:04:41 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Wires up the specified handler to the named event on the supplied event source. - - - The object (an object instance, a , etc) - exposing the named event. - - - The handler for the event (an object instance, a , - etc). - - - - - The name of the method that is going to handle the event. - - - - - Performs the matching up of handler methods to one or more source events. - - -

- This class merely marshals the matching of handler methods to the events exposed - by an event source, and then delegates to a concrete - implementation (such as - or - ) to do the heavy lifting of - actually wiring a handler method to an event. -

-

- Note : the order in which handler's are wired up to events is non-deterministic. -

-
-
- - - Creates a new instance of the - class. - - - The object exposing the event (s) being wired up. - - - The name of the event that is being wired up. - - - The object exposing the method (s) being wired to the event. - - - The name of the method that is going to handle the event. - - - - - Wires up events on the source to methods exposed on the handler. - - - - - Wires up the supplied event to any handler methods that match the event - signature. - - The event being wired up. - - - - Only replaces the first occurrence of the placeholder. - - The event whose name is going to be used. - - The method name customised for the name of the supplied event. - - - - - The object exposing the event (s) being wired up. - - - - - The object exposing the method (s) being wired to an event source. - - - - - The of the object that is handling any events. - - - - - The name of the method that is going to handle the event. - - - - - The name of the event that is being wired up. - - - - - A plain-vanilla object definition. - - -

- This is the most common type of object definition; - instances - do not derive from a parent - , and usually - (but not always - see below) have an - - and (optionally) some - and - . -

-

- Note that - instances do not have to specify an - : - This can be useful for deriving - instances - from such definitions, each with it's own - , - inheriting common property values and other settings from the parent. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: RootObjectDefinition.cs,v 1.20 2007/03/16 04:01:43 aseovic Exp $ - -
- - - Common base class for object definitions, factoring out common - functionality from - and - . - - Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: AbstractObjectDefinition.cs,v 1.31 2007/08/27 13:57:43 oakinger Exp $ - - - - Describes a configurable object instance, which has property values, - constructor argument values, and further information supplied by concrete - implementations. - - Rick Evans - $Id: IConfigurableObjectDefinition.cs,v 1.1 2007/07/30 17:52:22 markpollack Exp $ - - - - Describes an object instance, which has property values, constructor - argument values, and further information supplied by concrete implementations. - - -

- This is just a minimal interface: the main intention is to allow - - (like PropertyPlaceholderConfigurer) to access and modify property values. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IObjectDefinition.cs,v 1.14 2007/07/30 17:52:22 markpollack Exp $ -
- - - Return the property values to be applied to a new instance of the object. - - - - - Return the constructor argument values for this object. - - - - - Return the event handlers for any events exposed by this object. - - - - - Return a description of the resource that this object definition - came from (for the purpose of showing context in case of errors). - - - - - Is this object definition a "template", i.e. not meant to be instantiated - itself but rather just serving as an object definition for configuration - templates used by . - - - if this object definition is a "template". - - - - - Is this object definition "abstract", i.e. not meant to be instantiated - itself but rather just serving as parent for concrete child object - definitions. - - - if this object definition is "abstract". - - - - - Return whether this a Singleton, with a single, shared instance - returned on all calls. - - -

- If , an object factory will apply the Prototype - design pattern, with each caller requesting an instance getting an - independent instance. How this is defined will depend on the - object factory implementation. Singletons are the commoner type. -

-
-
- - - Is this object lazily initialized? - -

- Only applicable to a singleton object. -

-

- If , it will get instantiated on startup by object factories - that perform eager initialization of singletons. -

-
-
- - - Returns the of the object definition (if any). - - - A resolved object . - - - If the of the object definition is not a - resolved or . - - - - - Returns the of the - of the object definition. - - Note that this does not have to be the actual type name used at runtime, - in case of a child definition overrding/inheriting the the type name from its - parent. It can be modifed during object factory post-processing, typically - replacing the original class name with a parsed variant of it. - Hence, do not consider this to be the definitive bean type at runtime - but rather only use it for parsing purposes at the individual object - definition level. - - - - - The autowire mode as specified in the object definition. - - -

- This determines whether any automagical detection and setting of - object references will happen. Default is - , - which means there's no autowire. -

-
-
- - - The object names that this object depends on. - - -

- The object factory will guarantee that these objects get initialized - before. -

-

- Note that dependencies are normally expressed through object properties - or constructor arguments. This property should just be necessary for - other kinds of dependencies like statics (*ugh*) or database - preparation on startup. -

-
-
- - - The name of the initializer method. - - -

- The default is , in which case there is no initializer method. -

-
-
- - - Return the name of the destroy method. - - -

- The default is , in which case there is no destroy method. -

-
-
- - - The name of the factory method to use (if any). - - -

- This method will be invoked with constructor arguments, or with no - arguments if none are specified. The static method will be invoked on - the specified . -

-
-
- - - The name of the factory object to use (if any). - - - - - Return the property values to be applied to a new instance of the object. - - - - - Return the constructor argument values for this object. - - - - - The method overrides (if any) for this object. - - - The method overrides (if any) for this object; may be an - empty collection but is guaranteed not to be - . - - - - - Return the event handlers for any events exposed by this object. - - - - - Return a description of the resource that this object definition - came from (for the purpose of showing context in case of errors). - - - - - Is this object definition "abstract", i.e. not meant to be instantiated - itself but rather just serving as parent for concrete child object - definitions. - - - if this object definition is "abstract". - - - - - Returns the of the object definition (if any). - - - A resolved object . - - - If the of the object definition is not a - resolved or . - - - - - Returns the of the - of the object definition (if any). - - - - - Return whether this a Singleton, with a single, shared instance - returned on all calls. - - -

- If , an object factory will apply the Prototype - design pattern, with each caller requesting an instance getting an - independent instance. How this is defined will depend on the - object factory implementation. Singletons are the commoner type. -

-
-
- - - Is this object lazily initialized? - -

- Only applicable to a singleton object. -

-

- If , it will get instantiated on startup by object factories - that perform eager initialization of singletons. -

-
-
- - - The autowire mode as specified in the object definition. - - -

- This determines whether any automagical detection and setting of - object references will happen. Default is - , - which means there's no autowire. -

-
-
- - - The dependency check code. - - - - - The object names that this object depends on. - - -

- The object factory will guarantee that these objects get initialized - before. -

-

- Note that dependencies are normally expressed through object properties - or constructor arguments. This property should just be necessary for - other kinds of dependencies like statics (*ugh*) or database - preparation on startup. -

-
-
- - - The name of the initializer method. - - -

- The default is , in which case there is no initializer method. -

-
-
- - - Return the name of the destroy method. - - -

- The default is , in which case there is no destroy method. -

-
-
- - - The name of the factory method to use (if any). - - -

- This method will be invoked with constructor arguments, or with no - arguments if none are specified. The static method will be invoked on - the specified . -

-
-
- - - The name of the factory object to use (if any). - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Creates a new instance of the - - class. - - - The object definition used to initialise the member fields of this - instance. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Resolves the type of the object, resolving it from a specified - object type name if necessary. - - - A resolved instance. - - - If the type cannot be resolved. - - - - - Validate this object definition. - - - In the case of a validation failure. - - - - - Validates all - - - - - Validate the supplied . - - - The - to be validated. - - - - - Override settings in this object definition from the supplied - object definition. - - - The object definition used to override the member fields of this instance. - - - - - Returns a that represents the current - . - - - A that represents the current - . - - - - - The property values that are to be applied to the object - upon creation. - - -

- Setting the value of this property to - will merely result in a new (and empty) - - collection being assigned to the property value. -

-
- - The property values (if any) for this object; may be an - empty collection but is guaranteed not to be - . - -
- - - Does this definition have any - ? - - - if this definition has at least one - . - - - - - The constructor argument values for this object. - - -

- Setting the value of this property to - will merely result in a new (and empty) - - collection being assigned. -

-
- - The constructor argument values (if any) for this object; may be an - empty collection but is guaranteed not to be - . - -
- - - The event handler values for this object. - - -

- Setting the value of this property to - will merely result in a new (and empty) - - collection being assigned. -

-
- - The event handler values (if any) for this object; may be an - empty collection but is guaranteed not to be - . - -
- - - The method overrides (if any) for this object. - - -

- Setting the value of this property to - will merely result in a new (and empty) - - collection being assigned to the property value. -

-
- - The method overrides (if any) for this object; may be an - empty collection but is guaranteed not to be - . - -
- - - Is this definition a singleton, with - a single, shared instance returned on all calls to an enclosing - container (typically an - or - ). - - -

- If , an object factory will apply the - prototype design pattern, with each caller requesting an - instance getting an independent instance. How this is defined - will depend on the object factory implementation. singletons - are the commoner type. -

-
- -
- - - Gets a value indicating whether this instance is prototype, with an independent instance - returned for each call. - - - true if this instance is prototype; otherwise, false. - - - - - Is this object lazily initialized? - -

- Only applicable to a singleton object. -

-

- If , it will get instantiated on startup - by object factories that perform eager initialization of - singletons. -

-
-
- - - Is this object definition a "template", i.e. not meant to be instantiated - itself but rather just serving as an object definition for configuration - templates used by . - - - if this object definition is a "template". - - - - - Is this object definition "abstract", i.e. not meant to be - instantiated itself but rather just serving as a parent for concrete - child object definitions. - - - if this object definition is "abstract". - - - - - The of the object definition (if any). - - - A resolved object . - - - If the of the object definition is not a - resolved or . - - - - - - Is the of the object definition a resolved - ? - - - - - Returns the of the - of the object definition (if any). - - - - - A description of the resource that this object definition - came from (for the purpose of showing context in case of errors). - - - - - The autowire mode as specified in the object definition. - - -

- This determines whether any automagical detection and setting of - object references will happen. The default is - , - which means that no autowiring will be performed. -

-
-
- - - Gets the resolved autowire mode. - - -

- This resolves - - to one of - - or - . -

-
-
- - - The dependency checking mode. - - -

- The default is - . -

-
-
- - - The object names that this object depends on. - - -

- The object factory will guarantee that these objects get initialized - before this object definition. -

- - Dependencies are normally expressed through object properties - or constructor arguments. This property should just be necessary for - other kinds of dependencies such as statics (*ugh*) or database - preparation on startup. - -
-
- - - The name of the initializer method. - - -

- The default value is the constant, - in which case there is no initializer method. -

-
-
- - - Return the name of the destroy method. - - -

- The default value is the constant, - in which case there is no destroy method. -

-
-
- - - The name of the factory method to use (if any). - - -

- This method will be invoked with constructor arguments, or with no - arguments if none are specified. The - method will be invoked on the specified - . -

-
-
- - - The name of the factory object to use (if any). - - - - - Does this object definition have any constructor argument values? - - - if his object definition has at least one - element in it's - - property. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - - class. - - - The of the object to instantiate. - - - - - Creates a new instance of the - - class. - - - The of the object to instantiate. - - - if this object definition defines a singleton object. - - - - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - - The of the object to instantiate. - - - The - to be applied to a new instance of the object. - - - The to be applied to - a new instance of the object. - - - - - Creates a new instance of the - class - for a singleton using the supplied - . - - - The of the object to instantiate. - - - The autowiring mode. - - - - - Creates a new instance of the - class - for a singleton using the supplied - . - - - The of the object to instantiate. - - - The autowiring mode. - - - Whether to perform a dependency check for objects (not - applicable to autowiring a constructor, thus ignored there) - - - - - Creates a new instance of the - class - with the given singleton status, providing property values. - - - The of the object to instantiate. - - - The to be applied to - a new instance of the object. - - - - - Creates a new instance of the - class - with the given singleton status, providing property values. - - - The of the object to instantiate. - - - The to be applied to - a new instance of the object. - - - if this object definition defines a singleton object. - - - - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - -

- Takes an object class name to avoid eager loading of the object class. -

-
- - The assembly qualified of the object to instantiate. - - - The to be applied to - a new instance of the object. - - - The - to be applied to a new instance of the object. - -
- - - Creates a new instance of the - class. - - -

- Deep copy constructor. -

-
- - The definition that is to be copied. - -
- - - Validate this object definition. - - - In the case of a validation failure. - - - - - A that represents the current - . - - - A that represents the current - . - - - - - An - implementation that simply returns the result of a lookup in an - associated IoC container. - - -

- This class is Spring.NET's implementation of Dependency Lookup via - Method Injection. -

-

- This class is reserved for internal use within the framework; it is - not intended to be used by application developers using Spring.NET. -

-
- Rick Evans - $Id: LookupMethodReplacer.cs,v 1.3 2007/07/30 17:52:22 markpollack Exp $ -
- - - An - implementation that provides some convenience support for - derived classes. - - -

- This class is reserved for internal use within the framework; it is - not intended to be used by application developers using Spring.NET. -

-
- Rick Evans - $Id: AbstractMethodReplacer.cs,v 1.3 2007/07/30 17:52:22 markpollack Exp $ -
- - - Permits the (re)implementation of an arbitrary method on a Spring.NET - IoC container managed object. - - -

- Encapsulates the notion of the Method-Injection form of Dependency - Injection. -

-

- Methods that are dependency injected with implementations of this - interface may be (but need not be) , in which - case the container will create a concrete subclass of the - class prior to instantiation. -

-

- Do not use this mechanism as a means of AOP. See the reference - manual for examples of appropriate usages of this interface. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: IMethodReplacer.cs,v 1.2 2006/04/09 07:18:49 markpollack Exp $ -
- - - Reimplement the supplied . - - - The instance whose is to be - (re)implemented. - - - The method that is to be (re)implemented. - - The target method's arguments. - - The result of the (re)implementation of the method call. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such has no - publicly visible constructors. -

-
- - The object definition that is the target of the method replacement. - - - The enclosing IoC container with which the above - is associated. - - - If either of the supplied arguments is . - -
- - - Is ; derived classes must supply an implementation. - - - The instance whose is to be - (re)implemented. - - - The method that is to be (re)implemented. - - The target method's arguments. - The result of the object lookup. - - - - Helper method for subclasses to retrieve the appropriate - for the - supplied . - - - The to use to retrieve - the appropriate - . - - - The appropriate - . - - - - - Helper method for subclasses to lookup an object from an enclosing - IoC container. - - - The name of the object that is to be looked up. - - - The named object. - - - - - Creates a new instance of the - class. - - - The object definition that is the target of the method replacement. - - - The enclosing IoC container with which the above - is associated. - - - If either of the supplied arguments is . - - - - - Reimplements the supplied by returning the - result of an object lookup in an enclosing IoC container. - - - The instance whose is to be - (re)implemented. - - - The method that is to be (re)implemented. - - The target method's arguments. - - The result of the object lookup. - - - - - Allows for the configuration of individual object property values from - a .NET .config file. - - -

- Useful for custom .NET .config files targetted at system administrators - that override object properties configured in the application context. -

-

- Two concrete implementations are provided in the Spring.NET core library: - - - - - for <add key="placeholderKey" value="..."/> style - overriding (pushing values from a .NET .config file into object - definitions). - - - - - - for replacing "${...}" placeholders (pulling values from a .NET .config - file into object definitions). - - - -

-

- Please refer to the API documentation for the concrete implementations - listed above for example usage. -

-
- Juergen Hoeller - Simon White (.NET) - - - $Id: PropertyResourceConfigurer.cs,v 1.19 2007/08/27 14:49:42 oakinger Exp $ -
- - - The default configuration section name to use if none is explictly supplied. - - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Modify the application context's internal object factory after its - standard initialization. - - - The object factory used by the application context. - - - In case of errors. - - - - - - Loads properties from the configuration sections - specified in into . - - The instance to be filled with properties. - - - - Apply the given properties to the supplied - . - - - The - used by the application context. - - The properties to apply. - - If an error occured. - - - - - Validates the supplied . - - -

- Basically, if external locations are specified, ensure that either - one or a like number of config sections are also specified. -

-
- - The to be validated. - -
- - - Simply initializes the supplied - collection with this instances default - (if any). - - - The collection to be so initialized. - - - - - The policy for resolving conflicting property overrides from - several resources. - - -

- When merging conflicting property overrides from several resources, - should append an override with the same key be appended to the - current value, or should the property override from the last resource - processed override previous values? -

-

- The default value is ; i.e. a property - override from the last resource to be processed overrides previous - values. -

-
- - if the property override from the last resource - processed overrides previous values. - -
- - - Return the order value of this object, where a higher value means greater in - terms of sorting. - - The order value. - - - - - The default properties to be applied. - - -

- These are to be considered defaults, to be overridden by values - loaded from other resources. -

-
-
- - - The location of the .NET .config file that contains the property - overrides that are to be applied. - - - - - The locations of the .NET .config files containing the property - overrides that are to be applied. - - - - - The configuration sections to look for within the .config files. - - - - - - - Should a failure to find a .config file be ignored? - - -

- is only appropriate if the .config file is - completely optional. The default is . -

-
- - if a failure to find a .config file is to be - ignored. - -
- - - An implementation - that exposes an arbitrary target object under a different name. - - -

- Usually, the target object will reside in a different object - definition file, using this - to link it in - and expose it under a different name. Effectively, this corresponds - to an alias for the target object. -

- - For XML based object definition files, a <alias> - tag is available that effectively achieves the same. - -
- Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectReferenceFactoryObject.cs,v 1.3 2007/03/16 04:01:38 aseovic Exp $ - -
- - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - - The name of the target object. - - -

- The target object may potentially be defined in a different object - definition file. -

-
- The name of the target object. -
- - - Return the type of object that this - creates, or - if not known in advance. - - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - - Callback that supplies the owning factory to an object instance. - - - The owning - (may not be ). The object can immediately - call methods on the factory. - - - In case of initialization errors. - - - - - - implementation that - creates instances of the class. - - -

- Typically used for retrieving shared - instances for common topics (such as the 'DAL', 'BLL', etc). The - - property determines the name of the - Common.Logging logger. -

-
- Rick Evans - - $Id: LogFactoryObject.cs,v 1.3 2007/10/21 18:17:41 markpollack Exp $ -
- - - Creates a new instance of the - - class. - - - - - Creates a new instance of the - - class. - - - The name of the instance served up by - this factory. - - - If the supplied is - or contains only whitespace character(s). - - - - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - An instance (possibly shared or independent) of the object - managed by this factory. - - - - - - Invoked by an - after it has set all object properties supplied - (and satisfied the - - and - interfaces). - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - - The name of the instance served up by - this factory. - - - The name of the instance served up by - this factory. - - - If the supplied to the setter is - or contains only whitespace character(s). - - - - - Return the type of object that this - creates, or - if not known in advance. - - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - - The various autowiring modes. - - Rick Evans - $Id: AutoWiringMode.cs,v 1.8 2007/03/16 04:01:34 aseovic Exp $ - - - - Do not autowire. - - - - - Autowire by name. - - - - - Autowire by . - - - - - Autowiring by constructor. - - - - - The autowiring strategy is to be determined by introspection - of the object's . - - - - - Default implementation of the - interface. - - Griffin Caprio - $Id: EventRegistry.cs,v 1.7 2006/04/09 07:18:47 markpollack Exp $ - - - - Creates a new instance of the EventRegistry class. - - - - - Adds the input object to the list of publishers. - - - This publishes all events of the source object to any object - wishing to subscribe - - The source object to publish. - - - - Subscribes to all events published, if the subscriber implements - compatible handler methods. - - The subscriber to use. - - - - Subscribes to published events of all objects of a given type, if the - subscriber implements compatible handler methods. - - The subscriber to use. - - The target to subscribe to. - - - - - The list of event publishers. - - The list of event publishers. - - - - - implementation that allows for convenient registration of custom - IResource implementations. - - -

- Because the - class implements the - - interface, instances of this class that have been exposed in the - scope of an - will - automatically be picked up by the application context and made - available to the IoC container whenever resolution of IResources is required. -

-
- Mark Pollack - $Id: ResourceHandlerConfigurer.cs,v 1.3 2007/08/08 17:47:13 bbaia Exp $ - - -
- - - Registers custom IResource implementations. The supplied - is not used since IResourse implementations - are registered with a global - - - The object factory. - - - In case of errors. - - - - - The IResource implementations, i.e. resource handlers, to register. - - -

- The has the - contains the resource protocol name as the key and type as the value. - The key name can either be a string or an object, in which case - ToString() will be used to obtain the string name. - The value can be the fully qualified name of the IResource - implementation, a string, or - an actual of the IResource class - -

-
-
- - - Defines an interface that resource cache adapters have to implement. - - Aleksandar Seovic - $Id: IResourceCache.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Gets the list of resources from cache. - - Target to get a list of resources for. - Resource culture. - A list of cached resources for the specified target object and culture. - - - - Puts the list of resources in the cache. - - Target to cache a list of resources for. - Resource culture. - A list of resources to cache. - A list of cached resources for the specified target object and culture. - - - - Represents logical OR operator. - - Aleksandar Seovic - $Id: OpOR.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical OR operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents arithmetic addition operator. - - Aleksandar Seovic - $Id: OpADD.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic addition operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed list initializer node in the navigation expression. - - Aleksandar Seovic - $Id: ListInitializerNode.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Creates new instance of the list defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the distinct processor. - - Aleksandar Seovic - $Id: DistinctProcessor.cs,v 1.1 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns distinct items from the collection. - - - The source collection to process. - - - 0: boolean flag specifying whether to include null - in the results or not. Default is false, which means that - null values will not be included in the results. - - - A collection containing distinct source collection elements. - - - If there is more than one argument, or if the single optional argument - is not Boolean. - - - - - Implementation of the non-null processor. - - Aleksandar Seovic - $Id: NonNullProcessor.cs,v 1.2 2007/07/31 21:43:52 markpollack Exp $ - - - - Returns non-null items from the collection. - - - The source collection to process. - - - Ignored. - - - A collection containing non-null source collection elements. - - - - - Thrown when a method (typically a property getter or setter invoked via reflection) - throws an exception, analogous to a . - - Rod Johnson - Mark Pollack (.NET) - $Id: MethodInvocationException.cs,v 1.1 2007/07/31 00:08:42 markpollack Exp $ - - - - - Creates a new instance of the MethodInvocationException class. - - - - - Creates a new instance of the MethodInvocationException class. - - - A message about the exception. - - - - - Creates a new instance of the MethodInvocationException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Constructor to use when an exception results from a - . - - - The raised by the invoked property. - - - The that - resulted in an exception. - - - - - Creates a new instance of the MethodInvocationException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - The error code string for this exception. - - - - - Convenience base class for - implementations, pre-implementing typical behavior. - - -

- The method will - check whether a or - can be opened; - will always return - ; - and - throw an exception; - and will - return the value of the - property. -

-
- Juergen Hoeller - Rick Evans (.NET) - Aleksandar Seovic (.NET) - $Id: AbstractResource.cs,v 1.25 2007/12/06 22:08:47 markpollack Exp $ - -
- - - The central abstraction for Spring.NET's access to resources such as - s. - - -

- This interface encapsulates a resource descriptor that abstracts away - from the underlying type of resource; possible resource types include - files, memory streams, and databases (this list is not exhaustive). -

-

- A can definitely be opened and accessed - for every such resource; if the resource exists in a physical form (for - example, the resource is not an in-memory stream or one that has been - extracted from an assembly or ZIP file), a or - can also be accessed. The actual - behavior is implementation-specific. -

-

- This interface, when used in tandem with the - interface, forms the backbone of - Spring.NET's resource handling. Third party extensions or libraries - that want to integrate external resources with Spring.NET's IoC - container are encouraged expose such resources via this abstraction. -

-

- Interfaces cannot obviously mandate implementation, but derived classes - are strongly encouraged to expose a constructor that takes a - single as it's sole argument (see example). - Exposing such a constructor will make your custom - implementation integrate nicely - with the class. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IResource.cs,v 1.12 2007/08/08 17:46:55 bbaia Exp $ - - -
- - - Simple interface for objects that are sources for - s. - - -

- This is the base interface for the abstraction encapsulated by - Spring.NET's interface. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IInputStreamSource.cs,v 1.10 2007/08/08 17:46:55 bbaia Exp $ - -
- - - Return an for this resource. - - - - Clients of this interface must be aware that every access of this - property will create a fresh ; - it is the responsibility of the calling code to close any such - . - - - - An . - - - If the stream could not be opened. - - - - - Creates a resource relative to this resource. - - - The path (always resolved as relative to this resource). - - - The relative resource. - - - If the relative resource could not be created from the supplied - path. - - - If the resource does not support the notion of a relative path. - - - - - Does this resource represent a handle with an open stream? - - -

- If , the - cannot be read multiple times, and must be read and then closed to - avoid resource leaks. -

-

- Will be for all usual resource descriptors. -

-
- - if this resource represents a handle with an - open stream. - - -
- - - Returns the handle for this resource. - - -

- For safety, always check the value of the - property prior to - accessing this property; resources that cannot be exposed as - a will typically return - from a call to the - property. -

-
- - The handle for this resource. - - - If the resource is not available or cannot be exposed as a - . - - - -
- - - Returns a handle for this resource. - - -

- For safety, always check the value of the - property prior to - accessing this property; resources that cannot be exposed as - a will typically return - from a call to the - property. -

-
- - The handle for this resource. - - - If the resource is not available on a filesystem, or cannot be - exposed as a handle. - - - -
- - - Returns a description for this resource. - - -

- The description is typically used for diagnostics and other such - logging when working with the resource. -

-

- Implementations are also encouraged to return this value from their - method. -

-
- - A description for this resource. - -
- - - Does this resource actually exist in physical form? - - -

- An example of a resource that physically exists would be a - file on a local filesystem. An example of a resource that does not - physically exist would be an in-memory stream. -

-
- - if this resource actually exists in physical - form (for example on a filesystem). - - - -
- - - The default special character that denotes the base (home, or root) - path. - - -

- Will be resolved (by those - implementations that support it) to the home (or root) path for - the specific implementation. -

-

- For example, in the case of a web application this will (probably) - resolve to the virtual directory of said web application. -

-
-
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
- - A string representation of the resource. - - - If the supplied is - or contains only whitespace character(s). - -
- - - Strips any protocol name from the supplied - . - - -

- If the supplied does not - have any protocol associated with it, then the supplied - will be returned as-is. -

-
- - - GetResourceNameWithoutProtocol("http://www.mycompany.com/resource.txt"); - // returns www.mycompany.com/resource.txt - - - - The name of the resource. - - - The name of the resource without the protocol name. - -
- - - Resolves the supplied to its value - sans any leading protocol. - - - The name of the resource. - - - The name of the resource without the protocol name. - - - - - - Resolves the presence of the - value - in the supplied into a path. - - -

- The default implementation simply returns the supplied - as is. -

-
- - The name of the resource. - - - The string that is a placeholder for a base path. - - - The name of the resource with any - value having been resolved into an actual path. - -
- - - This implementation returns the - of this resource. - - - - - - Determines whether the specified is - equal to the current . - - -

- This implementation compares values. -

-
- -
- - - Serves as a hash function for a particular type, suitable for use - in hashing algorithms and data structures like a hash table. - - -

- This implementation returns the hashcode of the - property. -

-
- -
- - - Factory Method. Create a new instance of the current resource type using the given resourceName - - - - - The ResourceLoader to be used for resolving relative resources - - - - - Does the supplied relative ? - - - The name of the resource to test. - - - if resource name is relative; - otherwise . - - - - - Creates a new resource that is relative to this resource based on the - supplied . - - -

- This method can accept either a fully qualified resource name or a - relative resource name as it's parameter. -

-

- A fully qualified resource is one that has a protocol prefix and - all elements of the resource name. All other resources are treated - as relative to this resource, and the following rules are used to - locate a relative resource: -

- - - If the starts with '..', - the current resource path is navigated backwards before the - is concatenated to the current - of - this resource. - - - If the starts with '/', the - current resource path is ignored and a new resource name is - appended to the - of - this resource. - - - If the starts with '.' or a - letter, a new path is appended to the current - of - this resource. - - -
- - The name of the resource to create. - - The relative resource. - - If the process of resolving the relative resource yielded an - invalid URI. - - - If this resource does not support the resolution of relative - resources (as determined by the value of the - - property). - - -
- - - Calculates a new resource path based on the supplied - . - - - The relative path to evaluate. - - The newly calculated resource path. - - - - The special character that denotes the base (home, or root) - path. - - -

- Will be resolved (by those - implementations that support it) to the home (or root) path for - the specific implementation. -

-

- For example, in the case of a web application this will (probably) - resolve to the virtual directory of said web application. -

-
- -
- - - Return an for this resource. - - - An . - - - If the stream could not be opened. - - - - - - Returns a description for this resource. - - - A description for this resource. - - - - - - Returns the protocol associated with this resource (if any). - - -

- The value of this property may be if no - protocol is associated with the resource type (for example if the - resource is a memory stream). -

-
- - The protocol associated with this resource (if any). - -
- - - Does this resource represent a handle with an open stream? - - -

- This, the default implementation, always returns - . -

-
- - if this resource represents a handle with an - open stream. - - -
- - - Returns the handle for this resource. - - -

- This, the default implementation, always throws a - , assuming that the - resource cannot be exposed as a . -

-
- - The handle for this resource. - - - This, the default implementation, always throws a - . - - -
- - - Returns a handle for this resource. - - -

- This, the default implementation, always throws a - , assuming that the - resource cannot be resolved to an absolute file path. -

-
- - The handle for this resource. - - - This implementation always throws a - . - - - -
- - - Does this resource actually exist in physical form? - - -

- This implementation checks whether a - can be opened, falling back to whether a - can be opened. -

-

- This will cover both directories and content resources. -

-

- This implementation will also return if - permission to the (file's) path is denied. -

-
- - if this resource actually exists in physical - form (for example on a filesystem). - - - -
- - - Does this support relative - resource retrieval? - - -

- This property is generally to be consulted prior to attempting - to attempting to access a resource that is relative to this - resource (via a call to - ). -

-

- This, the default implementation, always returns - . -

-
- - if this - supports relative resource - retrieval. - -
- - - Gets the root location of the resource. - - -

- Where root resource can be taken to mean that part of the resource - descriptor that doesn't change when a relative resource is looked - up. Examples of such a root location would include a drive letter, - a web server name, an assembly name, etc. -

-
- - The root location of the resource. - - - This, the default implementation, always throws a - . - -
- - - Gets the current path of the resource. - - -

- An example value of this property would be the name of the - directory containing a filesystem based resource. -

-
- - The current path of the resource. - - - This, the default implementation, always throws a - . - -
- - - Gets those characters that are valid path separators for the - resource type. - - -

- An example value of this property would be the - and - values for a - filesystem based resource. -

-

- Any derived classes that override this method are expected to - return a new array for each access of this property. -

-
- - Those characters that are valid path separators for the resource - type. - - - This, the default implementation, always throws a - . - -
- - - XML resource reader. - - -

- Navigates through an XML resource and invokes parsers registered - with the . -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: DefaultObjectDefinitionDocumentReader.cs,v 1.9 2007/08/27 14:49:43 oakinger Exp $ -
- - - SPI for parsing an XML document that contains Spring object definitions. - Used by for actually parsing a DOM - document. - - Instantiated per document to parse: Implementations can hold state in - instance variables during the execution of the RegisterObjectDefinitions - method, for example global settings that are defined for all object definitions - in the document. - - Juergen Hoeller - Rob Harrop - Mark Pollack (.NET) - - - - - Read object definitions from the given DOM element, and register - them with the given object registry. - - The DOM element containing object definitions, usually the - root (document) element. - The current context of the reader. Includes - the resource being parsed - - The number of object definitions that were loaded. - - - In case of parsing errors. - - - - - The shared instance for this class (and derived classes). - - - - - Creates a new instance of the DefaultObjectDefinitionDocumentReader class. - - - - - Read object definitions from the given DOM element, and register - them with the given object registry. - - The DOM element containing object definitions, usually the - root (document) element. - The current context of the reader. Includes - the resource being parsed - - The number of object definitions that were loaded. - - - In case of parsing errors. - - - - - Parses object definitions starting at the given - using the passed . - - The root element to start parsing from. - The instance to use. - - - - Parses the default element. - - The element. - The helper. - - - - Loads external XML object definitions from the resource described by the supplied - . - - The XML element describing the resource. - - If the resource could not be imported. - - - - - Parses the given alias element, registering the alias with the registry. - - The alias element. - The registry. - - - - Parse an object definition and register it with the object factory.. - - The element containing the object definition. - The helper. - - - - - - Allow the XML to be extensible by processing any custom element types last, - after we finished processing the objct definitions. This method is a natural - extension point for any other custom post-processing of the XML. - - The default implementation is empty. Subclasses can override this method to - convert custom elements into standard Spring object definitions, for example. - Implementors have access to the parser's object definition reader and the - underlying XML resource, through the corresponding properties. - - - The root. - - - - Allow the XML to be extensible by processing any custom element types first, - before we start to process the object definitions. - - This method is a natural - extension point for any other custom pre-processing of the XML. -

The default implementation is empty. Subclasses can override this method to - convert custom elements into standard Spring object definitions, for example. - Implementors have access to the parser's object definition reader and the - underlying XML resource, through the corresponding properties. -

-
- The root element of the XML document. -
- - - Creates an instance for the given and element. - - the to create the - the root to start reading from - a new instance - - - - Gets the reader context. - - The reader context. - - - - An - implementation that supports method injection. - - -

- Classes that want to take advantage of method injection must meet some - stringent criteria. Every method that is to be method injected - must be defined as either or - . An - will be thrown if these criteria are not met. -

-
- Rick Evans - $Id: MethodInjectingInstantiationStrategy.cs,v 1.13 2008/05/02 16:44:44 markpollack Exp $ -
- - - Simple object instantiation strategy for use in - implementations. - - -

- Does not support method injection, although it provides hooks for subclasses - to override to add method injection support, for example by overriding methods. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: SimpleInstantiationStrategy.cs,v 1.18 2008/04/07 00:30:34 bbaia Exp $ - -
- - - The shared instance for this class (and derived classes). - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - An instance of the object described by the supplied - from the supplied . - - - - - Gets the zero arg ConstructorInfo object, if the type offers such functionality. - - The type. - Zero argument ConstructorInfo - - If the type does not have a zero-arg constructor. - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - The to be used to instantiate - the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - The to be used to get the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - - - - - Instantiate an instance of the object described by the supplied - from the supplied , - injecting methods as appropriate. - - -

- The default implementation of this method is to throw a - . -

-

- Derived classes can override this method if they can instantiate an object - with the Method Injection specified in the supplied - . Instantiation should use a no-arg constructor. -

-
- - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be a - or zero length string if we're autowiring an object that - doesn't belong to the supplied . - - - The owning - - - An instance of the object described by the supplied - from the supplied . - -
- - - Instantiate an instance of the object described by the supplied - from the supplied , - injecting methods as appropriate. - - -

- The default implementation of this method is to throw a - . -

-

- Derived classes can override this method if they can instantiate an object - with the Method Injection specified in the supplied - . Instantiation should use the supplied - and attendant . -

-
- - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - The to be used to instantiate - the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - -
- - - The name of the dynamic assembly that holds dynamically created code - - - - - A cache of generated instances, keyed on - the object name for which the was generated. - - - - - Instantiate an instance of the object described by the supplied - from the supplied , - injecting methods as appropriate. - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the - or zero length string if we're autowiring an - object that doesn't belong to the supplied - . - - - The owning - - - An instance of the object described by the supplied - from the supplied . - - - - - - Instantiate an instance of the object described by the supplied - from the supplied , - injecting methods as appropriate. - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the - or zero length string if we're autowiring an - object that doesn't belong to the supplied - . - - - The owning - - - The to be used to instantiate - the object. - - - Any arguments to the supplied . May be null. - - - An instance of the object described by the supplied - from the supplied . - - - - - - Instantiate an instance of the object described by the supplied - from the supplied , - injecting methods as appropriate. - - -

- This method dynamically generates a subclass that supports method - injection for the supplied . It then - instantiates an new instance of said type using the constructor - identified by the supplied , - passing the supplied to said - constructor. It then manually injects (generic) method replacement - and method lookup instances (of - ) into - the new instance: those methods that are 'method-injected' will - then delegate to the approriate - - instance to effect the actual method injection. -

-
- - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the - or zero length string if we're autowiring an - object that doesn't belong to the supplied - . - - - The owning - - - The parameter s to use to find the - appropriate constructor to invoke. - - - The aguments that are to be passed to the appropriate constructor - when the object is being instantiated. - - - A new instance of the defined by the - supplied . - -
- - - A factory that generates subclasses of those - classes that have been configured for the Method-Injection form of - Dependency Injection. - - -

- This class is designed as for one-shot usage; i.e. it must - be used to generate exactly one method injected subclass and - then discarded (it maintains state in instance fields). -

-
-
- - - The name of the generated - property (for method replacement). - - -

- Exists so that clients of this class can use this name to set properties reflectively - on the dynamically generated subclass. -

-
-
- - - The name of the generated - property (for method lookup). - - -

- Exists so that clients of this class can use this name to set properties reflectively - on the dynamically generated subclass. -

-
-
- - - Creates a new instance of the - class. - - - The in which - the generated is to be defined. - - - The object definition that is the target of the method injection. - - - If either of the supplied arguments is . - - - - - Builds a suitable for Method-Injection. - - - A suitable for Method-Injection. - - - - - Defines overrides for those methods that are configured with an appropriate - . - - - The overarching that is defining - the generated . - - - - - Override the supplied with the logic - encapsulated by the - - defined by the supplied . - - - The builder for the subclass that is being generated. - - - The method on the superclass that is to be overridden. - - - The field defining the - - that the overridden method will delegate to to do the 'actual' - method injection logic. - - - - - Defines the parameters to the method that is being overridden. - - -

- Since we are simply overridding a method (in this method - injection context), all we do here is simply copy the - parameters (since we want a method with the exact same parameters). -

-
- - The parameters to the original method that is being overridden. - - - The builder we are using to define the new overridden method. - -
- - - Generates the MSIL for actually returning a return value if the - supplied is not - . - - - The definition of the return value; if , it - means that no return value is to required (a void - return type). - - - The to emit - the MSIL to. - - - - - Generates the MSIL for a return value if the supplied - returns a value. - - - The method to be checked. - - - The to emit - the MSIL to. - - - The return value, or if the method does not - return a value (has a void return type). - - - - - Pushes (sets up) the arguments for a call to the - - method of an appropriate - . - - - The parameters to the original method (will be bundled - up into a generic object[] and passed as the third - argument to the - - invocation. - - - The to emit - the MSIL to. - - - - - Simply generates the IL for a write only property for the - . - - - The in which the property is defined. - - - The name of the (to be) generated property. - - - The (instance) field that the property is to 'set'. - - - - - The various modes of dependency checking. - - Rick Evans (.NET) - - - - DO not do any dependency checking. - - - - - Check object references. - - - - - Just check primitive (string, int, etc) values. - - - - - Check everything. - - - - - Exception thrown when an - is asked for an object instance name for which it cannot find a definition. - - Rod Johnson - Rick Evans (.NET) - $Id: NoSuchObjectDefinitionException.cs,v 1.8 2006/04/09 07:18:48 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - Name of the missing object. - - - A further, detailed message describing the problem. - - - - - Creates a new instance of the - class. - - - The of the missing object. - - - A further, detailed message describing the problem. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - Return the required of object, if it was a - lookup by that failed. - - - - - Return the name of the missing object, if it was a lookup by name that - failed. - - - - - Simple factory for shared instances. - - Juergen Hoeller - Simon White (.NET) - $Id: DictionaryFactoryObject.cs,v 1.7 2007/07/31 03:47:39 markpollack Exp $ - - - - Simple template superclass for - implementations that allows for the creation of a singleton or a prototype - instance (depending on a flag). - - - If the value of the - - property is (this is the default), this class - will create a single instance of it's object upon initialization and - subsequently return the singleton instance; else, this class will - create a new instance each time (prototype mode). Subclasses must - implement the - - template method to actually create objects. - - Juergen Hoeller - Keith Donald - Simon White (.NET) - $Id: AbstractFactoryObject.cs,v 1.13 2007/03/16 04:01:34 aseovic Exp $ - - - - Invoked by an - after it has injected all of an object's dependencies. - - - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - - - - - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - - Template method that subclasses must override to construct - the object returned by this factory. - - - Invoked once immediately after the initialization of this - in the case of - a singleton; else, on each call to the - - method. - - - If an exception occured during object creation. - - - A distinct instance of the object created by this factory. - - - - - Performs cleanup on any cached singleton object. - - -

- Only makes sense in the context of a singleton object. -

-
- - -
- - - Is the object managed by this factory a singleton or a prototype? - - -

- Please note that changing the value of this property after - this factory object instance has been created by an enclosing - Spring.NET IoC container really is a programming error. This - property should really only be set once, prior to the invocation - of the - - callback method. -

-
- -
- - - Return the of object that this - creates, or - if not known in advance. - - - - - - Constructs a new instance of the target dictionary. - - The new instance. - - - - Set the source . - - -

- This value will be used to populate the - returned by this factory. -

-
-
- - - Set the of the - implementation to use. - - -

- The default is the . -

-
- - If the value is . - - - If the value is an . - - - If the value is an interface. - -
- - - The of objects created by this factory. - - - Always returns the . - - - - - Default implementation of the - interface that should be sufficient for all normal uses. - - -

- will convert - and array - values to the corresponding target arrays, if necessary. Custom - s that deal with - s or arrays can be written against a - comma delimited as - arrays are converted in such a format if the array itself is not assignable. -

-
- Rod Johnson - Juergen Hoeller - Jean-Pierre Pawlak - Mark Pollack (.NET) - Aleksandar Seovic(.NET) - $Id: ObjectWrapper.cs,v 1.72 2007/07/31 08:18:20 markpollack Exp $ -
- - - The central interface of Spring.NET's low-level object infrastructure. - - -

- Typically not directly used by application code but rather implicitly - via an . -

-

- Implementing classes have the ability to get and set property values - (individually or in bulk), get property descriptors and query the - readability and writability of properties. -

-

- This interface supports nested properties enabling the setting - of properties on subproperties to an unlimited depth. -

-

- If a property update causes an exception, a - will be thrown. Bulk - updates continue after exceptions are encountered, throwing an exception - wrapping all exceptions encountered during the update. -

-

- implementations can be used - repeatedly, with their "target" or wrapped object changed. -

-
- Rod Johnson - Mark Pollack (.NET) - $Id: IObjectWrapper.cs,v 1.15 2007/07/31 21:43:52 markpollack Exp $ - -
- - Get the value of a property. - - The name of the property to get the value of. May be nested. - - The value of the property. - - if the property isn't readable, or if the getting the value throws - an exception. - - - - - Get the for a particular - property. - - - The property to be retrieved. - - - The for the particular - property. - - - - - Get the for a particular property. - - - The property the of which is to be retrieved. - - - The for a particular property.. - - - - - Get all of the instances for - all of the properties of the wrapped object. - - - An array of instances. - - - - - Set a property value. - - -

- This is the preferred way to update an individual property. -

-
- The new property value. -
- - - Set a property value. - - -

- This method is provided for convenience only. The - - method is more powerful. -

-
- - The name of the property to set value of. - - The new property value. -
- - Set a number of property values in bulk. - -

- This is the preferred way to perform a bulk update. -

-

- Note that performing a bulk update differs from performing a single update, - in that an implementation of this class will continue to update properties - if a recoverable error (such as a vetoed property change or a type - mismatch, but not an invalid property name or the like) is - encountered, throwing a - containing - all the individual errors. This exception can be examined later to see all - binding errors. Properties that were successfully updated stay changed. -

-

- Does not allow the setting of unknown fields. Equivalent to - - with an argument of false for the second parameter. -

-
- - The collection of instances to - set on the wrapped object. - -
- - - Set a number of property values in bulk with full control over behavior. - - -

- Note that performing a bulk update differs from performing a single update, - in that an implementation of this class will continue to update properties - if a recoverable error (such as a vetoed property change or a type - mismatch, but not an invalid property name or the like) is - encountered, throwing a - containing - all the individual errors. This exception can be examined later to see all - binding errors. Properties that were successfully updated stay changed. -

-

Does not allow the setting of unknown fields. -

-
- - The to set on the target object - - - Should we ignore unknown values (not found in the object!?) - -
- - - The object wrapped by the wrapper (cannot be ). - - -

- Implementations are required to allow the type of the wrapped - object to change. -

-
- The object wrapped by this wrapper. -
- - - Convenience method to return the - of the wrapped object. - - The of the wrapped object. - - - The wrapped object. - - - - The ILog instance for this class. We'll create a lot of these objects, - so we don't want a new instance every time. - - - - - Creates a new instance of the class. - - -

- The wrapped target instance will need to be set afterwards. -

-
- -
- - - Creates a new instance of the class. - - - The object wrapped by this . - - - If the supplied is . - - - - - Creates a new instance of the class, - instantiating a new instance of the specified and using - it as the . - - -

- Please note that the passed as the - argument must have a no-argument constructor. - If it does not, an exception will be thrown when this class attempts - to instantiate the supplied using it's - (non-existent) constructor. -

-
- - The to instantiate and wrap. - - - If the is , or if the - invocation of the s default (no-arg) constructor - fails (due to invalid arguments, insufficient permissions, etc). - -
- - Gets the value of a property. - - The name of the property to get the value of. - - The value of the property. - - If there is no such property, if the property isn't readable, or - if getting the property value throws an exception. - - - - Gets the value of a property. - - The property expression that should be used to retrieve the property value. - - The value of the property. - - If there is no such property, if the property isn't readable, or - if getting the property value throws an exception. - - - - - Sets a property value. - - -

- This method is provided for convenience only. The - - method is more powerful. -

-
- - The name of the property to set value of. - - The new value. -
- - - Sets a property value. - - - The property expression that should be used to set the property value. - - The new value. - - - - Sets a property value. - - -

- This is the preferred way to update an individual property. -

-
- - The object containing new property value. - -
- - Set a number of property values in bulk. - -

- Does not allow unknown fields. Equivalent to - - with and for - arguments. -

-
- - The to set on the target - object. - - - If an error is encountered while setting a property. - - - On a mismatch while setting a property, insufficient permissions, etc. - - -
- - - Perform a bulk update with full control over behavior. - - -

- This method may throw a reflection-based exception, if there is a critical - failure such as no matching field... less serious exceptions will be accumulated - and thrown as a single . -

-
- - The s to set on the target object. - - - Should we ignore unknown values (not found in the object!?). - - - If an error is encountered while setting a property (only thrown if the - parameter is set to ). - - - On a mismatch while setting a property, insufficient permissions, etc. - - -
- - - Returns PropertyInfo for the specified property - - The name of the property to search for. - The for the specified property. - If cannot be determined. - - - - Get the for a particular property. - - - The property the of which is to be retrieved. - - - The for a particular property.. - - - - - Returns MemberInfo for the specified property or field - - The name of the property or field to search for. - The or for the specified property or field. - If does not resolve to a property or field. - - - - Get the properties of the wrapped object. - - - An array of s. - - - - - This method is expensive! Only call for diagnostics and debugging reasons, - not in production. - - - A string describing the state of this object. - - - - - Attempts to parse property expression first and falls back to full expression - if that fails. Performance optimization. - - Property expression to parse. - Parsed proeprty expression. - - - - The object wrapped by this . - - - If the object cannot be changed; or an attempt is made to set the - value of this property to . - - - - - Convenience method to return the of the wrapped object. - - -

- Do not use this (convenience) method prior to setting the - property. -

-
- - The of the wrapped object. - - - If the property - is . - -
- - - Return the collection of property descriptors. - - - - - Implementation of that can be used to - format and parse floating point numbers. - - - - This formatter allows you to format and parse numbers that conform - to number style (leading and trailing - white space, leading sign, decimal point, exponent). - - - Aleksandar Seovic - $Id: FloatFormatter.cs,v 1.4 2006/04/09 07:18:47 markpollack Exp $ - - - - Default format string. - - - - - Initializes a new instance of the class, - using default format string of '{0:F}' and current thread's culture. - - - - - Initializes a new instance of the class, - using specified format string and current thread's culture. - - The format string. - - - - Initializes a new instance of the class, - using default format string of '{0:F}' and specified culture. - - The culture. - - - - Initializes a new instance of the class, - using specified format string and current thread's culture. - - The format string. - The culture name. - - - - Initializes a new instance of the class, - using specified format string and culture. - - The format string. - The culture. - - - - Formats the specified float value. - - The value to format. - Formatted floating point number. - If is null. - If is not a number. - - - - Parses the specified float value. - - The float value to parse. - Parsed float value as a . - - - - Represents parsed projection node in the navigation expression. - - Aleksandar Seovic - $Id: ProjectionNode.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a containing results of evaluation - of projection expression against each node in the context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - BaseBindingManager keeps track of all registered bindings and - represents an entry point for the binding and unbinding process. - - Aleksandar Seovic - $Id: BaseBindingManager.cs,v 1.1 2006/11/21 05:46:57 aseovic Exp $ - - - - Initializes a new instance of the class. - - - - - Simple, expression-based implementation of that - binds source to target one-to-one. - - Aleksandar Seovic - $Id: SimpleExpressionBinding.cs,v 1.3 2007/03/19 16:05:52 oakinger Exp $ - - - - Initializes a new instance of the class. - - - The source expression. - - - The target expression. - - - - - Initializes a new instance of the class. - - - The source expression. - - - The target expression. - - - The formatter to use. - - - - - Gets the source value for the binding. - - - Source object to extract value from. - - - Variables for expression evaluation. - - - The source value for the binding. - - - - - Sets the source value for the binding. - - - The source object to set the value on. - - - The value to set. - - - Variables for expression evaluation. - - - - - Gets the target value for the binding. - - - Source object to extract value from. - - - Variables for expression evaluation. - - - The target value for the binding. - - - - - Sets the target value for the binding. - - - The target object to set the value on. - - - The value to set. - - - Variables for expression evaluation. - - - - - Gets the source expression. - - The source expression. - - - - Gets the target expression. - - The target expression. - - - - Resolves (instantiates) a by it's (possibly - assembly qualified) name, and caches the - instance against the type name. - - Rick Evans - Bruno Baia - Erich Eichinger - $Id: CachedTypeResolver.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Resolves a by name. - - -

- The rationale behind the creation of this interface is to centralise - the resolution of type names to instances - beyond that offered by the plain vanilla - method call. -

-
- Rick Evans - $Id: ITypeResolver.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Resolves the supplied to a - - instance. - - - The (possibly partially assembly qualified) name of a - . - - - A resolved instance. - - - If the supplied could not be resolved - to a . - - - - - The cache, mapping type names ( instances) against - instances. - - - - - Creates a new instance of the class. - - - The that this instance will delegate - actual resolution to if a - cannot be found in this instance's cache. - - - If the supplied is . - - - - - Resolves the supplied to a - - instance. - - - The (possibly partially assembly qualified) name of a - . - - - A resolved instance. - - - If the supplied could not be resolved - to a . - - - - - Converts a two part string, (resource name, assembly name) - to a ResourceManager instance. - - - - - This constant represents the name of the folder/assembly containing global resources. - - - - - Creates a new instance of the - class. - - - - - Returns whether this converter can convert an object of one - to a - - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Convert from a string value to a - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A - if successful. - - If the specified does not denote a valid resource - - - - Custom implementation for - objects. - - -

- Handles conversion from an XML formatted string to a - object - (see below for an example of the expected XML format). -

-

- This converter must be registered before it will be available. Standard - converters in this namespace are automatically registered by the - class. -

-
- -

- Find below some examples of the XML formatted strings that this - converter will sucessfully convert. Note that the name of the top level - (document) element is quite arbitrary... it is only the content that - matters (and which must be in the format - <add key="..." value="..."/>. For your continued sanity - though, you may wish to standardize on the top level name of - 'dictionary' (although you are of course free to not do so). -

- - - - - - -

- The following example uses a different top level (document) element - name, but is equivalent to the first example. -

- - - - - - -
- Rod Johnson - Juergen Hoeller - Simon White (.NET) - $Id: NameValueConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Returns whether this converter can convert an object of one - to a - - - -

- Currently only supports conversion from an - XML formatted instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Convert from a string value to a - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A - if successful. - - - - - An implementation that - accesses resources from .resx / .resource files. - - Note that for the method - GetResourceObject if the resource name resolves to null, then in - .NET 1.1 the return value will be String.Empty whereas - in .NET 2.0 it will return null. - Griffin Caprio (.NET) - Mark Pollack (.NET) - Aleksandar Seovic (.NET) - $Id: ResourceSetMessageSource.cs,v 1.23 2007/07/31 18:15:50 bbaia Exp $ - - - - Abstract implementation of the interface, - implementing common handling of message variants, making it easy - to implement a specific strategy for a concrete . - - -

Subclasses must implement the abstract ResolveObject - method.

-

Note: By default, message texts are only parsed through - String.Format if arguments have been passed in for the message. In case - of no arguments, message texts will be returned as-is. As a consequence, - you should only use String.Format escaping for messages with actual - arguments, and keep all other messages unescaped. -

-

Supports not only IMessageSourceResolvables as primary messages - but also resolution of message arguments that are in turn - IMessageSourceResolvables themselves. -

-

This class does not implement caching of messages per code, thus - subclasses can dynamically change messages over time. Subclasses are - encouraged to cache their messages in a modification-aware fashion, - allowing for hot deployment of updated messages. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - Harald Radi (.NET) - $Id: AbstractMessageSource.cs,v 1.23 2007/08/28 14:16:15 oakinger Exp $ - - - -
- - - Sub-interface of to be - implemented by objects that can resolve messages hierarchically. - - Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - $Id: IHierarchicalMessageSource.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ - - - - - The parent message source used to try and resolve messages that - this object can't resolve. - - -

- If the value of this property is then no - further resolution is possible. -

-
-
- - - holds the logger instance shared with subclasses. - - - - - Initializes this instance. - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the lookup is not successful throw NoSuchMessageException - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The that represents - the culture for which the resource is localized. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful, implementations are permitted to - take one of two actions. -

- If the lookup is not successful throw NoSuchMessageException -
-
- - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the lookup is not successful throw NoSuchMessageException - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The that represents - the culture for which the resource is localized. - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful throw NoSuchMessageException. -

-
-
- - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The default message if name is not found. - The that represents - the culture for which the resource is localized. - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. -

- If the lookup is not successful throw NoSuchMessageException -

-
-
- - - Resolve the message using all of the attributes contained within - the supplied - argument. - - The value object storing those attributes that are required to - properly resolve a message. - The that represents - the culture for which the resource is localized. - - The resolved message if the lookup was successful. - - - If the message could not be resolved. - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The resolved object, or if not found. - - - - - - Gets a localized resource object identified by the supplied - . - - - Note that the fallback behavior based on CultureInfo seem to - have a bug that is fixed by installed .NET 1.1 Service Pack 1. - - - The name of the resource object to resolve. - - - The with which the - resource is associated. - - - The resolved object, or if not found. If - the resource name resolves to null, then in .NET 1.1 the return - value will be String.Empty whereas in .NET 2.0 it will return - null. - - - - - - Applies resources to object properties. - - - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - - - Resolve the given code and arguments as message in the given culture, - returning null if not found. Does not fall back to the code - as default message. Invoked by GetMessage methods. - - The code to lookup up, such as 'calculator.noRateSet'. - array of arguments that will be filled in for params - within the message. - The with which the - resource is associated. - - The resolved message if the lookup was successful. - - - - - Try to retrieve the given message from the parent MessageSource, if any. - - The code to lookup up, such as 'calculator.noRateSet'. - array of arguments that will be filled in for params - within the message. - The with which the - resource is associated. - - The resolved message if the lookup was successful. - - - - - Return a fallback default message for the given code, if any. - - - Default is to return the code itself if "UseCodeAsDefaultMessage" - is activated, or return no fallback else. In case of no fallback, - the caller will usually receive a NoSuchMessageException from GetMessage - - The code to lookup up, such as 'calculator.noRateSet'. - The default message to use, or null if none. - - - - Renders the default message string. The default message is passed in as specified by the - caller and can be rendered into a fully formatted default message shown to the user. - - Default implementation passed he String for String.Format resolving any - argument placeholders found in them. Subclasses may override this method to plug - in custom processing of default messages. - - The default message. - The array of agruments that will be filled in for parameter - placeholders within the message, or null if none. - The with which the - resource is associated. - The rendered default message (with resolved arguments) - - - - Format the given default message String resolving any - agrument placeholders found in them. - - The message to format. - The array of agruments that will be filled in for parameter - placeholders within the message, or null if none. - The with which the - resource is associated. - The formatted message (with resolved arguments) - - - - Search through the given array of objects, find any - MessageSourceResolvable objects and resolve them. - - - Allows for messages to have MessageSourceResolvables as arguments. - - - The array of arguments for a message. - The with which the - resource is associated. - An array of arguments with any IMessageSourceResolvables resolved - - - - Gets the specified resource (e.g. Icon or Bitmap). - - The name of the resource to resolve. - - The to resolve the - code for. - - The resource if found. otherwise. - - - - Applies resources from the given name on the specified object. - - - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - - - Subclasses must implement this method to resolve a message. - - The code to lookup up, such as 'calculator.noRateSet'. - The with which the - resource is associated. - The resolved message from the backing store of message data. - - - - Resolves an object (typically an icon or bitmap). - - -

- Subclasses must implement this method to resolve an object. -

-
- The code of the object to resolve. - - The to resolve the - code for. - - - The resolved object or if not found. - -
- - - Applies resources to object properties. - - -

- Subclasses must implement this method to apply resources - to an arbitrary object. -

-
- - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - -
- - Gets or Sets a value indicating whether to use the message code as - default message instead of throwing a NoSuchMessageException. - Useful for development and debugging. Default is "false". - - -

Note: In case of a IMessageSourceResolvable with multiple codes - (like a FieldError) and a MessageSource that has a parent MessageSource, - do not activate "UseCodeAsDefaultMessage" in the parent: - Else, you'll get the first code returned as message by the parent, - without attempts to check further codes.

-

To be able to work with "UseCodeAsDefaultMessage" turned on in the parent, - AbstractMessageSource contains special checks - to delegate to the internal GetMessageInternal method if available. - In general, it is recommended to just use "UseCodeAsDefaultMessage" during - development and not rely on it in production in the first place, though.

-

Alternatively, consider overriding the GetDefaultMessage - method to return a custom fallback message for an unresolvable code.

-
- - true if use the message code as default message instead of - throwing a NoSuchMessageException; otherwise, false. - -
- - - The parent message source used to try and resolve messages that - this object can't resolve. - - - -

- If the value of this property is then no - further resolution is possible. -

-
-
- - - Creates a new instance of the - class. - - - - - Resolves a given code by searching through each assembly name in - the base names array. - - The code to resolve. - - The to use for lookups. - - The message from the resource set. - - - - Resolves a given code by searching through each assembly name in the array. - - The code to resolve. - - The to use for lookups. - - The object from the resource set. - - - - Uses a System.ComponentModel.ComponentResourceManager - to apply resources to object properties. - Resource key names are of the form objectName.propertyName - - - This feature is not currently supported on version 1.0 of the .NET platform. - - - An object that contains the property values to be applied. - - - The base name of the object to use for the key lookup. - - - The to use for lookups. - If , uses the - value. - - - This feature is not currently supported on version 1.0 of the .NET platform. - - - - - Resolves a code into an object given a base name. - - The to search. - The code to resolve. - - The to use for lookups. - - The object from the resource file. - - - - Returns a representation of the - . - - A representation of the - . - - - - Invoked by an - after it has set all object properties supplied. - - -

- The list may contain objects of type or - . types - are converted to instances using the notation - resourcename, assembly partial name. -

-
- - If the conversion from a to a - can't be performed. - -
- - - The collection of s - in this . - - - - - Thrown when a message cannot be resolved. - - Rod Johnson - Mark Pollack (.NET) - - - $Id: NoSuchMessageException.cs,v 1.8 2007/07/17 14:51:13 oakinger Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being - thrown. - - - The - that contains contextual information about the source or - destination. - - - - - Creates a new instance of the - class. - - - The code that could not be resolved for given culture. - - - The that was used - to search for the code. - - - - - Creates a new instance of the - class. - - - The code that could not be resolved for the current UI culture. - - - - - Describes objects that are suitable for message resolution in a - . - - -

- Spring.NET's own validation error classes implement this interface. -

-
- Juergen Hoeller - Mark Pollack (.NET) - $Id: IMessageSourceResolvable.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ - - -
- - - Return the codes to be used to resolve this message, in the order - that they are to be tried. - - -

- The last code will therefore be the default one. -

-
- - A array of codes which are associated - with this message. - -
- - - Return the array of arguments to be used to resolve this message. - - - An array of objects to be used as parameters to replace - placeholders within the message text. - - - - - Return the default message to be used to resolve this message. - - - The default message, or if there is no - default. - - - - - Implements by using a hashtable. - - Erich Eichinger - $Id: ThreadStaticStorage.cs,v 1.1 2007/02/02 21:30:34 oakinger Exp $ - - - - Specifies the contract a strategy must be implement to store and - retrieve data that is specific to the executing thread. - - - All implementations of this interface must treat keys case-sensitive. - - Erich Eichinger - $Id: IThreadStorage.cs,v 1.1 2007/02/02 21:30:34 oakinger Exp $ - - - - Retrieves an object with the specified . - - The name of the item. - - The object in the current thread's context associated with the - specified or null if no object has been stored previously - - - - - Stores a given object and associates it with the specified . - - The name with which to associate the new item. - The object to store in the current thread's context. - - - - Empties a data slot with the specified name. - - - If the object with the specified is not found, the method does nothing. - - The name of the object to remove. - - - - Retrieves an object with the specified name. - - The name of the item. - The object in the call context associated with the specified name or null if no object has been stored previously - - - - Stores a given object and associates it with the specified name. - - The name with which to associate the new item. - The object to store in the call context. - - - - Empties a data slot with the specified name. - - The name of the data slot to empty. - - - - Represents a Get method - - the target instance when calling an instance method - the value return by the Get method - - - - Represents a Set method - - the target instance when calling an instance method - the value to be set - - - - Represents a method - - the target instance when calling an instance method - arguments to be passed to the method - the value return by the method. null when calling a void method - - - - Represents a callback method used to create an from a instance. - - - - - Represents a callback method used to create an from a instance. - - - - - Represents a callback method used to create an from a instance. - - - - - Represents a callback method used to create an from a instance. - - - - - Represents a callback method used to create an from a instance. - - - - - Allows easy access to existing and creation of new dynamic relection members. - - Aleksandar Seovic - $Id: DynamicReflectionManager.cs,v 1.5 2008/05/17 11:05:26 oakinger Exp $ - - - - The name of the assembly that defines reflection types created. - - - - - The attributes of the reflection type to generate. - - - - - Cache for dynamic property types. - - - - - Cache for dynamic field types. - - - - - Cache for dynamic indexer types. - - - - - Cache for dynamic method types. - - - - - Cache for dynamic constructor types. - - - - - Creates an appropriate type builder. - - - The base name to use for the reflection type name. - - The type builder to use. - - - - Returns dynamic property if one exists. - - Property to look up. - callback function that will be called to create the dynamic property - An for the given property info. - - - - Returns dynamic field if one exists. - - Field to look up. - callback function that will be called to create the dynamic field - An for the given field info. - - - - Returns dynamic indexer if one exists. - - Indexer to look up. - callback function that will be called to create the dynamic indexer - An for the given indexer. - - - - Returns dynamic method if one exists. - - Method to look up. - callback function that will be called to create the dynamic method - An for the given method. - - - - Returns dynamic constructor if one exists. - - Constructor to look up. - callback function that will be called to create the dynamic constructor - An for the given constructor. - - - - Saves dynamically generated assembly to disk. - Can only be called in DEBUG mode, per ConditionalAttribute rules. - - - - - Create a new Get method delegate for the specified field using - - the field to create the delegate for - a delegate that can be used to read the field - - - - Create a new Set method delegate for the specified field using - - the field to create the delegate for - a delegate that can be used to read the field. - - If the field's returns true, the returned method - will throw an when called. - - - - - Create a new Get method delegate for the specified property using - - the property to create the delegate for - a delegate that can be used to read the property. - - If the property's returns false, the returned method - will throw an when called. - - - - - Create a new Set method delegate for the specified property using - - the property to create the delegate for - a delegate that can be used to write the property. - - If the property's returns false, the returned method - will throw an when called. - - - - - Create a new method delegate for the specified method using - - the method to create the delegate for - a delegate that can be used to invoke the method. - - - - Generates code that throws . - - IL generator to use. - Error message to use. - - - - Allows easy access to existing and creation of new dynamic proxies. - - Aleksandar Seovic - Bruno Baia - $Id: DynamicProxyManager.cs,v 1.6 2007/05/30 17:32:05 oakinger Exp $ - - - - The name of the assembly that defines proxy types created. - - - - - The attributes of the proxy type to generate. - - - - - Creates an appropriate type builder. - - The proxy type name. - The type to extends if provided. - The type builder to use. - - - - Saves dynamically generated assembly to disk. - Can only be called in DEBUG_DYNAMIC mode, per ConditionalAttribute rules. - - - - - Tag subclass used to hold a list of managed elements. - - Rod Johnson - Rick Evans (.NET) - $Id: ManagedList.cs,v 1.15 2007/11/26 14:15:54 bbaia Exp $ - - - - Resolves this managed collection at runtime. - - - The name of the top level object that is having the value of one of it's - collection properties resolved. - - - The definition of the named top level object. - - - The name of the property the value of which is being resolved. - - - The callback that will actually do the donkey work of resolving - this managed collection. - - A fully resolved collection. - - - - Gets or sets the unresolved name for the - of the elements of this managed list. - - The unresolved name for the type of the elements of this managed list. - - - - Returns a value that is an - that - returns an object from an - . - - -

- The primary motivation of this class is to avoid having a client object - directly calling the - - method to get a prototype object out of an - , which would be a - violation of the inversion of control principle. With the use of this - class, the client object can be fed an - as a property - that directly returns one target prototype object. -

-

- The object referred to by the value of the - - property does not have to be a prototype object, but there is little - to no point in using this class in conjunction with a singleton object. -

-
- -

- The following XML configuration snippet illustrates the use of this - class... -

- - - - - - - - - - - - - - - - Colin Sampaleanu - Simon White (.NET) - $Id: ObjectFactoryCreatingFactoryObject.cs,v 1.9 2007/03/16 04:01:38 aseovic Exp $ - - - - Returns an instance of the object factory. - - The object factory. - - - - Invoked by an - after it has set all supplied object properties. - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - - Sets the name of the target object. - - - - - The target factory that will be used to perform the lookup - of the object referred to by the - property. - - - The owning - (will never be ). - - - In case of initialization errors. - - - - - - The of object created by this factory. - - - - - Interface defining a factory which can return an object instance - (possibly shared or independent) when invoked. - - - This interface is typically used to encapsulate a generic factory - which returns a new instance (prototype) on each invocation. - It is similar to the , but - implementations of the aforementioned interface are normally meant to be defined - as instances by the user in an , - while implementations of this class are normally meant to be fed as a property to - other objects; as such, the - method - has different exception handling behavior. - - Colin Sampaleanu - Simon White (.NET) - $Id: IGenericObjectFactory.cs,v 1.6 2006/04/09 07:18:48 markpollack Exp $ - - - - Return an instance (possibly shared or independent) - of the object managed by this factory. - - - An instance of the object (should never be ). - - - - - Creates a new instance of the GenericObjectFactory class. - - - The enclosing - . - - - - - Returns the object created by the enclosed object factory. - - The created object. - - - - - implementation that allows for convenient registration of custom - s. - - - - The use of this class is typically not required; the .NET - mechanism of associating a - with a - via the use of the - is the - recommended (and standard) way. This class primarily exists to cover - those cases where third party classes to which one does not have the - source need to be exposed to the type conversion mechanism. - -

- Because the - - class implements the - - interface, instances of this class that have been exposed in the - scope of an - will - automatically be picked up by the application context and made - available to the IoC container whenever type conversion is required. If - one is using a - - object definition within the scope of an - , no such automatic - pickup of the - - is performed (custom converters will have to be added manually using the - - method). For most application scenarios, one will get better - mileage using the - abstraction. -

-
- -

- The following examples all assume XML based configuration, and use - inner object definitions to define the custom - objects (nominally to - avoid polluting the object name space, but also because the - configuration simply reads better that way). -

- - - - - - - - - - - - - - - - -

- The following example illustrates a complete (albeit naieve) use case - for this class, including a custom - implementation, said - converters domain class, and the XML configuration that hooks the - converter in place and makes it available to a Spring.NET container for - use during object resolution. -

-

- The domain class is a simple data-only object that contains the data - required to send an email message (such as the host and user account - name). A developer would prefer to use a string of the form - UserName=administrator,Password=r1l0k1l3y,Host=localhost to - configure the mail settings and just let the container take care of the - conversion. -

- - namespace ExampleNamespace - { - public sealed class MailSettings - { - private string _userName; - private string _password; - private string _host; - - public string Host - { - get { return _host; } - set { _host = value; } - } - - public string UserName - { - get { return _userName; } - set { _userName = value; } - } - - public string Password - { - get { return _password; } - set { _password = value; } - } - } - - public sealed class MailSettingsConverter : TypeConverter - { - public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType) - { - if (typeof (string) == sourceType) - { - return true; - } - return base.CanConvertFrom(context, sourceType); - } - - public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value) - { - string text = value as string; - if(text != null) - { - MailSettings mailSettings = new MailSettings(); - string[] tokens = text.Split(','); - for (int i = 0; i < tokens.Length; ++i) - { - string token = tokens[i]; - string[] settings = token.Split('='); - typeof(MailSettings).GetProperty(settings[0]) - .SetValue(mailSettings, settings[1], null); - } - return mailSettings; - } - return base.ConvertFrom(context, culture, value); - } - } - - // a very naieve class that uses the MailSettings class... - public sealed class ExceptionLogger - { - private MailSettings _mailSettings; - - public MailSettings MailSettings { - { - set { _mailSettings = value; } - } - - public void Log(object value) - { - Exception ex = value as Exception; - if(ex != null) - { - // use _mailSettings instance... - } - } - } - } - -

- The attendant XML configuration for the above classes would be... -

- - - - - - - - - - - - - - - - Juergen Hoeller - Simon White (.NET) - $Id: CustomConverterConfigurer.cs,v 1.14 2007/05/11 02:32:14 markpollack Exp $ - - - - - - - Registers any custom converters with the supplied - . - - - The object factory to register the converters with. - - - In case of errors. - - - - - Resolves the supplied into a - instance. - - - The object that is to be resolved into a - instance. - - - A resolved instance. - - - If the supplied is , - or the supplied cannot be resolved. - - - - - The custom converters to register. - - -

- The uses the type name - of the class that requires conversion as the key, and an - instance of the - that will effect - the conversion. Alternatively, the actual - of the class that requires conversion - can be used as the key. -

-
- -

- - IDictionary converters = new Hashtable(); - converters.Add( "System.Date", new MyCustomDateConverter() ); - // a System.Type instance can also be used as the key... - converters.Add( typeof(Color), new MyCustomRBGColorConverter() ); - -

-
-
- - - Programmatic means of constructing a using the builder pattern. Intended primarily - for use when implementing custom namespace parsers. - - Set methods are used instead of properties, so that chaining of methods can be used to create - 'one-liner'definitions that set multiple properties at one. - Rod Johnson - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: ObjectDefinitionBuilder.cs,v 1.4 2007/05/29 20:00:20 markpollack Exp $ - - - - Initializes a new instance of the class, private - to force use of factory methods. - - - - - Create a new ObjectDefinitionBuilder used to construct a root object definition. - - The object definition factory. - The type name of the object. - A new ObjectDefinitionBuilder instance. - - - - Create a new ObjectDefinitionBuilder used to construct a root object definition. - - The object definition factory. - Name of the object type. - Name of the factory method. - A new ObjectDefinitionBuilder instance. - - - - Create a new ObjectDefinitionBuilder used to construct a root object definition. - - The object definition factory. - Type of the object. - A new ObjectDefinitionBuilder instance. - - - - Create a new ObjectDefinitionBuilder used to construct a root object definition. - - The object definition factory. - Type of the object. - Name of the factory method. - A new ObjectDefinitionBuilder instance. - - - - Create a new ObjectDefinitionBuilder used to construct a child object definition.. - - The object definition factory. - Name of the parent object. - - - - - Adds the property value under the given name. - - The name. - The value. - The current ObjectDefinitionBuilder. - - - - Adds a reference to the specified object name under the property specified. - - The name. - Name of the object. - The current ObjectDefinitionBuilder. - - - - Adds an index constructor arg value. The current index is tracked internally and all addtions are - at the present point - - The constructor arg value. - The current ObjectDefinitionBuilder. - - - - Adds a reference to the named object as a constructor argument. - - Name of the object. - - - - - Sets the name of the factory method to use for this definition. - - The factory method. - The current ObjectDefinitionBuilder. - - - - Sets the name of the factory object to use for this definition. - - The factory object. - The factory method. - The current ObjectDefinitionBuilder. - - - - Sets whether or not this definition describes a singleton object. - - if set to true [singleton]. - The current ObjectDefinitionBuilder. - - - - Sets whether objects or not this definition is abstract. - - if set to true [flag]. - The current ObjectDefinitionBuilder. - - - - Sets whether objects for this definition should be lazily initialized or not. - - if set to true [lazy]. - The current ObjectDefinitionBuilder. - - - - Sets the autowire mode for this definition. - - The autowire mode. - The current ObjectDefinitionBuilder. - - - - Sets the dependency check mode for this definition. - - The dependency check. - The current ObjectDefinitionBuilder. - - - - Sets the name of the destroy method for this definition. - - Name of the method. - The current ObjectDefinitionBuilder. - - - - Sets the name of the init method for this definition. - - Name of the method. - The current ObjectDefinitionBuilder. - - - - Sets the resource description for this definition. - - The resource description. - The current ObjectDefinitionBuilder. - - - - Adds the specified object name to the list of objects that this definition depends on. - - Name of the object. - The current ObjectDefinitionBuilder. - - - - Gets the current object definition in its raw (unvalidated) form. - - The raw object definition. - - - - Validate and gets the object definition. - - The object definition. - - - - Implementation of that - resolves variable name against environment variables. - - Aleksandar Seovic - $Id: EnvironmentVariableSource.cs,v 1.3 2007/08/02 22:18:32 markpollack Exp $ - - - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Implementation of that - resolves variable name against registry key. - - Aleksandar Seovic - $Id: RegistryVariableSource.cs,v 1.3 2007/08/03 08:31:24 oakinger Exp $ - - - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - This implementation resolves REG_SZ as well as REG_MULTI_SZ values. In case of a REG_MULTI_SZ value, - strings are concatenated to a comma-separated list following - - - The variable value if able to resolve, null otherwise. - - - - - Gets or sets the registry key to obtain variable values from. - - - The registry key to obtain variable values from. - - - - - Implementation of that can be used to - format and parse numbers. - - - - NumberFormatter uses number-related properties of the - to format and parse numbers. - - - This formatter works with both integer and decimal numbers and allows - you to format and parse numbers that conform to - number style (leading and trailing white space and/or sign, thousands separator, - decimal point) - - - If you use one of the constructors that accept culture as a parameter - to create an instance of NumberFormatter, default NumberFormatInfo - for the specified culture will be used. - - - You can also use properties exposed by the NumberFormatter in order - to override some of the default number formatting parameters. - - - Aleksandar Seovic - $Id: NumberFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Initializes a new instance of the class - using default for the current thread's culture. - - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture name. - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture. - - - - Initializes a new instance of the class - using specified . - - - The instance that defines how - numbers are formatted and parsed. - - - - - Formats the specified number value. - - The value to format. - Formatted number . - If is null. - If is not a number. - - - - Parses the specified number value. - - The number value to parse. - Parsed number value as a . - - - - Gets or sets the number of decimal digits. - - The number of decimal digits. - - - - - Gets or sets the decimal separator. - - The decimal separator. - - - - - Gets or sets the number group sizes. - - The number group sizes. - - - - - Gets or sets the number group separator. - - The number group separator. - - - - - Gets or sets the negative pattern. - - The number negative pattern. - - - - - Implementation of that can be used to - format and parse boolean values. - - Erich Eichinger - $Id: BooleanFormatter.cs,v 1.1 2007/06/01 08:59:31 oakinger Exp $ - - - - Initializes a new instance of the class - using default values - - - - - Initializes a new instance of the class - - - - - Formats the specified boolean value. - - The value to format. - Formatted boolean value. - If is null. - If is not of type . - - - - Parses the specified boolean value according to settings of and - - The boolean value to parse. - Parsed boolean value as a . - If does not match or . - - - - Set/Get value to control casesensitivity of - - - Defaults to true - - - - - Set/Get value to recognize as boolean "true" value - - - Defaults to - - - - - Set/Get value to recognize as boolean "false" value - - - Defaults to - - - - - Represents parsed string literal node. - - Aleksandar Seovic - $Id: StringLiteralNode.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the string literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed expression list node in the navigation expression. - - Aleksandar Seovic - $Id: ExpressionListNode.cs,v 1.6 2007/09/07 03:01:24 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a result of the last expression in a list. - - Context to evaluate expressions against. - Current expression evaluation context. - Result of the last expression in a list - - - - Represents parsed selection node in the navigation expression. - - Aleksandar Seovic - $Id: SelectionFirstNode.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns the first context item that matches selection expression. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical BETWEEN operator. - - Aleksandar Seovic - $Id: OpBetween.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical IN operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - - true if the left operand is contained within the right operand, false otherwise. - - - - - Implementation of the sum aggregator. - - Aleksandar Seovic - $Id: SumAggregator.cs,v 1.2 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns the sum of the numeric values in the source collection. - - - The source collection to process. - - - Ignored. - - - The sum of the numeric values in the source collection. - - - - - Implementation of the 'order by' processor. - - Aleksandar Seovic - Erich Eichinger - $Id: OrderByProcessor.cs,v 1.2 2008/03/20 23:58:16 oakinger Exp $ - - - - Sorts the source collection using custom sort criteria. - - - Please not that your compare function needs to take care about - proper conversion of types to be comparable! - - - The source collection to sort. - - - Sort criteria to use. - - - A sorted array containing collection elements. - - - - - Converts all elements in the input list to a given target type. - - Erich Eichinger - $Id: ConversionProcessor.cs,v 1.1 2008/03/20 23:58:16 oakinger Exp $ - - - - Processes a list of source items and returns a result. - - - The source list to process. - - - An optional processor arguments array. - - - The processing result. - - - - - Holds data about a and it's - attendant . - - - - - The string that separates a name - from the name of it's attendant - in an assembly qualified type name. - - - - - Creates a new instance of the TypeAssemblyHolder class. - - - The unresolved name of a . - - - - - The (unresolved) type name portion of the original type name. - - - - - The (unresolved, possibly partial) name of the attandant assembly. - - - - - Is the type name being resolved assembly qualified? - - - - - Criteria that is satisfied if the Name property of an - instance matches a - supplied regular expression pattern. - - Rick Evans - $Id: RegularExpressionEventNameCriteria.cs,v 1.1 2007/07/31 01:35:07 markpollack Exp $ - - - - A base class for all - implementations that are regular expression based. - - Rick Evans - $Id: RegularExpressionCriteria.cs,v 1.1 2007/07/31 01:35:07 markpollack Exp $ - - - - The default pattern... matches absolutely anything. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The regular expression pattern to be applied. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - Convenience method that calls the - - on the supplied . - - The input to match against. - True if the matches. - - - - The regular expression pattern to be applied. - - - - - The regular expression options to be applied. - - - - - The regular expression to be applied. - - - - - The default event name pattern... matches pretty much any event name. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The pattern that names - must match against in order to satisfy this criteria. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - Criteria that is satisfied if the method Name of an - instance matches a - supplied string pattern. - - - - Supports the following simple pattern styles: - "xxx*", "*xxx" and "*xxx*" matches, as well as direct equality. - - - Bruno Baia - $Id: MethodNameMatchCriteria.cs,v 1.1 2007/08/04 01:04:34 bbaia Exp $ - - - - Creates a new instance of the - class. - - -

- This constructor sets the - - property to * (any method name). -

-
-
- - - Creates a new instance of the - class. - - The pattern that names - must match against in order to satisfy this criteria. - - If the supplied is null or resolve to an empty string. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - The number of parameters that a - must have to satisfy this criteria. - - - If the supplied value is null or resolve to an empty string. - - - - - Provides methods to support various naming and other conventions used throughout the framework. - Mainly for internal use within the framework. - - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: Conventions.cs,v 1.1 2007/05/26 00:42:36 markpollack Exp $ - - - Convert Strings in attribute name format (lowercase, hyphens separating words) - into property name format (camel-cased). For example, transaction-manager is - converted into transactionManager. - - - - - An unbounded priority based on a priority - heap. This queue orders elements according to an order specified - at construction time, which is specified either according to their - natural order (see , or according to a - , depending on which constructor is - used. A priority queue does not permit elements. - A priority queue relying on natural ordering also does not - permit insertion of non-comparable objects (doing so will result - . - -

- The head of this queue is the lowest element - with respect to the specified ordering. If multiple elements are - tied for lowest value, the head is one of those elements -- ties are - broken arbitrarily. - -

- A priority queue is unbounded, but has an internal - capacity governing the size of an array used to store the - elements on the queue. It is always at least as large as the queue - size. As elements are added to a priority queue, its capacity - grows automatically. The details of the growth policy are not - specified. - -

- This class and its enumerator implement all of the - optional methods of the and - interfaces. - The enumerator provided in method - is not guaranteed to traverse the elements of the PriorityQueue in any - particular order. - -

- Note that this implementation is NOT synchronized. - Multiple threads should not access a - instance concurrently if any of the threads modifies the list - structurally. Instead, use the thread-safe PriorityBlockingQueue. -

- Josh Bloch - Griffin Caprio (.NET) -
- - - This class provides skeletal implementations of some - operations. - - -

- The implementations in this class are appropriate when the base - implementation does not allow elements. The methods - , - , and - are based on - the , - , and - methods - respectively but throw exceptions instead of indicating failure via - or returns. -

- An implementation that extends this class must - minimally define a method - which does - not permit the insertion of elements, along with methods - , and - . Typically, - additional methods will be overridden as well. If these requirements - cannot be met, consider instead subclassing - }. -

-
- Doug Lea - Griffin Caprio (.NET) - $Id: AbstractQueue.cs,v 1.8 2007/08/27 09:38:11 oakinger Exp $ -
- - - A collection designed for holding elements prior to processing. - - -

- Besides basic operations, - queues provide additional insertion, extraction, and inspection - operations. -

-

- Each of these methods exists in two forms: one throws - an exception if the operation fails, the other returns a special - value (either or , depending on the - operation). The latter form of the insert operation is designed - specifically for use with capacity-restricted - implementations; in most implementations, insert operations cannot - fail. -

-

- Queues typically, but do not necessarily, order elements in a - FIFO (first-in-first-out) manner. Among the exceptions are - priority queues, which order elements according to a supplied - comparator, or the elements' natural ordering, and LIFO queues (or - stacks) which order the elements LIFO (last-in-first-out). - Whatever the ordering used, the head of the queue is that - element which would be removed by a call to - or - . In a FIFO queue, all new - elements are inserted at the tail of the queue. Other kinds of queues may - use different placement rules. Every implementation - must specify its ordering properties. -

-

- The method inserts an - element if possible, otherwise returning . This differs from the - method, which can fail to - add an element only by throwing an exception. The - method is designed for - use when failure is a normal, rather than exceptional occurrence, for example, - in fixed-capacity (or "bounded" queues. -

-

- The - methods remove and - return the head of the queue. Exactly which element is removed from the - queue is a function of the queue's ordering policy, which differs from - implementation to implementation. The - and - methods differ only in their - behavior when the queue is empty: the - method throws an exception, - while the method returns - . -

-

- The and - methods return, but do - not remove, the head of the queue. -

-

- The interface does not define the blocking queue - methods, which are common in concurrent programming. -

-

- implementations generally do not allow insertion - of elements, although some implementations, such as - a linked list, do not prohibit the insertion of . - Even in the implementations that permit it, should - not be inserted into a , as is also - used as a special return value by the - method to - indicate that the queue contains no elements. -

-

- implementations generally do not define - element-based versions of methods - and , but instead inherit the - identity based versions from the class object, because element-based equality - is not always well-defined for queues with the same elements but different - ordering properties. -

-

- Based on the back port of JCP JSR-166. -

-
- Doug Lea - Griffin Caprio (.NET) - $Id: IQueue.cs,v 1.7 2006/09/30 18:39:24 gcaprio Exp $ -
- - - Inserts the specified element into this queue if it is possible to do so - immediately without violating capacity restrictions, returning - upon success and throwing an - if no space is - currently available. - - - The element to add. - - - if successful. - - - If the element cannot be added at this time due to capacity restrictions. - - - If the class of the supplied prevents it - from being added to this queue. - - - If the specified element is and this queue does not - permit elements. - - - If some property of the supplied prevents - it from being added to this queue. - - - - - Inserts the specified element into this queue if it is possible to do - so immediately without violating capacity restrictions. - - -

- When using a capacity-restricted queue, this method is generally - preferable to , - which can fail to insert an element only by throwing an exception. -

-
- - The element to add. - - - if the element was added to this queue. - - - If the element cannot be added at this time due to capacity restrictions. - - - If the supplied is - . - - - If some property of the supplied prevents - it from being added to this queue. - -
- - - Retrieves and removes the head of this queue. - - -

- This method differs from - only in that it throws an exception if this queue is empty. -

-
- - The head of this queue - - if this queue is empty -
- - - Retrieves and removes the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Retrieves, but does not remove, the head of this queue. - - -

- This method differs from - only in that it throws an exception if this queue is empty. -

-
- - The head of this queue. - - If this queue is empty. -
- - - Retrieves, but does not remove, the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Returns if there are no elements in the , otherwise. - - - - - Creates a new instance of the class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - Inserts the specified element into this queue if it is possible - to do so immediately without violating capacity restrictions. - - - The element to add. - - - if successful. - - - If the element cannot be added at this time due to capacity restrictions. - - - - - Retrieves and removes the head of this queue. - - -

- This method differs from - only in that - it throws an exception if this queue is empty. -

-
- - The head of this queue - - - If this queue is empty. - -
- - - Retrieves, but does not remove, the head of this queue. - - -

- This method differs from - only in that it throws an exception if this queue is empty. -

-

- ALso note that this implementation returns the result of - unless the queue - is empty. -

-
- The head of this queue. - - If this queue is empty. - -
- - - Removes all of the elements from this queue. - - -

- The queue will be empty after this call returns. -

-

- This implementation repeatedly invokes - until it - returns . -

-
-
- - - Adds all of the elements in the supplied - to this queue. - - -

- Attempts to - - of a queue to itself result in . - Further, the behavior of this operation is undefined if the specified - collection is modified while the operation is in progress. -

-

- This implementation iterates over the specified collection, - and adds each element returned by the iterator to this queue, in turn. - An exception encountered while trying to add an element (including, - in particular, a element) may result in only some - of the elements having been successfully added when the associated - exception is thrown. -

-
- - The collection containing the elements to be added to this queue. - - - if this queue changed as a result of the call. - - - If the supplied or any one of its elements are . - - - If the collection is the current or - the collection size is greater than the queue capacity. - -
- - - Inserts the specified element into this queue if it is possible to do - so immediately without violating capacity restrictions. - - -

- When using a capacity-restricted queue, this method is generally - preferable to , - which can fail to insert an element only by throwing an exception. -

-
- - The element to add. - - - if the element was added to this queue. - - - If the element cannot be added at this time due to capacity restrictions. - - - If the supplied is - . - - - If some property of the supplied prevents - it from being added to this queue. - -
- - - Retrieves, but does not remove, the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Retrieves and removes the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - The type of the source cannot be cast automatically to the type of the destination array. 2 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Returns if there are no elements in the , otherwise. - - - - - Returns the current capacity of this queue. - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - - Priority queue represented as a balanced binary heap: the two children - of queue[n] are queue[2*n] and queue[2*n + 1]. The priority queue is - ordered by comparator, or by the elements' natural ordering, if - comparator is null: For each node n in the heap and each descendant d - of n, n <= d. - - The element with the lowest value is in queue[1], assuming the queue is - nonempty. (A one-based array is used in preference to the traditional - zero-based array to simplify parent and child calculations.) - - queue.length must be >= 2, even if size == 0. - - - - The number of elements in the priority queue. - - - - The comparator, or null if priority queue uses elements' - natural ordering. - - - - - The number of times this priority queue has been - structurally modified. - - - - - Creates a with the default initial capacity - (11) that orders its elements according to their natural - ordering (using ). - - - - - Creates a with the specified initial capacity - that orders its elements according to their natural ordering - (using ). - - the initial capacity for this priority queue. - - if is less than 1. - - - - Creates a with the specified initial capacity - that orders its elements according to the specified comparator. - - the initial capacity for this priority queue. - the comparator used to order this priority queue. - If then the order depends on the elements' natural ordering. - - if is less than 1. - - - - Creates a containing the elements in the - specified collection. The priority queue has an initial - capacity of 110% of the size of the specified collection or 1 - if the collection is empty. If the specified collection is an - instance of a , the priority queue will be sorted - according to the same comparator, or according to its elements' - natural order if the collection is sorted according to its - elements' natural order. Otherwise, the priority queue is - ordered according to its elements' natural order. - - the collection whose elements are to be placed into this priority queue. - if elements of cannot be - compared to one another according to the priority queue's ordering - if or any element with it is - - - - - - Common code to initialize underlying queue array across - constructors below. - - - - - Performs an unsigned bitwise right shift with the specified number - - Number to operate on - Ammount of bits to shift - The resulting number from the shift operation - - - - Establishes the heap invariant assuming the heap - satisfies the invariant except possibly for the leaf-node indexed by k - (which may have a nextExecutionTime less than its parent's). - - - This method functions by "promoting" queue[k] up the hierarchy - (by swapping it with its parent) repeatedly until queue[k] - is greater than or equal to its parent. - - - - - Establishes the heap invariant (described above) in the subtree - rooted at k, which is assumed to satisfy the heap invariant except - possibly for node k itself (which may be greater than its children). - - - This method functions by "demoting" queue[k] down the hierarchy - (by swapping it with its smaller child) repeatedly until queue[k] - is less than or equal to its children. - - - - - Establishes the heap invariant in the entire tree, - assuming nothing about the order of the elements prior to the call. - - - - - Returns the of or - 1, - whichever is smaller. - - base size - percentage to return - of - - - - Initially fill elements of the queue array under the - knowledge that it is sorted or is another , in which - case we can just place the elements in the order presented. - - - - - Initially fill elements of the queue array that is not to our knowledge - sorted, so we must rearrange the elements to guarantee the heap - invariant. - - - - - Removes and returns element located at from queue. (Recall that the queue - is one-based, so 1 <= i <= size.) - - - Normally this method leaves the elements at positions from 1 up to i-1, - inclusive, untouched. Under these circumstances, it returns . - Occasionally, in order to maintain the heap invariant, it must move - the last element of the list to some index in the range [2, i-1], - and move the element previously at position (i/2) to position i. - Under these circumstances, this method returns the element that was - previously at the end of the list and is now at some position between - 2 and i-1 inclusive. - - - - Resize array, if necessary, to be able to hold given index - - - - Inserts the specified element into this queue if it is possible to do - so immediately without violating capacity restrictions. - - -

- When using a capacity-restricted queue, this method is generally - preferable to , - which can fail to insert an element only by throwing an exception. -

-
- - The element to add. - - - if the element was added to this queue. - - - if the specified element cannot be compared - with elements currently in the priority queue according - to the priority queue's ordering. - - - If the element cannot be added at this time due to capacity restrictions. - - - If the supplied is - and this queue does not permit - elements. - - - If some property of the supplied prevents - it from being added to this queue. - -
- - - Retrieves, but does not remove, the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Inserts the specified element into this queue if it is possible to do so - immediately without violating capacity restrictions, returning - upon success and throwing an - if no space is - currently available. - - - The element to add. - - - if successful. - - - If the element cannot be added at this time due to capacity restrictions. - - - If the specified element is and this queue does not - permit elements. - - - If some property of the supplied prevents - it from being added to this queue. - - - if the specified element cannot be compared - with elements currently in the priority queue according - to the priority queue's ordering. - - - - - Removes a single instance of the specified element from this - queue, if it is present. - - - - - Returns an over the elements in this queue. - The enumeratoar does not return the elements in any particular order. - - an enumerator over the elements in this queue. - - - - Removes all elements from the priority queue. - The queue will be empty after this call returns. - - - - - Retrieves and removes the head of this queue, - or returns if this queue is empty. - - - The head of this queue, or if this queue is empty. - - - - - Queries the queue to see if it contains the specified - - element to look for. - if the queue contains the , - otherwise. - - - Returns the comparator used to order this collection, or - if this collection is sorted according to its elements natural ordering - (using ). - - - the comparator used to order this collection, or - if this collection is sorted according to its elements natural ordering. - - - - - Save the state of the instance to a stream (that - is, serialize it). - - The length of the array backing the instance is - emitted (int), followed by all of its elements (each an - ) in the proper order. - - the stream - the context - - - - Reconstitute the instance from a stream (that is, - deserialize it). - - the stream - the context - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - The type of the source cannot be cast automatically to the type of the destination array. 2 - - - - Copies the elements of the to an , starting at index 0. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - array is null. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. - The type of the source cannot be cast automatically to the type of the destination array. 2 - - - - Gets the Capacity of this queue. Will equal - - - - - Returns the queue count. - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - - Returns if there are no elements in the , otherwise. - - - - - Index (into queue array) of element to be returned by subsequent call to next. - - - - - This attribute should be used with methods that return an - in order to cache each item separately. - - -

- This attribute allows application developers to specify that each item - from the collection returned by the method should be cached, - but it will not do any caching by itself. -

-

- In order to actually cache the result, an application developer - must apply a Spring.Aspects.Cache.CacheResultAdvice to - all of the members that have this attribute defined. -

-
- Aleksandar Seovic - $Id: CacheResultItemsAttribute.cs,v 1.2 2007/03/31 02:59:48 bbaia Exp $ -
- - - Abstract base class containing shared properties for all cache attributes. - - Aleksandar Seovic - $Id: BaseCacheAttribute.cs,v 1.5 2007/08/29 17:29:10 oakinger Exp $ - - - - The instance used to parse values. - - - - - - - Creates an attribute instance. - - - - - Creates an attribute instance. - - - The name of the cache to use. - - - An expression string that should be evaluated in order to determine - the cache key for the item. - - - - - Gets or sets the name of the cache to use. - - - The name of the cache to use. - - - - - Gets or sets a SpEL expression that should be evaluated in order - to determine the cache key for the item. - - - An expression string that should be evaluated in order to determine - the cache key for the item. - - - - - Gets an expression instance that should be evaluated in order - to determine the cache key for the item. - - - An expression instance that should be evaluated in order to determine - the cache key for the item. - - - - - Gets or sets a SpEL expression that should be evaluated in order - to determine whether the item should be cached. - - - An expression string that should be evaluated in order to determine - whether the item should be cached. - - - - - Gets an expression instance that should be evaluated in order - to determine whether the item should be cached. - - - An expression instance that should be evaluated in order to determine - whether the item should be cached. - - - - - The amount of time an object should remain in the cache. - - - If no TTL is specified, the default TTL defined by the - cache's policy will be applied. - - - The amount of time object should remain in the cache - formatted to be recognizable by . - - - - - The amount of time an object should remain in the cache (in seconds). - - - If no TTL is specified, the default TTL defined by the - cache's policy will be applied. - - - The amount of time object should remain in the cache (in seconds). - - - - - Creates an attribute instance. - - - - - Creates an attribute instance. - - - The name of the cache to use. - - - An expression string that should be evaluated in order to determine - the cache key for the item. - - - - - Evaluates validator test using condition evaluator. - - Aleksandar Seovic - $Id: ConditionValidator.cs,v 1.5 2006/04/09 07:19:04 markpollack Exp $ - - - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Evaluates the test using condition evaluator. - - -

- Test can be any logical expression that is supported by the Spring.NET logical - expression evaluation engine, and can use any variables that can be resolved - by the variable resolver used by the validation engine. -

-
- The object to validate. - - if the supplied is valid. - -
- - - UniqueKey allows for generating keys unique to a type or particular instance and a partial name, - that can e.g. be used as keys in . - - - // shows usage type-scoped keys - UniqueKey classAKey = UniqueKey.GetTypeScoped(typeof(ClassA), "myKey"); - UniqueKey classBKey = UniqueKey.GetTypeScoped(typeof(ClassB), "myKey"); - - HttpContext.Current.Items.Add( classAKey, "some value unqiue for class A having key 'myKey'"); - object value = HttpContext.Current.Items[ UniqueKey.GetTypeScoped(typeof(ClassA), "myKey") ]; - Assert.AreEqual( "some value unique for class A having key 'myKey'", value); - - HttpContext.Current.Items.Add( classBKey, "some value unqiue for class B having key 'myKey'"); - object value = HttpContext.Current.Items[ UniqueKey.GetTypeScoped(typeof(ClassB), "myKey") ]; - Assert.AreEqual( "some value unique for class B having key 'myKey'", value); - - - - - Initialize a new instance of from its string representation. - See and See for details. - - The string representation of the new instance. - - - - Compares this instance to another. - - - - - Compares this instance to another. - - - - - Returns the hash code for this key. - - - - - - Returns a string representation of this key. - - - - - Creates a new key instance unique to the given instance. - - The instance the key shall be unique to - The partial key to be made unique - - - If is of type - - - - Creates a new key instance unique to the given type. - - The type the key shall be unique to - The partial key to be made unique - - - - Returns a key unique for the given instance. - - The instance the key shall be unique to - The partial key to be made unique - A key formatted as typename[instance-id].partialkey - - - - Returns a key unique for the given type. - - The type the key shall be unique to - The partial key to be made unique - A key formatted as typename.partialkey - - - - Miscellaneous generic collection utility methods. - - - Mainly for internal use within the framework. - - Mark Pollack (.NET) - $Id: CollectionUtils.cs,v 1.2 2006/12/02 07:51:28 markpollack Exp $ - - - - Determine whether a given collection only contains - a single unique object - - - - - - - Determines whether the contains the specified . - - The collection to check. - The object to locate in the collection. - if the element is in the collection, otherwise. - - - - Determines whether the collection contains all the elements in the specified collection. - - The collection to check. - Collection whose elements would be checked for containment. - true if the target collection contains all the elements of the specified collection. - - - Thrown by synchronization classes that report - timeouts via exceptions. The exception is treated - as a form (subclass) of InterruptedException. This both - simplifies handling, and conceptually reflects the fact that - timed-out operations are artificially interrupted by timers. - - - - - The approximate time that the operation lasted before - this timeout exception was thrown. - - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Override of GetObjectData to allow for private serialization - - serialization info - streaming context - - - Constructs a TimeoutException with given duration value. - - - - - Constructs a TimeoutException with the - specified duration value and detail message. - - - - - Gets the approximate time that the operation lasted before - this timeout exception was thrown. - - - - - Combined exception, composed of individual binding - s. - - -

- An object of this class is created at the beginning of the binding - process, and errors added to it as necessary. -

-

- The binding process continues when it encounters application-level - s, applying those changes - that can be applied and storing rejected changes in an instance of this class. -

-
- Rod Johnson - Juergen Hoeller - Mark Pollack (.NET) - $Id: PropertyAccessExceptionsException.cs,v 1.15 2007/07/31 00:26:30 markpollack Exp $ -
- - - Creates a new instance of the PropertyAccessExceptionsException class. - - - - - Creates a new instance of the PropertyAccessExceptionsException class. - - - A message about the exception. - - - - - Creates a new instance of the PropertyAccessExceptionsException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Create new empty PropertyAccessExceptionsException. - We'll add errors to it as we attempt to bind properties. - - - - - Creates a new instance of the PropertyAccessExceptionsException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The IObjectWrapper wrapping the target object at the root of the exception. - - - - The list of PropertyAccessException objects. - - - - Return the - for the supplied , or - if there isn't one. - - - - - Describe the number of exceptions contained in this container class. - - A description of the instance contents. - - - - Return the that generated - this exception. - - - - - Return the object we're binding to. - - - - - If this returns zero (0), no errors were encountered during binding. - - - - - Return an array of the s - stored in this object. - - -

- Will return the empty array (not ) if there were no errors. -

-
-
- - - Describe the group of exceptions. - - - - - Represents the replacement of a method on a managed object by the IoC - container. - - -

- Note that this mechanism is not intended as a generic means of - inserting crosscutting code: use AOP for that. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: ReplacedMethodOverride.cs,v 1.3 2007/03/16 04:01:42 aseovic Exp $ -
- - - Represents the override of a method on a managed object by the IoC container. - - -

- Note that the override mechanism is not intended as a generic means of - inserting crosscutting code: use AOP for that. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: MethodOverride.cs,v 1.9 2007/08/22 08:52:03 markpollack Exp $ -
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
- - The name of the method that is to be overridden. - - - If the supplied is or - contains only whitespace character(s). - -
- - - Does this - match the supplied ? - - -

- By 'match' one means does this particular - - instance apply to the supplied ? -

-

- This allows for argument list checking as well as method name checking. -

-
- The method to be checked. - - if this override matches the supplied - . - -
- - - The name of the method that is to be overridden. - - - - - Is the method that is ot be injected - () - to be considered as overloaded? - - -

- If (the default), then argument type matching - will be performed (because one would not want to override the wrong - method). -

-

- Setting the value of this property to can be used - to optimize runtime performance (ever so slightly). -

-
-
- - - Creates a new instance of the - class. - - - The name of the method that is to be overridden. - - - The object name of the - instance in the surrounding IoC container. - - - If either of the supplied arguments is or - contains only whitespace character(s). - - - - - Add a fragment of a instance's - such as 'Exception or System.Excep to identify an argument - for a dependency injected method. - - - A (sub) string of a instance's . - - - If the supplied is or - contains only whitespace character(s). - - - - - - Does this - match the supplied ? - - The method to be checked. - - if this override matches the supplied . - - - If the supplied is . - - - - - A that represents the current - . - - - A that represents the current - . - - - - - The object name of the - instance in the surrounding IoC container. - - - - - Utility methods that are useful for - - implementations. - - Juergen Hoeller - Rick Evans (.NET) - - $Id: ObjectDefinitionReaderUtils.cs,v 1.13 2007/08/07 22:05:20 markpollack Exp $ - - - - The string used as a separator in the generation of synthetic id's - for those object definitions explicitly that aren't assigned one. - - -

- If a name or parent object definition - name is not unique, "#1", "#2" etc will be appended, until such - time that the name becomes unique. -

-
-
- - - Registers the supplied with the - supplied . - - -

- This is a convenience method that registers the - - of the supplied under the - - property value of said . If the - supplied has any - , - then those aliases will also be registered with the supplied - . -

-
- - The object definition holder containing the - that - is to be registered. - - - The registry that the supplied - is to be registered with. - - - If either of the supplied arguments is . - - - If the could not be registered - with the . - -
- - - Generates an object definition name for the supplied - that is guaranteed to be unique - within the scope of the supplied . - - - The - that requires a generated name. - - - The - - that the supplied is to be - registered with (needed so that the uniqueness of any generated - name can be guaranteed). - - - An object definition name for the supplied - that is guaranteed to be unique - within the scope of the supplied and - never . - - - If either of the or - arguments is . - - - If a unique name cannot be generated. - - - - - Factory method for getting concrete - instances. - - - The name of the event handler method. This may be straight text, a regular - expression, , or empty. - - - The name of the event being wired. This too may be straight text, a regular - expression, , or empty. - - - A concrete - instance. - - - - - Creates a new instance of the - class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Abstract superclass for - implementations. - - -

- This class provides singleton / prototype determination, singleton caching, - object definition aliasing, - handling, and object definition merging for child object definitions. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: AbstractObjectFactory.cs,v 1.76 2008/04/05 13:35:35 oakinger Exp $ -
- - - Marker object to be temporarily registered in the singleton cache, - while instantiating an object (in order to be able to detect circular references). - - - - - The instance for this class. - - - - - Used as value in hashtable that keeps track of singleton names currently in the - process of being created. Would not be necessary if we created a case insensitive implementation of - ISet. - - - - - Creates a new instance of the - class. - - -

- This constructor implicitly creates an - - that treats the names of objects in this factory in a case-sensitive fashion. -

-

- This is an class, and as such exposes no public constructors. -

-
-
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no public constructors. -

-
- - if the names of objects in this factory are to be treated in a - case-sensitive fashion. - -
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no public constructors. -

-
- - if the names of objects in this factory are to be treated in a - case-sensitive fashion. - - - Any parent object factory; may be . - -
- - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - - The the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , then - match the argument values by type and call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - - - If the supplied is . - - - - - - Apply the property values of the object definition with the supplied - to the supplied . - - -

- The object definition can either define a fully self-contained object, - reusing it's property values, or just property values meant to be used - for existing object instances. -

-
- - The existing object that the property values for the named object will - be applied to. - - - The name of the object definition associated with the property values that are - to be applied. - - - In case of errors. - -
- - - Initializes the given with the - custom s registered with - this factory. - - - The to initialise. - - - - - Create an object instance for the given object definition. - - -

- The object definition will already have been merged with the parent - definition in case of a child definition. -

-

- All the other methods in this class invoke this method, although objects - may be cached after being instantiated by this method. All object - instantiation within this class is performed by this method. -

-
- The name of the object. - - The object definition for the object that is to be instantiated. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , - then match the argument values by type and call the object's constructor. - - - A new instance of the object. - - - In case of errors. - -
- - - Destroy the target object. - - -

- Must destroy objects that depend on the given object before the object itself, - nor throw an exception. -

-
- - The name of the object. - - - The target object instance to destroyed. - -
- - - Does this object factory contain an object definition with the - supplied ? - - -

- Does not consider any hierarchy this factory may participate in. - Invoked by - - when no cached singleton instance is found. -

-
- - The name of the object to look for. - - - if this object factory contains an object - definition with the supplied . - -
- - - Adds the supplied (object) to this factory's - singleton cache. - - -

- To be called for eager registration of singletons, e.g. to be able to - resolve circular references. -

- - If a singleton has already been registered under the same name as - the supplied , then the old singleton will - be replaced. - -
- The name of the object. - The singleton object. - - If the argument is - or consists wholly of whitespace characters; or if the - is . - -
- - - Return the object name, stripping out the factory dereference prefix if - necessary, and resolving aliases to canonical names. - - - The transformed name of the object. - - - - - Ensures, that the given name is prefixed with - if it incidentially already starts with this prefix. This avoids troubles when dereferencing - the object name during - - - - - Determines whether the specified name is defined as an alias as opposed - to the name of an actual object definition. - - The object name to check. - - true if the specified name is alias; otherwise, false. - - - - - Return a , - even by traversing parent if the parameter is a child definition. - - - The name of the object. - - - Are ancestors to be included in the merge? - - -

- Will ask the parent object factory if not found in this instance. -

-
- - A merged - with overridden properties. - -
- - - Return a , - even by traversing parent if the parameter is a child definition. - - - A merged - with overridden properties. - - - - - Creates the root object definition. - - The template definition to base root definition on. - Root object definition. - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - Whether to search parent object factories. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Gets the type for the given FactoryObject. - - The factory object instance to check. - the FactoryObject's object type - - - - Gets the object type for the given FactoryObject definition, as far as possible. - Only called if there is no singleton instance registered for the target object already. - - - The default implementation creates the FactoryObject via GetObject - to call its ObjectType property. Subclasses are encouraged to optimize - this, typically by just instantiating the FactoryObject but not populating it yet, - trying whether its ObjectType property already returns a type. - If no type found, a full FactoryObject creation as performed by this implementation - should be used as fallback. - - Name of the object. - The merged object definition for the object. - The type for the object if determinable, or null otherwise - - - - Predict the eventual object type (of the processed object instance) for the - specified object. - - - Does not need to handle FactoryObjects specifically, since it is only - supposed to operate on the raw object type. - This implementation is simplistic in that it is not able to - handle factory methods and InstantiationAwareBeanPostProcessors. - It only predicts the object type correctly for a standard object. - To be overridden in subclasses, applying more sophisticated type detection. - - Name of the object. - The merged object definition to determine the type for. - The type of the object, or null if not predictable - - - - Get the object for the given object instance, either the object - instance itself or its created object in case of an - . - - - The name that may include the factory dereference prefix. - - The object instance. - - The singleton instance of the object. - - - - - Obtain an object to expose from the given IFactoryObject. - - The IFactoryObject instance. - Name of the object. - The merged object definition. - The object obtained from the IFactoryObject - If IFactoryObject object creation failed. - - - - Post-process the given object that has been obtained from the FactoryObject. - The resulting object will be exposed for object references. - - The default implementation simply returns the given object - as-is. Subclasses may override this, for example, to apply - post-processors. - The instance obtained from the IFactoryObject. - Name of the object. - The object instance to expose - if any post-processing failed. - - - - Convenience method to pull an - from this factory. - - - The name of the factory object to be retrieved. If this name is not a valid - name, it will be converted - into one. - - - The associated with the - supplied . - - - - - Is the supplied a factory object dereference? - - - - - Determines whether the type of the given object definition matches the - specified target type. - - Allows for lazy load of the actual object type, provided that the - type match can be determined otherwise. - The default implementation simply delegates to the standard - ResolveObjectType method. Subclasses may override this to use - a differnt strategy. - - Name of the object (for error handling purposes). - The merged object definition to determine the type for. - Type to match against (never null). - - true if object definition matches tye specified target type; otherwise, false. - - if we failed to load the type." - - - - Resolves the type of the object for the specified object definition resolving - an object type name to a Type (if necessary) and storing the resolved Type - in the object definition for further use. - - The merged object definition to dertermine the type for. - Name of the object (for error handling purposes). - - - - - Is the object (definition) with the supplied an - ? - - The name of the object to be checked. - - the object (definition) with the supplied - an ? - - - - - Remove the object identified by the supplied - from this factory's singleton cache. - - - The name of the object that is to be removed from the singleton - cache. - - - If the argument is or - consists wholly of whitespace characters. - - - - - Return the names of objects in the singleton cache that match the given - object type (including subclasses). - - - The class or interface to match, or for all object names. - - -

- Will not consider s - as the type of their created objects is not known before instantiation. -

-

- Does not consider any hierarchy this factory may participate in. -

-
- - The names of objects in the singleton cache that match the given - object type (including subclasses), or an empty array if none. - -
- - - Determines whether the object with the given name matches the specified type. - - More specifically, check whether a GetObject call for the given name - would return an object that is assignable to the specified target type. - Translates aliases back to the corresponding canonical bean name. - Will ask the parent factory if the bean cannot be found in this factory instance. - - The name of the object to query. - Type of the target to match against. - - true if the object type matches; otherwise, false - if it doesn't match or cannot be determined yet. - - Ff there is no object with the given name - - - - - Determines the of the object with the - supplied . - - -

- More specifically, checks the of object that - would return. - For an , returns the - of object that the - creates. -

-

- Please note that (prototype) objects created via a factory method or - objects are handled - slightly differently, in that we don't want to needlessly create - instances of such objects just to determine the - of object that they create. -

-
- The name of the object to query. - - The of the object or - if not determinable. - -
- - - Determines the of the object defined - by the supplied object . - - -

- This, the default, implementation returns - to indicate that the type cannot be determined. Subclasses are - encouraged to try to determine the actual return - here, matching their strategy of resolving - factory methods in the - - implementation. -

-
- - The name associated with the supplied object . - - - The - that the is to be determined for. - - - The of the object defined by the supplied - object ; or if the - cannot be determined. - -
- - - Returns the names of the objects in the singleton cache. - - -

- Does not consider any hierarchy this factory may participate in. -

-
- The names of the objects in the singleton cache. -
- - - Returns the number of objects in the singleton cache. - - -

- Does not consider any hierarchy this factory may participate in. -

-
- The number of objects in the singleton cache. -
- - - Destroys the named singleton object. - - -

- Delegates to - - if a corresponding singleton instance is found. -

-
- - The name of the singleton object that is to be destroyed. - - -
- - - Check the supplied merged object definition for any possible - validation errors. - - - The object definition to be checked for validation errors. - - - The name of the object associated with the supplied object definition. - - - The the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , then - match the argument values by type and call the object's constructor. - - - In the case of object validation errors. - - - - - Parent object factory, for object inheritance support - - - - - Dependency types to ignore on dependency check and autowire, as Set of - Type objects: for example, string. Default is none. - - - - - ObjectPostProcessors to apply in CreateObject - - - - - Indicates whether any IInstantiationAwareBeanPostProcessors have been registered - - - - - Indicates whether any IDestructionAwareBeanPostProcessors have been registered - - - - - Is this object a singleton? - - - - - - Determines whether the specified object name is prototype. That is, will GetObject - always return independent instances? - - The name of the object to query - - true if the specified object name will always deliver independent instances; otherwise, false. - - This method returning false does not clearly indicate a singleton object. - It indicated non-independent instances, which may correspond to a scoped object as - well. use the IsSingleton property to explicitly check for a shared - singleton instance. - Translates aliases back to the corresponding canonical object name. Will ask the - parent factory if the object can not be found in this factory instance. - - - if there is no object with the given name. - - - - Does this object factory contain an object with the given name? - - - This method does not (and it should not) check if the specified - object exists in one of the parent object factories. If it did, - message sources and event registries within application context - hierarchy would have circular references, which would cause stack - overflows during message lookup, for example. (A. Seovic) - - . - - - - Return the aliases for the given object name, if defined. - - . - - - - Return an instance (possibly shared or independent) of the given object name. - - . - - - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. If there is no factory method and the - arguments are not null, then match the argument values by type and - call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the supplied is . - -
- - - Tries to find a cached object for the specified name. - - Teh object name to look for. - The cached object if found, otherwise. - - - - Creates a singleton instance for the specified object name and definition. - - - The object name (will be used as the key in the singleton cache key). - - The object definition. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. If there is no factory method and the - arguments are not null, then match the argument values by type and - call the object's constructor. - - The created object instance. - - - - Return an instance (possibly shared or independent) of the given object name. - - - - - - Injects dependencies into the supplied instance - using the named object definition. - - - - - - Injects dependencies into the supplied instance - using the supplied . - - - - - - Destroy all cached singletons in this factory. - - - - - Ignore the given dependency type for autowiring - - . - - - - Determines whether the specified object name is currently in creation.. - - Name of the object. - - true if the specified object name is currently in creation; otherwise, false. - - - - - Add a new - that will get applied to objects created by this factory. - - - The - to register. - - . - - - - Given an object name, create an alias. - - . - - - - Register the given existing object as singleton in the object factory, - under the given object name. - - . - - - - Register the given custom - for all properties of the given . - - . - - - - Does this object factory contains a singleton instance with the - supplied ? - - - - - - Gets the of - s - that will be applied to objects created by this factory. - - - - - Gets the set of classes that will be ignored for autowiring. - - -

- The elements of this are - s. -

-
-
- - - Returns, whether this object factory instance contains objects. - - - - - Returns, whether this object factory instance contains objects. - - - - - Gets the temporary object that is placed - into the singleton cache during object resolution. - - - - - The parent object factory, or if there is none. - - - The parent object factory, or if there is none. - - - - - Return an instance (possibly shared or independent) of the given object name. - - . - - - - Returns the current number of registered - s. - - - The current number of registered - s. - - . - - - - Exception thrown when an - encounters an error when attempting to parse an object - definition. - - Federico Spinazzi (.NET) - - - - Creates a new instance of the ObjectDefinitionException class. - - - - - Creates a new instance of the ObjectDefinitionException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectDefinitionException class. - - - The value of the xml class attribute thet can be resolved - as a type - - - - - Creates a new instance of the ObjectDefinitionException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The message about the exception. - - - - - Thrown in case of a reference to an object that is currently in creation. - - -

- Typically happens when constructor autowiring matches the currently - constructed object. -

-
- Juergen Hoeller - Rick Evans - $Id: ObjectCurrentlyInCreationException.cs,v 1.6 2007/12/05 00:28:04 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The description of the resource associated with the object. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - - - Creates a new instance of the - class. - - - The description of the resource associated with the object. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectCurrentlyInCreationException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Immutable placeholder class used for the value of a - object when it's a reference - to another object in this factory to be resolved at runtime. - - Rod Johnson - Rick Evans (.NET) - - - - Creates a new instance of the - - class. - - -

- This does not mark this object as being a reference to - another object in any parent factory. -

-
- The name of the target object. -
- - - Creates a new instance of the - - class. - - -

- This variant constructor allows a client to specifiy whether or not - this object is a reference to another object in a parent factory. -

-
- The name of the target object. - - Whether this object is an explicit reference to an object in a - parent factory. - -
- - - Returns a string representation of this instance. - - A string representation of this instance. - - - - Return the target object name. - - - - - Is this is an explicit reference to an object in the parent - factory? - - - if this is an explicit reference to an - object in the parent factory. - - - - - Default implementation of the - interface. - - -

- Allows simple manipulation of properties, and provides constructors to - support deep copy and construction from a number of collection types such as - and - . -

-
- Rod Johnson - Mark Pollack (.NET) - Rick Evans (.NET) - $Id: MutablePropertyValues.cs,v 1.15 2007/03/16 04:01:29 aseovic Exp $ -
- - - The list of objects. - - - - - Creates a new instance of the - class. - - -

- The returned instance is initially empty... - s can be added with the various - overloaded , - , - , - and - methods. -

-
- - -
- - - Creates a new instance of the - class. - - -

- Deep copy constructor. Guarantees - references are independent, although it can't deep copy objects currently - referenced by individual objects. -

-
-
- - - Creates a new instance of the - class. - - - The with property values - keyed by property name, which must be a . - - - - - Overloaded version of Add that takes a property name and a property value. - - - The name of the property. - - - The value of the property. - - - - - Add the supplied object, - replacing any existing one for the respective property. - - - The object to add. - - - - - Add all property values from the given - . - - - The map of property values, the keys of which must be - s. - - - - - Add all property values from the given - . - - - The list of s to be added. - - - - - Remove the given , if contained. - - - The to remove. - - - - - Removes the named , if contained. - - - The name of the property. - - - - - Modify a object held in this object. Indexed from 0. - - - - - Return the property value given the name. - - - The property name is checked in a case-insensitive fashion. - - - The name of the property. - - - The property value. - - - - - Does the container of properties contain one of this name. - - The name of the property to search for. - - True if the property is contained in this collection, false otherwise. - - - - - Return the difference (changes, additions, but not removals) of - property values between the supplied argument and the values - contained in the collection. - - Another property values collection. - - The collection of property values that are different than the supplied one. - - - - - Returns an that can iterate - through a collection. - - -

- The returned is the - exposed by the - - property. -

-
- - An that can iterate through a - collection. - -
- - - Convert the object to a string representation. - - - A string representation of the object. - - - - - Property to retrieve the array of property values. - - - - - Holder for an with - name and aliases. - - -

- Recognized by - - for inner object definitions. Registered by - , - which also uses it as general holder for a parsed object definition. -

-

- Can also be used for programmatic registration of inner object - definitions. If you don't care about the functionality offered by the - interface and the like, - registering - or is good enough. -

-
- Juergen Hoeller - Simon White (.NET) - $Id: ObjectDefinitionHolder.cs,v 1.2 2007/08/07 22:05:20 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - The object definition to be held by this instance. - - - The name of the object definition. - - - - - Creates a new instance of the - class. - - - The object definition to be held by this instance. - - The name of the object. - - Any aliases for the supplied - - - - - The held by this - instance. - - - - - The name of the object definition. - - - - - Any aliases for the object definition. - - -

- Guaranteed to never return ; if the associated - - does not have any aliases associated with it, then an empty - array will be returned. -

-
-
- - - Extension of the interface - that injects dependencies into the object managed by the factory. - - Bruno Baia - $Id: IConfigurableFactoryObject.cs,v 1.1 2007/07/29 19:39:27 markpollack Exp $ - - - - Gets the template object definition that should be used - to configure the instance of the object managed by this factory. - - - - - Represents unary plus operator. - - Aleksandar Seovic - $Id: OpUnaryPlus.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the unary plus operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents arithmetic division operator. - - Aleksandar Seovic - $Id: OpDIVIDE.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic division operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed method node in the navigation expression. - - Aleksandar Seovic - $Id: MethodNode.cs,v 1.21 2008/03/20 23:58:16 oakinger Exp $ - - - - Static constructor. Initializes a map of special collection processor methods. - - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Gets the best method given the name, argument values, for a given type. - - The type on which to search for the method. - Name of the method. - The binding flags. - The arg values. - Best matching method or null if none found. - - - - Container object for the parsed expression. - - -

- Preparing this object once and reusing it many times for expression - evaluation can result in significant performance improvements, as - expression parsing and reflection lookups are only performed once. -

-
- Aleksandar Seovic - $Id: Expression.cs,v 1.19 2008/03/20 10:35:54 oakinger Exp $ -
- - - Initializes a new instance of the class - by parsing specified expression string. - - Expression to parse. - - - - Registers lambda expression under the specified . - - Function name to register expression as. - Lambda expression to register. - Variables dictionary that the function will be registered in. - - - - Initializes a new instance of the class - by parsing specified primary expression string. - - Primary expression to parse. - - - - Initializes a new instance of the class - by parsing specified property expression string. - - Property expression to parse. - - - - Initializes a new instance of the class. - - - - - Create a new instance from SerializationInfo - - - - - Evaluates this expression for the specified root object and returns - value of the last node. - - Context to evaluate expressions against. - Current expression evaluation context. - Value of the last node. - - - - Evaluates this expression for the specified root object and sets - value of the last node. - - Context to evaluate expressions against. - Current expression evaluation context. - Value to set last node to. - If navigation expression is empty. - - - - Evaluates this expression for the specified root object and returns - of the last node, if possible. - - Context to evaluate expression against. - Expression variables map. - Value of the last node. - - - - Contains a list of reserved variable names. - You must not use any variable names with the reserved prefix! - - - - - Variable Names using this prefix are reserved for internal framework use - - - - - variable name of the currently processed object factory, if any - - - - - Represents parsed attribute node in the navigation expression. - - Aleksandar Seovic - $Id: AttributeNode.cs,v 1.9 2007/09/07 03:01:21 markpollack Exp $ - - - - Represents parsed method node in the navigation expression. - - Aleksandar Seovic - $Id: ConstructorNode.cs,v 1.16 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Creates new instance of the type defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Determines the type of object that should be instantiated. - - - The type name to resolve. - - - The type of object that should be instantiated. - - - If the type cannot be resolved. - - - - - Initializes this node by caching necessary constructor and property info. - - - - - - - Sets the named arguments (properties). - - Instance to set property values on. - Argument (property) name to value mappings. - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Tries to determine attribute type based on the specified - attribute type name. - - - Attribute type name to resolve. - - - Resolved attribute type. - - - If type cannot be resolved. - - - - - Converts string representation of expression into an instance of . - - Aleksandar Seovic - $Id: ExpressionConverter.cs,v 1.1 2007/07/31 02:13:52 markpollack Exp $ - - - - Can we convert from a the sourcetype to a ? - - -

- Currently only supports conversion from a instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to an - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A array if successful. - - - - - Utility methods that are used to convert objects from one type into another. - - Aleksandar Seovic - $Id: TypeConversionUtils.cs,v 1.4 2008/03/20 23:58:16 oakinger Exp $ - - - - Convert the value to the required (if necessary from a string). - - The proposed change value. - - The we must convert to. - - Property name, used for error reporting purposes... - - If there is an internal error. - - The new value, possibly the result of type conversion. - - - - Utility method to create a property change event. - - - The full name of the property that has changed. - - The property old value - The property new value - - A new . - - - - - Visitor class to represent - instances. - - -

- Used in the first instance to supply stringified versions of - instances. -

-

- Other methods can be added here to return different representations, - including XML, CSV, etc.. -

-
- Griffin Caprio (.NET) - $Id: MessageSourceResolvableVisitor.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Outputs the supplied - as a nicely formatted . - - - The to output. - - - - - Convenient superclass for application objects that want to be aware of - the application context, e.g. for custom lookup of collaborating object - or for context-specific resource access. - - -

- It saves the application context reference and provides an - initialization callback method. Furthermore, it offers numerous - convenience methods for message lookup. -

-

- There is no requirement to subclass this class: it just makes things - a little easier if you need access to the context, e.g. for access to - file resources or to the message source. Note that many application - objects do not need to be aware of the application context at all, - as they can receive collaborating objects via object references. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: ApplicationObjectSupport.cs,v 1.8 2007/07/17 14:51:14 oakinger Exp $ -
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
-
- - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no - public constructors. -

-
- - The that this - object runs in. - -
- - - Intializes the wrapped - . - - -

- This is a template method that subclasses can override for custom - initialization behavior. -

-

- Gets called by the - - instance directly after setting the context instance. -

- - Does not get called on reinitialization of the context. - -
- - In the case of any initialization errors. - - - If thrown by application context methods. - -
- - - The context class that any context passed to the - - must be an instance of. - - - The - . - - - - - Return a for the - application context used by this object, for easy message access. - - - - - Set the that this - object runs in. - - - When passed an unexpected - implementation - instance that is not compatible with the - defined by the value of the - . - property. Also, thrown when trying to re-initialize with a - different than was - originally used. - - - If thrown by any application context methods. - - - - - - - Convenient abstract superclass for - implementations that - draw their configuration from XML documents containing object - definitions as understood by an - . - - Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: AbstractXmlApplicationContext.cs,v 1.20 2007/07/20 11:37:55 oakinger Exp $ - - - - Partial implementation of the - interface. - - -

- Does not mandate the type of storage used for configuration, but does - implement common functionality. Uses the Template Method design - pattern, requiring concrete subclasses to implement - methods. -

-

- In contrast to a plain vanilla - , an - is supposed - to detect special objects defined in its object factory: therefore, - this class automatically registers - s, - s - and s that are - defined as objects in the context. -

-

- An may be also supplied as - an object in the context, with the special, well-known-name of - "messageSource". Else, message resolution is delegated to the - parent context. -

-
- Rod Johnson - Juergan Hoeller - Griffin Caprio (.NET) - $Id: AbstractApplicationContext.cs,v 1.74 2007/08/27 09:38:28 oakinger Exp $ - - -
- - - Configurable implementation of the - interface. - - -

- This implementation - supports the configuration of resource access protocols and the - corresponding .NET types that know how to handle those protocols. -

-

- Basic protocol-to-resource type mappings are also defined by this class, - while others can be added either internally, by application contexts - extending this class, or externally, by the end user configuring the - context. -

-

- Only one resource type can be defined for each protocol, but multiple - protocols can map to the same resource type (for example, the - "http" and "ftp" protocols both map to the - type. The protocols that are - mapped by default can be found in the following list. -

-

- - - assembly - - - config - - - file - - - http - - - https - - -

-
- Aleksandar Seovic - $Id: ConfigurableResourceLoader.cs,v 1.25 2007/08/08 17:46:55 bbaia Exp $ - - - -
- - - The separator between the protocol name and the resource name. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class using the specified default protocol for unqualified resources. - - - - - Returns a that has been - mapped to the protocol of the supplied . - - The name of the resource. - - A new instance for the - supplied . - - - If a - mapping does not exist for the supplied . - - - In the case of any errors arising from the instantiation of the - returned instance. - - - - - - Checks that the supplied starts - with one of the protocol names currently mapped by this - instance. - - The name of the resource. - - if the supplied - starts with one of the known - protocols; if not, or if the supplied - is itself . - - - - - Extracts the protocol name from the supplied - . - - The name of the resource. - - The extracted protocol name or if the - supplied is unqualified (or - is itself ). - - - - - The default protocol to use for unqualified resources. - - -

- The initial value is "file". -

-
-
- - - Name of the .Net config section that contains Spring.Net context definition. - - - - - Default name of the root context. - - - - - The special, well-known-name of the default - in the context. - - -

- If no can be found - in the context using this lookup key, then message resolution - will be delegated to the parent context (if any). -

-
-
- - - The special, well-known-name of the default - in the context. - - -

- If no can be found - in the context using this lookup key, then a default - will be used. -

-
-
- - - The instance for this class. - - - - - The instance we delegate - our implementation of said interface to. - - - - - The instance we - delegate our implementation of said interface to. - - - - - Creates a new instance of the - with no parent context. - - -

- This is an class, and as such exposes - no public constructors. -

-
-
- - - Creates a new instance of the - with no parent context. - - -

- This is an class, and as such exposes - no public constructors. -

-
- Flag specifying whether to make this context case sensitive or not. -
- - - Creates a new instance of the - with the supplied parent context. - - -

- This is an class, and as such exposes - no public constructors. -

-
- The application context name. - Flag specifying whether to make this context case sensitive or not. - The parent application context. -
- - - Adds the given to the list of standard - processors being added to the underlying - - - Each time is called on this context, the context ensures, that - all default s are registered with the underlying . - - The instance. - - - - Closes this context and disposes of any resources (such as - singleton objects in the wrapped - ). - - - - - Subclasses must implement this method to perform the actual - configuration loading. - - -

- This method is invoked by - , - before any other initialization occurs. -

-
- - In the case of errors encountered while refreshing the object factory. - -
- - - Returns the internal object factory of the parent context if it implements - ; else, - returns the parent context itself. - - - The parent context's object factory, or the parent itself. - - - - - Raises an application context event. - - - Any arguments to the event. May be . - - - - - Raises an application context event. - - - The source of the event. - - - Any arguments to the event. May be . - - - - - Modify the application context's internal object factory after its standard - initialization. - - -

- All object definitions will have been loaded, but no objects - will have been instantiated yet. This allows for the registration - of special - s - in certain - implementations. -

-
- - The object factory used by the application context. - - - In the case of errors. - . -
- - - Template method which can be overridden to add context-specific - refresh work. - - -

- Called on initialization of special objects, before instantiation - of singletons. -

-
-
- - - Instantiate and invoke all registered - - objects, respecting any explicit ordering. - - - - Must be called before singleton instantiation. - - - In the case of errors. - - - - Register an IObjectPostProcessorChecker that logs an info - message when an object is created during IObjectPostProcessor - instantiation, i.e. when an object is not eligible for being - processed by all IObjectPostProcessors. - - - - - Initializes the default event registry for this context. - - - - - Returns the internal message source of the parent context if said - parent context is an , else - simply the parent context itself. - - - The internal message source of the parent context if said - parent context is an , else - simply the parent context itself. - - - - - Initializes the default message source for this context. - - -

- Uses any parent context's message source if one is not available - in this context. -

-
-
- - - Add a new - that will get applied to the internal object factory of this application context - on refresh, before any of the object definitions are evaluated. - - - The factory processor to register. - - - - - Load or refresh the persistent representation of the configuration, - which might an XML file, properties file, or relational database schema. - - - If the configuration cannot be loaded. - - - If the object factory could not be initialized. - - - - - Ensures, that predefined ObjectPostProcessors are registered with this ObjectFactory - - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the names of all objects defined in this factory. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - Whether to search parent object factories. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - - The (class or interface) to match. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - - - - - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - - The (class or interface) to match. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - - - - - - Check if this object factory contains an object definition with the given name. - - The name of the object to look for. - - True if this object factory contains an object definition with the given name. - - - - - - Does this object factory contain an object with the given name? - - The name of the object to query. - - if an object with the given name is defined. - - - - - - Return the aliases for the given object name, if defined. - - The object name to check for aliases. - The aliases, or an empty array if none. - - If there's no such object definition. - - - - - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - - the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - - - - - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - - - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. If there is no factory method and the - arguments are not null, then match the argument values by type and - call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the supplied is . - -
- - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - - The the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , then - match the argument values by type and call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - - - If the supplied is . - - - - - - Is this object a singleton? - - The name of the object to query. - True if the named object is a singleton. - - If there's no such object definition. - - - - - - Determines whether the specified object name is prototype. That is, will GetObject - always return independent instances? - - The name of the object to query - - true if the specified object name will always deliver independent instances; otherwise, false. - - This method returning false does not clearly indicate a singleton object. - It indicated non-independent instances, which may correspond to a scoped object as - well. use the IsSingleton property to explicitly check for a shared - singleton instance. - Translates aliases back to the corresponding canonical object name. Will ask the - parent factory if the object can not be found in this factory instance. - - - if there is no object with the given name. - - - - Determines whether the object with the given name matches the specified type. - - More specifically, check whether a GetObject call for the given name - would return an object that is assignable to the specified target type. - Translates aliases back to the corresponding canonical bean name. - Will ask the parent factory if the bean cannot be found in this factory instance. - - The name of the object to query. - Type of the target to match against. - - true if the object type matches; otherwise, false - if it doesn't match or cannot be determined yet. - - Ff there is no object with the given name - - - - - Determine the of the object with the - given name. - - The name of the object to query. - - The of the object, or - if not determinable. - - - - - - Injects dependencies into the supplied instance - using the named object definition. - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - - - - Injects dependencies into the supplied instance - using the supplied . - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - An object definition that should be used to configure object. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If no message could be resolved. - - - If the supplied is . - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The default message. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If no message could be resolved. - - - If the supplied is . - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The resolved message if the lookup was successful. - - - If no message could be resolved. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful. - - - If no message could be resolved. - - - If the supplied is . - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If no message could be resolved. - - - If the supplied is . - - - - - - Resolve the message using all of the attributes contained within - the supplied - argument. - - - The value object storing those attributes that are required to - properly resolve a message. - - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The with which the - resource is associated. - - - The resolved object, or if not found. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The resolved object, or if not found. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The with which the - resource is associated. - - - The resolved object, or if not found. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The resolved object, or if not found. - - - - - - Applies resources to object properties. - - - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - - - - Publishes all events of the source object. - - - The source object containing events to publish. - - - - - - Subscribes to all events published, if the subscriber - implements compatible handler methods. - - The subscriber to use. - - - - - Subscribes to published events of a all objects of a given - , if the subscriber implements - compatible handler methods. - - The subscriber to use. - - The target to subscribe to. - - - - - - Publishes an application context event. - - -

- -

-
- - The source of the event. May be . - - - The event that is to be raised. - - -
- - - An object that can be used to synchronize access to the - - - - - The timestamp when this context was first loaded. - - - The timestamp (milliseconds) when this context was first loaded. - - - - - Gets a flag indicating whether context should be case sensitive. - - true if object lookups are case sensitive; otherwise, false. - - - - The for this context. - - - If the context has not been initialized yet. - - - - - The for this context. - - - If the context has not been initialized yet. - - - - - Returns the list of the - s - that will be applied to the objects created with this factory. - - -

- The elements of this list are instances of implementations of the - - interface. -

-
- - The list of the - s - that will be applied to the objects created with this factory. - -
- - - Return the internal object factory of this application context. - - - - - Gets the parent context, or if there is no - parent context. - - - The parent context, or if there is no - parent. - - - - - - Raised in response to an implementation-dependant application - context event. - - - - - The date and time this context was first loaded. - - - The representing when this context - was first loaded. - - - - - A name for this context. - - - A name for this context. - - - - - Return the number of objects defined in the factory. - - - The number of objects defined in the factory. - - - - - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - - - - Return the parent object factory, or if there is none. - - - The parent object factory, or if there is none. - - - - - - The instance for this class. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes - no public constructors. -

-
-
- - - Creates a new instance of the - class - with the given parent context. - - -

- This is an class, and as such exposes - no public constructors. -

-
- The application context name. - Flag specifying whether to make this context case sensitive or not. - The parent context. -
- - - Instantiates and populates the underlying - with the object - definitions yielded up by the - method. - - - In the case of errors encountered while refreshing the object factory. - - - In the case of errors encountered reading any of the resources - yielded by the method. - - - - - - Initialize the object definition reader used for loading the object - definitions of this context. - - -

- The default implementation of this method is a no-op; i.e. it does - nothing. Can be overridden in subclasses to provide custom - initialization of the supplied - ; for example, a derived - class may want to turn off XML validation. -

-
- - The object definition reader used by this context. - -
- - - Load the object definitions with the given - . - - -

- The lifecycle of the object factory is handled by - ; - therefore this method is just supposed to load and / or register - object definitions. -

-
- - The reader containing object definitions. - - In case of object registration errors. - - - In the case of errors encountered reading any of the resources - yielded by the method. - -
- - - Loads the object definitions into the given object factory, typically through - delegating to one or more object definition readers. - - The object factory to lead object definitions into - - - - - - Customizes the internal object factory used by this context. - - Called for each attempt. -

- The default implementation is empty. Can be overriden in subclassses to customize - DefaultListableBeanFatory's standard settings. -

- The newly created object factory for this context -
- - - Create an internal object factory for this context. - - -

- Called for each attempt. - This default implementation creates a - - with the internal object factory of this context's parent serving - as the parent object factory. Can be overridden in subclasse,s - for example to customize DefaultListableBeanFactory's settings. -

-
- The object factory for this context. -
- - - An array of resource locations, referring to the XML object - definition files that this context is to be built with. - - -

- Examples of the format of the various strings that would be - returned by accessing this property can be found in the overview - documentation of with the - class. -

-
- - An array of resource locations, or if none. - -
- - - Subclasses must return their internal object factory here. - - - The internal object factory for the application context. - - - - - - Simple listener that logs application events to the console. - - -

- Intended for use during debugging only. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: ConsoleListener.cs,v 1.6 2006/04/09 07:18:38 markpollack Exp $ - -
- - - A listener for application events. - - Rod Johnson - Griffin Caprio (.NET) - $Id: IApplicationEventListener.cs,v 1.2 2006/04/09 07:18:38 markpollack Exp $ - - - - Handle an application event. - - - The source of the event. - - - The event that is to be handled. - - - - - Creates a new instance of the - class. - - - - - Handle an application event. - - - The source of the event. - - - The event that is to be handled. - - - - - Marks an interface as being an application event listener. - - Griffin Caprio - $Id: EventListenerAttribute.cs,v 1.5 2006/04/09 07:18:38 markpollack Exp $ - - - - - Creates a new instance of the - class. - - - - - Thrown when an element is requested from an empty . - - Griffin Caprio - $Id: NoElementsException.cs,v 1.4 2006/04/09 07:18:37 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - An abstract implementation that can - be used as base class for concrete implementations. - - Aleksandar Seovic - Erich Eichinger - $Id: AbstractCache.cs,v 1.7 2007/10/11 01:29:49 markpollack Exp $ - - - - Defines a contract that all cache implementations have to fulfill. - - Aleksandar Seovic - Erich Eichinger - $Id: ICache.cs,v 1.5 2007/08/27 09:38:11 oakinger Exp $ - - - - Retrieves an item from the cache. - - - Item key. - - - Item for the specified , or null. - - - - - Removes an item from the cache. - - - Item key. - - - - - Removes collection of items from the cache. - - - Collection of keys to remove. - - - - - Removes all items from the cache. - - - - - Inserts an item into the cache. - - - Items inserted using this method have no expiration time - and default cache priority. - - - Item key. - - - Item value. - - - - - Inserts an item into the cache. - - - Items inserted using this method have default cache priority. - - - Item key. - - - Item value. - - - Item's time-to-live. - - - - - Gets the number of items in the cache. - - - - - Gets a collection of all cache item keys. - - - - - Retrieves an item from the cache. - - - Item key. - - - Item for the specified , or null. - - - - - Removes an item from the cache. - - - Item key. - - - - - Removes collection of items from the cache. - - - Collection of keys to remove. - - - - - Removes all items from the cache. - - - - - Inserts an item into the cache. - - - Items inserted using this method use the default - - - Item key. - - - Item value. - - - - - Inserts an item into the cache. - - - If equals , - or is true, this cache - instance's value will be applied. - - - Item key. - - - Item value. - - - Item's time-to-live (TTL). - - - - - Actually does the cache implementation specific insert operation into the cache. - - - Items inserted using this method have default cache priority. - - - Item key. - - - Item value. - - - Item's time-to-live (TTL). - - - - - Gets/Set the Default time-to-live (TTL) for items inserted into this cache. - Used by - - - - - Gets/Sets a value, whether the this cache instance's - shall be applied to all items, regardless of their individual TTL - when is called. - - - - - Gets the number of items in the cache. - - - May be overridden by subclasses for cache-specific efficient implementation. - - - - - Gets a collection of all cache item keys. - - - - - Validates that the object is valid ISBN-10 or ISBN-13 value. - - Goran Milosavljevic - - - - Creates a new instance of the ISBNValidator class. - - - - - Creates a new instance of the ISBNValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the ISBNValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Validates the supplied . - - - In the case of the class, - the test should be a string variable that will be evaluated and the object - obtained as a result of this evaluation will be tested using the ISBN-10 or - ISBN-13 validation rules. - - The object to validate. - - if the supplied is valid ISBN. - - - - - Validates against ISBN-10 or ISBN-13 validation - rules. - - - ISBN string to validate. - - - true if is a valid ISBN-10 or ISBN-13 code. - - - - - ISBN-10 consists of 4 groups of numbers separated by either - dashes (-) or spaces. - - - The first group is 1-5 characters, second 1-7, third 1-6, - and fourth is 1 digit or an X. - - - - - ISBN-13 consists of 5 groups of numbers separated by either - dashes (-) or spaces. - - - The first group is 978 or 979, the second group is - 1-5 characters, third 1-7, fourth 1-6, and fifth is 1 digit. - - - - - Represents a single validation error message. - - Aleksandar Seovic - Goran Milosavljevic - $Id: ErrorMessage.cs,v 1.5 2007/02/19 17:56:42 aseovic Exp $ - - - - Default constructor. - - - - - Initializes a new instance of the class. - - Error message resource identifier. - Parameters that should be used for message resolution. - - - - This property is reserved, apply the - - to the class instead. - - - An - that describes the XML representation of the object that - is produced by the - - method and consumed by the - - method. - - - - - - Generates an object from its XML representation. - - - The stream - from which the object is deserialized. - - - - - Converts an object into its XML representation. - - - The stream - to which the object is serialized. - - - - - Resolves the message against specified . - - Message source to resolve this error message against. - Resolved error message. - - - - Gets or sets the resource identifier for this message. - - The resource identifier for this message. - - - - Gets or sets the message parameters. - - The message parameters. - - - - Utility class containing miscellaneous system-level functionality. - - Aleksandar Seovic - $Id: SystemUtils.cs,v 1.5 2007/09/07 02:46:49 markpollack Exp $ - - - - Registers assembly resolver that iterates over the - assemblies loaded into the current - in order to find an assembly that cannot be resolved. - - - This method has to be called if you need to serialize dynamically - generated types in transient assemblies, such as Spring AOP proxies, - because standard .NET serialization engine always tries to load - assembly from the disk. - - - - - Returns true if running on Mono - - Tests for the presence of the type Mono.Runtime - - - - Gets the thread id for the current thread. Use thread name is available, - otherwise use CurrentThread.GetHashCode() for .NET 1.0/1.1 and - CurrentThread.ManagedThreadId otherwise. - - The thread id. - - - - Defines methods that dynamic method class has to implement. - - - - - Invokes dynamic method on the specified target object. - - - Target object to invoke method on. - - - Method arguments. - - - A method return value. - - - - - Safe wrapper for the dynamic method. - - - will attempt to use dynamic - method if possible, but it will fall back to standard - reflection if necessary. - - - - - Creates a new instance of the safe method wrapper. - - Method to wrap. - - - - Invokes dynamic method. - - - Target object to invoke method on. - - - Method arguments. - - - A method return value. - - - - - Gets the class, that declares this method - - - - - Factory class for dynamic methods. - - Aleksandar Seovic - $Id: DynamicMethod.cs,v 1.2 2008/03/06 20:20:37 oakinger Exp $ - - - - Creates dynamic method instance for the specified . - - Method info to create dynamic method for. - Dynamic method for the specified . - - - - Builds a proxy type using inheritance. - - - - In order for this builder to work, target methods have to be either - , or belong to an interface. - - - Aleksandar Seovic - Bruno Baia - $Id: InheritanceProxyTypeBuilder.cs,v 1.14 2007/12/04 18:38:02 bbaia Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a proxy that inherits the proxied object's class. - - -

- Only (non-final) methods can be proxied, - unless they are members of one of the interfaces that target class - implements. In that case, methods will be proxied using explicit - interface implementation, which means that client code will have - to cast the proxy to a specific interface in order to invoke the - methods. -

-
- The generated proxy class. -
- - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Generates the proxy constructor. - - -

- This implementation delegates the call to a base class constructor. -

-
- The constructor builder to use. - The IL generator to use. - - The base class constructor to delegate the call to. - -
- - - Gets or sets a value indicating whether inherited members should be proxied. - - - if they should be; otherwise, . - - - - - A simple pool implementation - - -

- Based on the implementation found in Concurrent Programming in Java, - 2nd ed., by Doug Lea. -

-
- Doug Lea - Federico Spinazzi - Mark Pollack - $Id: SimplePool.cs,v 1.4 2006/09/15 19:06:07 markpollack Exp $ -
- - - Set of permits - - - - - Creates a new instance of the - class. - - - The factory used to instantiate and manage the lifecycle of pooled objects. - - The initial size of the pool. - - If the supplied is . - - - If the supplied is less than or equal to zero. - - - - - Obtain an instance from the pool. - - - In case the pool is unusable. - - - - - - - Return an instance to the pool. - - The instance to be returned to the pool. - - - - - - Create an object using the factory set by - the property - or other implementation dependent mechanism - and place it into the pool. - - -

- This implementation always throws a - . -

-
- - If the implementation does not support the operation. - -
- - - Synchronized borrow logic. - - - - - - Synchronized release logic. - - - The object to release to the pool. - - - if the object was not a busy one. - - - - - Instantiates the supplied number of instances and adds - them to the pool. - - - The initial number of objects to build. - - - If the supplied number of is - less than or equal to zero. - - - - - Close the pool and free any resources associated with it. - - - - - Clear objects sitting idle in the pool, releasing any - associated resources. - - -

- This implementation always throws a - . -

-
- - If the implementation does not support the operation. - -
- - - Change the state of the pool to unusable. - - - - - Gets the number of instances currently borrowed from the pool. - - - If the implementation does not support the operation. - - - - - - Gets the number of instances currently idle in the pool. - - - If the implementation does not support the operation. - - - - - - Set the factory used to create new instances. - - -

- This implementation always throws a - . -

-
- - If the implementation does not support the operation. - -
- - - Base class for all pooling exceptions. - - Federico Spinazzi - $Id: PoolException.cs,v 1.4 2005/08/07 04:59:47 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Describes an event handler for an object instance. - - Rick Evans - $Id: InstanceEventHandlerValue.cs,v 1.7 2006/04/09 07:19:00 markpollack Exp $ - - - - Base class for all - implemenations that actually perform event wiring. - - Rick Evans - $Id: AbstractWiringEventHandlerValue.cs,v 1.8 2006/04/09 07:19:00 markpollack Exp $ - - - - Creates a new instance of the - class. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Creates a new instance of the - class. - - - The object (possibly unresolved) that is exposing the event. - - - The name of the method on the handler that is going to handle the event. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Wires up the specified handler to the named event on the - supplied event source. - - - The object (an object instance, a , etc) - exposing the named event. - - - The handler for the event (an object instance, a - , etc). - - - - - Gets the event handler. - - - The instance that is registering for the event notification. - - - Event metadata about the event. - - - The event handler. - - - - - Resolves the method metadata that describes the method that is to be used - as the argument to a delegate constructor. - - - The exposing the method. - - - The of the delegate (e.g. System.EventHandler). - - - The custom binding flags to use when searching for the method. - - The method metadata. - - If the method could not be found. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The object (possibly unresolved) that is exposing the event. - - - The name of the method on the handler that is going to handle the event. - - - - - Gets the event handler. - - - The instance that is registering for the event notification. - - - Event metadata about the event. - - - The event handler. - - - - - implementation that - evaluates a property path on a given target object. - - -

- The target object can be specified directly or via an object name (see - example below). -

-

- Please note that the - is an implementation, and as such has - to comply with the contract of the - interface; more specifically, this means that the end result of the property lookup path - evaluation cannot be ( - implementations are not permitted to return ). If the resut of a - property lookup path evaluates to , an exception will be thrown. -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - Juergen Hoeller - Rick Evans (.NET) - $Id: PropertyPathFactoryObject.cs,v 1.3 2007/03/16 04:01:39 aseovic Exp $ - - - - Interface to be implemented by objects that wish to be aware of their object - name in an . - - -

- Note that most objects will choose to receive references to collaborating - objects via respective properties. -

-

- For a list of all object lifecycle methods, see the - API documentation. -

-
- Juergen Hoeller - Rick Evans (.NET) -
- - - Set the name of the object in the object factory that created this object. - - - The name of the object in the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
-
- - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - - The target object that the property path lookup is to be applied to. - - -

- This would most likely be an inner object, but can of course be - any object reference. -

-
- - The target object that the property path lookup is to be applied to. - - -
- - - The (object) name of the target object that the property path lookup - is to be applied to. - - -

- Please note that any leading or trailing whitespace will be - trimmed from this name prior to resolution. The implication of this is that - one cannot use the - class in conjunction with object names that start or end with whitespace. -

-
- - The (object) name of the target object that the property path lookup - is to be applied to. - - -
- - - The property (lookup) path to be applied to the target object. - - -

- Please note that any leading or trailing whitespace will be - trimmed from this path prior to resolution. Whitespace is not a valid - identifier for property names (in part or whole) in CLS-based languages, - so this is a not unreasonable action. Please also note that whitespace - that is embedded within the property path will be left as-is (which may - or may not result in an error being thrown, depending on the context of - the whitespace). -

-
- -

- Examples of such property lookup paths can be seen below; note that - property lookup paths can be nested to an arbitrary level. -

- - name.length - accountManager.account['the key'].name - accounts[0].name - -
- - The property (lookup) path to be applied to the target object. - -
- - - The 'expected' of the result from evaluating the - property path. - - -

- This is not necessary for directly specified target objects, or - singleton target objects, where the can - be determined via reflection. Just specify this in case of a - prototype target, provided that you need matching by type (for - example, for autowiring). -

-

- It is permissable to set the value of this property to - (which in any case is the default value). -

-
- - The 'expected' of the result from evaluating the - property path. - -
- - - Return the of object that this - creates, or - if not known in advance. - - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - - Set the name of the object in the object factory that created this object. - - -

- The object name of this - - will be interpreted as "objectName.property" pattern, if neither the - - - have been supplied (set). -

-

- This allows for concise object definitions with just an id or name. -

-
- - The name of the object in the factory. - -
- - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - - In case of initialization errors. - - - - - To be implemented by any object that wishes to receive a reference to - an . - - -

- This interface only applies to objects that have been instantiated - within the context of an - . This interface does - not typically need to be implemented by application code, but is rather - used by classes internal to Spring.NET. -

-
- Mark Pollack - Rick Evans - $Id: IEventRegistryAware.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ -
- - - Set the - associated with the - that created this - object. - - -

- This property will be set by the relevant - after all of this - object's dependencies have been resolved. This object can use the - supplied - immediately to publish or subscribe to one or more events. -

-
-
- - - Base Type for those implementations that - need to parse and define just a single IObjectDefinition. - - - Extend this parser Type when you want to create a single object definition - from an arbitrarily complex XML element. You may wish to consider extending - the when you want to create a - single Object definition from a relatively simple custom XML element. - The resulting ObjectDefinition will be automatically registered - with the ObjectDefinitionRegistry. Your job simply is to parse the - custom XML element into a single ObjectDefinition - - Rob Harrop - Juergen Hoeller - Rick Evans - Mark Pollack (.NET) - $Id: AbstractSingleObjectDefinitionParser.cs,v 1.3 2007/05/29 14:42:20 markpollack Exp $ - - - - Abstract implementation providing - a number of convenience methods and a - template method - that subclasses must override to provide the actual parsing logic. - - - Use this implementation when you want - to parse some arbitrarily complex XML into one or more - ObjectDefinitions. If you just want to parse some - XML into a single IObjectDefinition, you may wish to consider - the simpler convenience extensions of this class, namely - and - - - Rob Harrop - Juergen Hoeller - Rick Evans - Mark Pollack (.NET) - $Id: AbstractObjectDefinitionParser.cs,v 1.4 2007/05/26 19:25:54 markpollack Exp $ - - - - Interface used to handle custom, top-level tags. - - Implementations are free to turn the metadata in the custom tag into as - many as required. - - Rob Harrop - Mark Pollack (.NET) - $Id: IObjectDefinitionParser.cs,v 1.3 2007/05/25 03:23:21 markpollack Exp $ - - - - Parse the specified XmlElement and register the resulting - ObjectDefinitions with the IObjectDefinitionRegistry - embedded in the supplied - - -

- This method is never invoked if the parser is namespace aware - and was called to process the root node. -

-
- - The element to be parsed. - - - TThe object encapsulating the current state of the parsing process. - Provides access to a IObjectDefinitionRegistry - - - The primary object definition. - -
- - - Constant for the ID attribute - - - - - Parse the specified XmlElement and register the resulting - ObjectDefinitions with the IObjectDefinitionRegistry - embedded in the supplied - - The element to be parsed. - TThe object encapsulating the current state of the parsing process. - Provides access to a IObjectDefinitionRegistry - The primary object definition. - -

- This method is never invoked if the parser is namespace aware - and was called to process the root node. -

-
-
- - - Resolves the ID for the supplied . - - - When using generation, a name is generated automatically. - Otherwise, the ID is extracted from the "id" attribute, potentially with a - fallback to a generated id. - - The element that the object definition has been built from. - The object definition to be registered. - The the object encapsulating the current state of the parsing process; - provides access to a - the resolved id - - if no unique name could be generated for the given object definition - - - - - Registers the supplied with the supplied - . - - Subclasses can override this method to control whether or not the supplied - is actually even registered, or to - register even more objects. - - The default implementation registers the supplied - with the supplied only if the IsNested - parameter is false, because one typically does not want inner objects - to be registered as top level objects. - - - - The object definition to be registered. - The registry that the bean is to be registered with. - - - - Central template method to actually parse the supplied XmlElement - into one or more IObjectDefinitions. - - The element that is to be parsed into one or more s - The the object encapsulating the current state of the parsing process; - provides access to a - The primary IObjectDefinition resulting from the parsing of the supplied XmlElement - - - - Gets a value indicating whether an ID should be generated instead of read - from the passed in XmlElement. - - Note that this flag is about always generating an ID; the parser - won't even check for an "id" attribute in this case. - - true if should generate id; otherwise, false. - - - - Gets a value indicating whether an ID should be generated instead if the - passed in XmlElement does not specify an "id" attribute explicitly. - - Disabled by default; subclasses can override this to enable ID generation - as fallback: The parser will first check for an "id" attribute in this case, - only falling back to a generated ID if no value was specified. - - true if should generate id if no value was specified; otherwise, false. - - - - - Central template method to actually parse the supplied XmlElement - into one or more IObjectDefinitions. - - The element that is to be parsed into one or more s - The the object encapsulating the current state of the parsing process; - provides access to a - - The primary IObjectDefinition resulting from the parsing of the supplied XmlElement - - - - - Gets the type of the object corresponding to the supplied XmlElement. - - Note that, for application classes, it is generally preferable to override - GetObjectTypeName instad, in order to avoid a direct - dependence on the object implementation class. The ObjectDefinitionParser - and its IXmlObjectDefinitionParser (namespace parser) can be used within an - IDE add-in then, even if the application classses are not available in the add-ins - AppDomain. - - The element. - The Type of the class that is being defined via parsing the supplied - Element. - - - - Gets the name of the object type name (FullName) corresponding to the supplied XmlElement. - - The element. - The type name of the object that is being defined via parsing the supplied - XmlElement. - - - - Parse the supplied XmlElement and populate the supplied ObjectDefinitionBuilder as required. - - The default implementation delegates to the DoParse version without - ParameterContext argument. - The element. - The parser context. - The builder used to define the IObjectDefinition. - - - - Parse the supplied XmlElement and populate the supplied ObjectDefinitionBuilder as required. - - The default implementation does nothing. - The element. - The builder used to define the IObjectDefinition. - - - - Default implementation of the interface, deleagting to - . - - Note that this implementation is only able to handle - subclasses such as - and - - Juergen Hoeller - Mark Pollack (.NET) - $Id: DefaultObjectNameGenerator.cs,v 1.1 2007/05/23 20:16:13 markpollack Exp $ - - - - Strategy interface for generating object names for object definitions - - Juergen Hoeller - Mark Pollack (.NET) - $Id: IObjectNameGenerator.cs,v 1.1 2007/05/23 20:16:13 markpollack Exp $ - - - - Generates an object name for the given object definition. - - The object definition to generate a name for. - The object definitions registry that the given definition is - supposed to be registerd with - the generated object name - - - - Generates an object name for the given object definition. - - The object definition to generate a name for. - The object definitions registry that the given definition is - supposed to be registerd with - the generated object name - - - - Marks a property as being 'required': that is, the setter property - must be configured to be dependency-injected with a value. - - Consult the SDK documentation for , - which, by default, checks for the presence of this annotation. - - Rob Harrop - Mark Pollack - $Id: RequiredAttribute.cs,v 1.1 2008/04/02 18:02:24 markpollack Exp $ - - - - Abstract base class that all resource cache implementations should extend. - - Aleksandar Seovic - $Id: AbstractResourceCache.cs,v 1.3 2006/04/09 07:18:47 markpollack Exp $ - - - - Gets the list of resources from the cache. - - Target to get a list of resources for. - Resource culture. - A list of cached resources for the specified target object and culture. - - - - Puts the list of resources in the cache. - - Target to cache a list of resources for. - Resource culture. - A list of resources to cache. - A list of cached resources for the specified target object and culture. - - - - Crates resource cache key for the specified target object and culture. - - Target object to apply resources to. - Resource culture to use for resource lookup. - - - - Gets the list of resources from cache. - - Cache key to use for lookup. - A list of cached resources for the specified target object and culture. - - - - Puts the list of resources in the cache. - - Cache key to use for the specified resources. - A list of resources to cache. - A list of cached resources for the specified target object and culture. - - - - Represents arithmetic exponent operator. - - Aleksandar Seovic - $Id: OpPOWER.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic exponent operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical "greater than or equal" operator. - - Aleksandar Seovic - $Id: OpGreaterOrEqual.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical "greater than or equal" operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed function node. - - Aleksandar Seovic - $Id: FunctionNode.cs,v 1.7 2008/03/20 23:58:16 oakinger Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Evaluates function represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Result of the function evaluation. - - - - Resolves a by name. - - Rick Evans - Aleksandar Seovic - Bruno Baia - $Id: TypeResolver.cs,v 1.3 2007/08/27 15:18:24 oakinger Exp $ - - - - Resolves the supplied to a - instance. - - - The unresolved (possibly partially assembly qualified) name - of a . - - - A resolved instance. - - - If the supplied could not be resolved - to a . - - - - - Uses - to load an and then the attendant - referred to by the - parameter. - - -

- is - deprecated in .NET 2.0, but is still used here (even when this class is - compiled for .NET 2.0); - will - still resolve (non-.NET Framework) local assemblies when given only the - display name of an assembly (the behaviour for .NET Framework assemblies - and strongly named assemblies is documented in the docs for the - method). -

-
- - The assembly and type to be loaded. - - - A , or . - - - - -
- - - Uses - to load the attendant referred to by - the parameter. - - - The type to be loaded. - - - A , or . - - - - - Creates a new instance - from the given - - - - - Creates a new instance - from the given with the given inner - - - - - Converter for from a comma separated - list of RBG values. - - -

- Please note that this class does not implement converting - to a comma separated list of RBG values from a - . -

-
- Federico Spinazzi - $Id: RGBColorConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Returns whether this converter can convert an object of one - to a - . - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Converts the specified object (a string) a - instance. - - - A - that provides a format context. - - - The to use - as the current culture: currently ignored. - - - The value that is to be converted, in "R,G,B", "A,R,G,B", or - symbolic color name (). - - - A representation of the string value. - - - If the input string is not in a supported format, or is not one of the - predefined system colors (). - - - - - Criteria that is satisfied if the Name property of an - instance matches a - supplied regular expression pattern. - - Rick Evans - $Id: RegularExpressionMethodNameCriteria.cs,v 1.1 2007/07/31 01:35:07 markpollack Exp $ - - - - The default method name pattern... matches pretty much any method name. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The pattern that names - must match against in order to satisfy this criteria. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - Criteria that is satisfied if the return of a given - matches a given . - - Rick Evans - $Id: MethodReturnTypeCriteria.cs,v 1.1 2007/07/31 02:03:36 markpollack Exp $ - - - - The return to match against if no - is provided explictly. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The that the return type of a given - must match in order to satisfy - this criteria. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - The that the return type of a given - must match in order to satisfy - this criteria. - - - - - A backed resource - on top of - - -

- Obviously supports resolution as a , and also - as a in the case of the "file:" - protocol. -

-
- -

- Some examples of the strings that can be used to initialize a new - instance of the class - include... - - - file:///Config/objects.xml - - - http://www.mycompany.com/services.txt - - -

-
- Juergen Hoeller - Leonardo Susatyo (.NET) - Aleksandar Seovic (.NET) - $Id: UrlResource.cs,v 1.15 2007/08/08 17:46:55 bbaia Exp $ - - - -
- - - Creates a new instance of the - class. - - -

- Some examples of the values that the - can typically be expected to hold include... - - - file:///Config/objects.xml - - - http://www.mycompany.com/services.txt - - -

-
- - A string representation of the resource. - -
- - - Does the supplied relative ? - - - The name of the resource to test. - - - if resource name is relative; - otherwise . - - - - - Returns the instance - used for the resource resolution. - - - A instance. - - - - - - - Return an for this resource. - - - An . - - - If the stream could not be opened. - - - - - - Returns the handle for this resource. - - - The handle for this resource. - - - If the resource is not available or cannot be exposed as a - . - - - - - - Returns a handle for this resource. - - - The handle for this resource. - - - If the resource is not available on a filesystem. - - - - - - Does this support relative - resource retrieval? - - -

- This implementation does support relative resource retrieval, and - so will always return . -

-
- - if this - supports relative resource - retrieval. - - -
- - - Gets the root location of the resource. - - - The root location of the resource. - - - - - - Gets the current path of the resource. - - - The current path of the resource. - - - - - - Gets those characters that are valid path separators for the - resource type. - - - Those characters that are valid path separators for the resource - type. - - - - - - Returns a description for this resource. - - - A description for this resource. - - - - - - Simple implementation of - that allows messages to be held in an object and added programmatically. - - -

- Mainly useful for testing. -

-

- This supports internationalization. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - - $Id: StaticMessageSource.cs,v 1.16 2007/08/27 13:57:27 oakinger Exp $ -
- - - Creates a new instance of the - class. - - - - - Returns a format string. - - The code of the message to resolve. - - The to resolve the - code for. - - - A format string or if not found. - - - - - - Resolves an object (typically an icon or bitmap). - - The code of the object to resolve. - - The to resolve the - code for. - - - The resolved object or if not found. - - - - - - Applies resources to object properties. - - -

- Uses a System.ComponentModel.ComponentResourceManager - internally to apply resources to object properties. Resource key - names are of the form objectName.propertyName. -

-

- This feature is not currently supported on version 1.0 of the .NET platform. -

-
- - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - This feature is not currently supported on version 1.0 of the .NET platform. - - -
- - - Associate the supplied with the - supplied . - - The lookup code. - - The to resolve the - code for. - - - The message format associated with this lookup code. - - - - - Associate the supplied with the - supplied . - - The lookup code. - - The to resolve the - code for. - - - The object associated with this lookup code. - - - - - Returns a representation of this - message source. - - - A containing all of this message - source's messages. - - - - - Configuration section handler for the Spring.NET typeConverters - config section. - - -

- Type converters are used to convert objects from one type into another - when injecting property values, evaluating expressions, performing data - binding, etc. -

-

- They are a very powerful mechanism as they allow Spring.NET to automatically - convert string-based property values from the configuration file into the appropriate - type based on the target property's type or to convert string values submitted - via a web form into a type that is used by your data model when Spring.NET data - binding is used. Because they offer such tremendous help, you should always provide - a type converter implementation for your custom types that you want to be able to use - for injected properties or for data binding. -

-

- The standard .NET mechanism for specifying type converter for a particular type is - to decorate the type with a , passing the type - of the -derived class as a parameter. -

-

- This mechanism will still work and is a preferred way of defining type converters if - you control the source code for the type that you want to define a converter for. However, - this configuration section allows you to specify converters for the types that you don't - control and it also allows you to override some of the standard type converters, such as - the ones that are defined for some of the types in the .NET Base Class Library. -

-
- -

- The following example shows how to configure both this section handler and - how to define type converters within a Spring.NET config section: -

- - - - -
- - - - - - - ... - - ... - - - - - Aleksandar Seovic - $Id: TypeConvertersSectionHandler.cs,v 1.6 2007/07/31 18:15:50 bbaia Exp $ - - - - - Populates using values specified in - the typeConverters config section. - - - The configuration settings in a corresponding parent - configuration section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - This method always returns , because the - is populated as a side-effect of - its execution and thus there is no need to return anything. - - - - - The callback for application events. - - - - - Encapsulates the data associated with an event raised by an - . - - Rod Johnson - Mark Pollack (.NET) - Griffin Caprio (.NET) - - $Id: ApplicationEventArgs.cs,v 1.5 2006/04/09 07:18:38 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - The date and time when the event occured. - - - The date and time when the event occured. - - - - - The system time in milliseconds when the event happened. - - - The system time in milliseconds when the event happened. - - - - - Perform credit card validations. - - - By default, all supported card types are allowed. You can specify - which credit card type validator should be used by setting - the value of property to a concrete - instance. - - - - - Creates a new instance of the UrlValidator class. - - - - - Creates a new instance of the UrlValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - Credit Card type validator to use. - - - - Creates a new instance of the UrlValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - Credit Card type validator to use. - - - - Validates the supplied . - - - In the case of the class, - the test should be a string variable that will be evaluated and the object - obtained as a result of this evaluation will be checked if it is - a valid credit card number. - - The object to validate. - - if the supplied is valid - credit card number. - - - - - Checks if the is a valid credit card number. - - - The card number to validate. - - - true if the card number is valid. - - - - - Validates card number with the specified validator. - - - Credit card number to validate. - - - true if credit card number is a valid number of credit card type specified. - - - - - Checks for a valid credit card number. - - - Credit Card Number. - - - true if the card number passes the LuhnCheck. - - - - - Credit card type validator to use. - - - Can be concrete implementations of - interface. The following are available implementations: - , , , - . - - - - - CreditCardType interface defines how validation is performed - for one type/brand of credit card. - - - - - Returns true if the card number matches this type of - credit card. - - - The card number, never null. - - - true if the number matches. - - - - - Visa credit card type validation support. - - - - - Indicates, wheter the given credit card number matches a visa number. - - - - - American Express credit card type validation support. - - - - - Indicates, wheter the given credit card number matches an amex number. - - - - - Discover credit card type validation support. - - - - - Indicates, wheter the given credit card number matches a discover number. - - - - - Mastercard credit card type validation support. - - - - - Indicates, wheter the given credit card number matches a mastercard number. - - - - - Thrown by the validation advice if the method parameters validation fails. - - Aleksandar Seovic - $Id: ValidationException.cs,v 1.1 2008/02/05 20:40:26 aseovic Exp $ - - - - Creates a new instance of the ValidationException class. - - - - - Creates a new instance of the ValidationException class with - specified validation errors. - - - Validation errors. - - - - - Creates a new instance of the ValidationException class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the ValidationException class with the - specified message and validation errors. - - - A message about the exception. - - - Validation errors. - - - - - Creates a new instance of the ValidationException class with the - specified message and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ValidationException class with the - specified message, root cause and validation errors. - - - A message about the exception. - - - The root exception that is being wrapped. - - - Validation errors. - - - - - Creates a new instance of the ValidationException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Implements object serialization. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Gets validation errors. - - Validation errors. - - - - A utility class for raising events in a generic and consistent fashion. - - Rick Evans - $Id: EventUtils.cs,v 1.5 2006/04/09 07:19:00 markpollack Exp $ - - - - Raises the event encapsulated by the supplied - , passing the supplied - to the event. - - The event to be raised. - The arguments to the event. - - - - Invokes the supplied , passing the supplied - to the sink. - - The sink to be invoked. - The arguments to the sink. - - - - Raises events defensively. - - -

- Raising events defensively means that as the raised event is passed to each handler, - any thrown by a handler will be caught and silently - ignored. -

-
- Rick Evans - $Id: EventUtils.cs,v 1.5 2006/04/09 07:19:00 markpollack Exp $ -
- - - Defensively invokes the supplied , passing the - supplied to the sink. - - The sink to be invoked. - The arguments to the sink. - - - A latch is a boolean condition that is set at most once, ever. - Once a single release is issued, all acquires will pass. -

- Sample usage. Here are a set of classes that use - a latch as a start signal for a group of worker threads that - are created and started beforehand, and then later enabled. -

- - class Worker implements IRunnable { - private readonly Latch startSignal; - Worker(Latch l) - { - startSignal = l; - } - - public void Run() { - startSignal.acquire(); - DoWork(); - } - - void DoWork() { ... } - } - - class Driver { // ... - void Main() { - Latch go = new Latch(); - for (int i = 0; i < N; ++i) // make threads - new Thread(new ThreadStart(new Worker(go)).Start(); - DoSomethingElse(); // don't let run yet - go.Release(); // let all threads proceed - } - } - -
- Doug Lea - Federico Spinazzi (.Net) - $Id: Latch.cs,v 1.11 2006/09/15 19:06:08 markpollack Exp $ -
- - - can acquire ? - - - - - Method mainly used by clients who are trying to get the latch - - - - Wait at most msecs millisconds for a permit - - - - Enable all current and future acquires to pass - - - - - Implements by using . - - Erich Eichinger - $Id: CallContextStorage.cs,v 1.1 2007/02/02 21:30:34 oakinger Exp $ - - - - Retrieves an object with the specified name. - - The name of the item. - The object in the call context associated with the specified name or null if no object has been stored previously - - - - Stores a given object and associates it with the specified name. - - The name with which to associate the new item. - The object to store in the call context. - - - - Empties a data slot with the specified name. - - The name of the data slot to empty. - - - - Defines methods that dynamic indexer class has to implement. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get the indexer value from. - - - Indexer argument. - - - A indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get the indexer value from. - - - Indexer argument. - - - A indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get the indexer value from. - - - Indexer arguments. - - - A indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to set the indexer value on. - - - Indexer argument. - - - A new indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to set the indexer value on. - - - Indexer argument. - - - A new indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to set the indexer value on. - - - Indexer arguments. - - - A new indexer value. - - - - - Safe wrapper for the dynamic indexer. - - - will attempt to use dynamic - indexer if possible, but it will fall back to standard - reflection if necessary. - - - - - Creates a new instance of the safe indexer wrapper. - - Indexer to wrap. - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get indexer value from. - - - Indexer arguments. - - - A indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get the indexer value from. - - - Indexer argument. - - - A indexer value. - - - - - Gets the value of the dynamic indexer for the specified target object. - - - Target object to get indexer value from. - - - Indexer arguments. - - - A indexer value. - - - - - Sets the value of the dynamic indexer for the specified target object. - - - Target object to set indexer value on. - - - Indexer arguments. - - - A new indexer value. - - - - - Sets the value of the dynamic indexer for the specified target object. - - - Target object to set indexer value on. - - - Indexer arguments. - - - A new indexer value. - - - - - Sets the value of the dynamic indexer for the specified target object. - - - Target object to set indexer value on. - - - Indexer arguments. - - - A new indexer value. - - - - - Internal PropertyInfo accessor. - - - - - Factory class for dynamic indexers. - - Aleksandar Seovic - $Id: DynamicIndexer.cs,v 1.1 2007/08/08 04:05:37 bbaia Exp $ - - - - Creates dynamic indexer instance for the specified . - - Indexer info to create dynamic indexer for. - Dynamic indexer for the specified . - - - - Defines lifecycle methods for objects that are to be used in an - implementation. - - -

- The following methods summarize the contract between an - and an - an . -

- - - - is called whenever a new instance is needed. - - - - is invoked on every instance before it is returned from - the pool. - - - - is invoked on every instance when it is returned to the pool. - - - - is invoked on every instance when it is being dropped from the - pool (see - - - -

- Based on the Jakarta Commons Pool API. -

-
- Federico Spinazzi - $Id: IPoolableObjectFactory.cs,v 1.5 2005/11/18 17:29:32 gcaprio Exp $ - -
- - - Creates an instance that can be returned by the pool. - - - An instance that can be returned by the pool. - - - - - Destroys an instance no longer needed by the pool. - - -

- Invoked on every instance when it is being "dropped" - from the pool (whether due to the return value from a call to the - - method, or for reasons specific to the pool implementation.) -

-
- The instance to be destroyed. -
- - - Ensures that the instance is safe to be returned by the pool. - Returns false if this object should be destroyed. - - -

- Invoked in an implementation-specific fashion to determine if an - instance is still valid to be returned by the pool. - It will only be invoked on an "activated" instance. -

-
- The instance to validate. - - if this object is not valid and - should be dropped from the pool, otherwise . - -
- - - Reinitialize an instance to be returned by the pool. - - -

- Invoked on every instance before it is returned from the pool. -

-
- The instance to be activated. -
- - - Uninitialize an instance to be returned to the pool. - - -

- Invoked on every instance when it is returned to the pool. -

-
- The instance returned to the pool. -
- - - Mutable implementation of the - interface that - supports toggling the ascending value on setting the same property again. - - Juergen Hoeller - Jean-Pierre Pawlak - Simon White (.NET) - - - - Definition for sorting object instances by a property. - - Juergen Hoeller - Simon White (.NET) - - - - The name of the property to sort by. - - - - - Whether upper and lower case in string values should be ignored. - - - True if the sorting should be performed in a case-insensitive fashion. - - - - - If the sorting should be ascending or descending. - - - True if the sorting should be in the ascending order. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class using - the specified . - - - The to use - as a source for initial property values. - - - - - Creates a new instance of the - class. - - - The name of the property to sort by. - - - Whether upper and lower case in string values should be ignored. - - - Whether or not the sorting should be ascending or descending. - - - - - Creates a new instance of the - class. - - - Whether or not the - - property should be toggled if the same name is set on the - - property. - - - - - Overrides the default method - - - The object to test against this instance for equality. - - - True if the supplied is equal to this instance. - - - - - Overrides the default method. - - The hashcode for this instance. - - - - The name of the property to sort by. - - - - - Whether upper and lower case in string values should be ignored. - - - True if the sorting should be performed in a case-insensitive fashion. - - - - - If the sorting should be ascending or descending. - - - True if the sorting should be in the ascending order. - - - - - Thrown when an object doesn't match the required . - - Rod Johnson - Rick Evans (.NET) - - - - Creates a new instance of the ObjectNotOfRequiredTypeException class. - - - - - Creates a new instance of the ObjectNotOfRequiredTypeException class. - - - A message about the exception. - - - - - Creates a new instance of the ObjectNotOfRequiredTypeException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectNotOfRequiredTypeException class. - - - Name of the object requested. - - - The required of the actual object - instance that was retrieved. - - - The instance actually returned, whose class did not match the - expected . - - - - - Creates a new instance of the ObjectNotOfRequiredTypeException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The actual of the actual object - instance that was retrieved. - - - - - The required of the actual object - instance that was retrieved. - - - - - The instance actually returned, whose class did not match the - expected . - - - - - The name of the object requested. - - - - - implementation that - retrieves a or non-static public property value. - - -

- Typically used for retrieving public property values. -

-
- Rick Evans (.NET) - $Id: PropertyRetrievingFactoryObject.cs,v 1.12 2007/07/31 18:16:49 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Invoked by an - after it has set all object properties supplied - (and satisfied - and ApplicationContextAware). - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - Template method that subclasses must override to construct the object - returned by this factory. - - - If an exception occured during object creation. - - The object returned by this factory. - - - - The of the static property - to be retrieved. - - - - - Arguments for the property invocation. - - -

- If this property is not set, or the value passed to the setter invocation - is a null or zero-length array, a property with no arguments is assumed. -

-
-
- - - The name of the property the value of which is to be retrieved. - - -

- Refers to either a property or a non-static property, - depending on a target object being set. -

-
-
- - - The object instance on which the property is defined. - - - - - The on which the property is defined. - - - - - Return the type of object that this - creates, or - if not known in advance. - - - - - XML-specific ObjectDefinitionStoreException subclass that wraps a XmlException, which - contains information about the error location. - - - - - Thrown when an - encounters an internal error, and its definitions are invalid. - - -

- An example of a situation when this exception would be thrown is - in the case of an XML document containing object definitions being - malformed. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) -
- - - Creates a new instance of the ObjectDefinitionStoreException class. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - A message about the exception. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - The description of the resource that the object definition came from - - - The name of the object that triggered the exception. - - - A message about the exception. - - - - - Initializes a new instance of the class. - - - The description of the resource that the object definition came from - - The detail message (used as exception message as-is) - The root cause. (may be null - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - The resource location (e.g. an XML object definition file) associated - with the offending object definition. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - The resource location (e.g. an XML object definition file) associated - with the offending object definition. - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - The description of the resource that the object definition came from - - - A message about the exception. - - - The name of the object that triggered the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectDefinitionStoreException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The description of the resource associated with the object - - - - - The name of the object that trigger the exception. - - - - - The name of the object that triggered the exception (if any). - - - - - The description of the resource associated with the object (if any). - - - - - Initializes a new instance of the class. - - - - - Creates a new instance of the XmlObjectDefinitionStoreException class. - - - A message about the exception. - - - - - Creates a new instance of the XmlObjectDefinitionStoreException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the XmlObjectDefinitionStoreException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Initializes a new instance of the class. - - The description of the resource that the object definition came from - The detail message (used as exception message as-is). - The XmlException root cause. - - - - Gets the line number in the XML resource that failed. - - The line number if available (in case of a XmlException); -1 else. - - - - Gets the line position in the XML resource that failed. - - The line position if available (in case of a XmlException); -1 else. - - - - Context that gets passed along an object definition parsing process, encapsulating - all relevant configuraiton as well as state. - - - - - Initializes a new instance of the class. - - The reader context. - The parser helper. - - - - Initializes a new instance of the class. - - The reader context. - The parser helper. - The containing object definition. - - - - Gets the reader context. - - The reader context. - - - - Gets the registry. - - The registry. - - - - Gets the parser helper. - - The parser helper. - - - - Gets the containing object definition. - - The containing object definition. - - - - Gets a value indicating whether this instance is nested. - - true if this instance is nested; otherwise, false. - - - - Gets a value indicating whether this instance is default lazy init. - - - true if this instance is default lazy init; otherwise, false. - - - - - - implementation that allows for convenient registration of custom - type aliases. - - - Type aliases can be used instead of fully qualified type names anywhere - a type name is expected in a Spring.NET configuration file. -

- Because the - class implements the - - interface, instances of this class that have been exposed in the - scope of an - will - automatically be picked up by the application context and made - available to the IoC container whenever resolution of type aliases is required. -

-
- Mark Pollack - $Id: TypeAliasConfigurer.cs,v 1.6 2007/07/31 18:16:49 bbaia Exp $ - - -
- - - Registers any type aliases. The supplied - is not used since type aliases - are registered with a global - - - The object factory. - - - In case of errors. - - - - - The type aliases to register. - - -

- The has the - contains the alias name as the key and type as the value. - The key name can either be a string or an object, in which case - ToString() will be used to obtain the string name. - the value can be the fully qualified name of the type as a string or - an actual of the class that - being aliased. -

-
-
- - - Implementation of that can be used to - format and parse numbers. - - - - PercentFormatter uses percent-related properties of the - to format and parse percentages. - - - If you use one of the constructors that accept culture as a parameter - to create an instance of PercentFormatter, default NumberFormatInfo - for the specified culture will be used. - - - You can also use properties exposed by the PercentFormatter in order - to override some of the default number formatting parameters. - - - Aleksandar Seovic - $Id: PercentFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Initializes a new instance of the class - using default for the current thread's culture. - - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture name. - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture. - - - - Initializes a new instance of the class - using specified . - - - The instance that defines how - numbers are formatted and parsed. - - - - - Formats the specified percentage value. - - The value to format. - Formatted percentage. - If is null. - If is not a number. - - - - Parses the specified percentage value. - - The percentage value to parse. - Parsed percentage value as a . - - - - Gets or sets the number of decimal digits. - - The number of decimal digits. - - - - - Gets or sets the decimal separator. - - The decimal separator. - - - - - Gets or sets the percent group sizes. - - The percent group sizes. - - - - - Gets or sets the percent group separator. - - The percent group separator. - - - - - Gets or sets the negative pattern. - - The percent negative pattern. - - - - - Gets or sets the positive pattern. - - The percent positive pattern. - - - - - Gets or sets the percent symbol. - - The percent symbol. - - - - - Gets or sets the per mille symbol. - - The per mille symbol. - - - - - Utility class that enables easy expression evaluation. - - -

- This class allows users to get or set properties, execute methods, and evaluate - logical and arithmetic expressions. -

-

- Methods in this class parse expression on every invocation. - If you plan to reuse the same expression many times, you should prepare - the expression once using the static method, - and then call to evaluate it. -

-

- This can result in significant performance improvements as it avoids expression - parsing and node resolution every time it is called. -

-

-

-
- Aleksandar Seovic - $Id: ExpressionEvaluator.cs,v 1.2 2006/04/09 07:18:39 markpollack Exp $ -
- - - Parses and evaluates specified expression. - - Root object. - Expression to evaluate. - Value of the last node in the expression. - - - - Parses and evaluates specified expression. - - Root object. - Expression to evaluate. - Expression variables map. - Value of the last node in the expression. - - - - Parses and specified expression and sets the value of the - last node to the value of the newValue parameter. - - Root object. - Expression to evaluate. - Value to set last node to. - - - - Parses and specified expression and sets the value of the - last node to the value of the newValue parameter. - - Root object. - Expression to evaluate. - Expression variables map. - Value to set last node to. - - - - Represents local function node. - - Aleksandar Seovic - $Id: LocalFunctionNode.cs,v 1.7 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Evaluates function represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Result of the function evaluation. - - - - Interface that should be implemented by data bound objects, such as - web pages, user controls, windows forms, etc. - - Aleksandar Seovic - $Id: IDataBound.cs,v 1.3 2006/11/21 05:46:57 aseovic Exp $ - - - - Gets the binding manager. - - The binding manager. - - - - Provides access to a central registry of aliased s. - - -

- Simplifies configuration by allowing aliases to be used instead of - fully qualified type names. -

-

- Comes 'pre-loaded' with a number of convenience alias' for the more - common types; an example would be the 'int' (or 'Integer' - for Visual Basic.NET developers) alias for the - type. -

-
- Aleksandar Seovic - - $Id: TypeRegistry.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Name of the .Net config section that contains Spring.Net type aliases. - - - - - The alias around the 'int' type. - - - - - The alias around the 'Integer' type (Visual Basic.NET style). - - - - - The alias around the 'int[]' array type. - - - - - The alias around the 'Integer()' array type (Visual Basic.NET style). - - - - - The alias around the 'decimal' type. - - - - - The alias around the 'Decimal' type (Visual Basic.NET style). - - - - - The alias around the 'decimal[]' array type. - - - - - The alias around the 'Decimal()' array type (Visual Basic.NET style). - - - - - The alias around the 'char' type. - - - - - The alias around the 'Char' type (Visual Basic.NET style). - - - - - The alias around the 'char[]' array type. - - - - - The alias around the 'Char()' array type (Visual Basic.NET style). - - - - - The alias around the 'long' type. - - - - - The alias around the 'Long' type (Visual Basic.NET style). - - - - - The alias around the 'long[]' array type. - - - - - The alias around the 'Long()' array type (Visual Basic.NET style). - - - - - The alias around the 'short' type. - - - - - The alias around the 'Short' type (Visual Basic.NET style). - - - - - The alias around the 'short[]' array type. - - - - - The alias around the 'Short()' array type (Visual Basic.NET style). - - - - - The alias around the 'unsigned int' type. - - - - - The alias around the 'unsigned long' type. - - - - - The alias around the 'ulong[]' array type. - - - - - The alias around the 'uint[]' array type. - - - - - The alias around the 'unsigned short' type. - - - - - The alias around the 'ushort[]' array type. - - - - - The alias around the 'double' type. - - - - - The alias around the 'Double' type (Visual Basic.NET style). - - - - - The alias around the 'double[]' array type. - - - - - The alias around the 'Double()' array type (Visual Basic.NET style). - - - - - The alias around the 'float' type. - - - - - The alias around the 'Single' type (Visual Basic.NET style). - - - - - The alias around the 'float[]' array type. - - - - - The alias around the 'Single()' array type (Visual Basic.NET style). - - - - - The alias around the 'DateTime' type. - - - - - The alias around the 'DateTime' type (C# style). - - - - - The alias around the 'DateTime' type (Visual Basic.NET style). - - - - - The alias around the 'DateTime[]' array type. - - - - - The alias around the 'DateTime[]' array type. - - - - - The alias around the 'DateTime()' array type (Visual Basic.NET style). - - - - - The alias around the 'bool' type. - - - - - The alias around the 'Boolean' type (Visual Basic.NET style). - - - - - The alias around the 'bool[]' array type. - - - - - The alias around the 'Boolean()' array type (Visual Basic.NET style). - - - - - The alias around the 'string' type. - - - - - The alias around the 'string' type (Visual Basic.NET style). - - - - - The alias around the 'string[]' array type. - - - - - The alias around the 'string[]' array type (Visual Basic.NET style). - - - - - The alias around the 'object' type. - - - - - The alias around the 'object' type (Visual Basic.NET style). - - - - - The alias around the 'object[]' array type. - - - - - The alias around the 'object[]' array type (Visual Basic.NET style). - - - - - The alias around the 'int?' type. - - - - - The alias around the 'int?[]' array type. - - - - - The alias around the 'decimal?' type. - - - - - The alias around the 'decimal?[]' array type. - - - - - The alias around the 'char?' type. - - - - - The alias around the 'char?[]' array type. - - - - - The alias around the 'long?' type. - - - - - The alias around the 'long?[]' array type. - - - - - The alias around the 'short?' type. - - - - - The alias around the 'short?[]' array type. - - - - - The alias around the 'unsigned int?' type. - - - - - The alias around the 'unsigned long?' type. - - - - - The alias around the 'ulong?[]' array type. - - - - - The alias around the 'uint?[]' array type. - - - - - The alias around the 'unsigned short?' type. - - - - - The alias around the 'ushort?[]' array type. - - - - - The alias around the 'double?' type. - - - - - The alias around the 'double?[]' array type. - - - - - The alias around the 'float?' type. - - - - - The alias around the 'float?[]' array type. - - - - - The alias around the 'bool?' type. - - - - - The alias around the 'bool?[]' array type. - - - - - Registers standard and user-configured type aliases. - - - - - Registers an alias for the specified . - - -

- This overload does eager resolution of the - referred to by the parameter. It will throw a - if the referred - to by the parameter cannot be resolved. -

-
- - A string that will be used as an alias for the specified - . - - - The (possibly partially assembly qualified) name of the - to register the alias for. - - - If either of the supplied parameters is or - contains only whitespace character(s). - - - If the referred to by the supplied - cannot be loaded. - -
- - - Registers short type name as an alias for - the supplied . - - - The to register. - - - If the supplied is . - - - - - Registers an alias for the supplied . - - - The alias for the supplied . - - - The to register the supplied under. - - - If the supplied is ; or if - the supplied is or - contains only whitespace character(s). - - - - - Resolves the supplied to a . - - - The alias to resolve. - - - The the supplied was - associated with, or if no - was previously registered for the supplied . - - - If the supplied is or - contains only whitespace character(s). - - - - - Returns a flag specifying whether TypeRegistry contains - specified alias or not. - - - Alias to check. - - - true if the specified type alias is registered, - false otherwise. - - - - - Resolves a generic by name. - - Bruno Baia - $Id: GenericTypeResolver.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Resolves the supplied generic to a - instance. - - - The unresolved (possibly generic) name of a . - - - A resolved instance. - - - If the supplied could not be resolved - to a . - - - - - Thrown in response to a failed attempt to read a property. - - -

- Typically thrown when attempting to read the value of a write-only - property via reflection. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: NotReadablePropertyException.cs,v 1.2 2007/07/31 00:26:30 markpollack Exp $ -
- - - Thrown in response to referring to an invalid property (most often via reflection). - - Rick Evans - $Id: InvalidPropertyException.cs,v 1.2 2007/07/31 03:47:22 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - The that is (or rather was) the source of the - offending property. - - - The name of the offending property. - - - - - Creates a new instance of the - class. - - - The that is (or rather was) the source of the - offending property. - - - The name of the offending property. - - - A message about the exception. - - - - - Creates a new instance of the InvalidPropertyException class. - - - The that is (or rather was) the source of the - offending property. - - - The name of the offending property. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The that is (or rather was) the source of the - offending property. - - - - - The name of the offending property. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - The that is (or rather was) the source of the - offending property. - - - The name of the offending property. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Convenience class that exposes a signature that matches the - delegate. - - -

- Useful when filtering members via the - mechanism. -

-
- Rick Evans - $Id: CriteriaMemberFilter.cs,v 1.1 2007/07/31 21:43:52 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Returns true if the supplied instance - satisfies the supplied (which must be an - implementation). - - - The instance that will be checked to see if - it matches the supplied . - - - The criteria against which to filter the supplied - instance. - - - True if the supplied instance - satisfies the supplied (which must be an - implementation); false if not or the - supplied is not an - implementation or is null. - - - - - Custom type converter for instances. - - -

- A resource path may contain placeholder variables of the form ${...} - that will be expended to environment variables. -

-

- Currently only supports conversion from a - instance. -

-
- -

- On Win9x boxes, this resource path, ${userprofile}\objects.xml will - be expanded at runtime with the value of the 'userprofile' environment - variable substituted for the '${userprofile}' portion of the path. -

- - // assuming a user called Rick, running on a plain vanilla Windows XP setup... - // this resource path... - - ${userprofile}\objects.xml - - // will become (after expansion)... - - C:\Documents and Settings\Rick\objects.xml - -
- Mark Pollack - $Id: ResourceConverter.cs,v 1.14 2007/08/08 17:46:55 bbaia Exp $ - - -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class using the specified resourceLoader. - - the underlying IResourceLoader to be used to resolve resources - - - - Returns whether this converter can convert an object of one - to a - - - A - that provides a format context. - - - A that represents the - you want to convert from. - - - if the conversion is possible. - - - - - Convert from a string value to a - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - An if successful. - - - If the resource name objectained form the supplied - is malformed. - - - In the case of any errors arising from the instantiation of the - returned instance. - - - - - Resolve the given path, replacing placeholder values with - corresponding property values if necessary. - - -

- This implementation resolves environment variables only. -

-
- The original resource path. - The resolved resource path. -
- - - Return the used to - resolve the string. - - - The used to resolve - the string. - - - - - A implementation that represents - a composed collection of instances. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A user-defined (child) criteria that will be composed into this instance. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The data to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - Adds the supplied into the criteria - composed within this instance. - - - The to be added. - - - - - The list of composing this - instance. - - - - Exception thrown during application context initialization. - Rod Johnson - Mark Pollack (.NET) - $Id: ApplicationContextException.cs,v 1.5 2006/04/09 07:18:38 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - - - Creates a new instance of the - class with the - specified message. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Implements a based on a list. - - -

- Performance is much better for very small lists than either - or . - However, performance degrades rapidly as the data-set gets bigger. Use a - instead if you are not sure your data-set - will always remain very small. Iteration produces elements in the order they were added. - However, element order is not guaranteed to be maintained by the various - mathematical operators. -

-
-
- - - Creates a new set instance based on a list. - - - - - Creates a new set instance based on a list and initializes it based on a - collection of elements. - - - A collection of elements that defines the initial set contents. - - - - - Validates that the value is valid URL. - - Goran Milosavljevic - - - - Creates a new instance of the UrlValidator class. - - - - - Creates a new instance of the UrlValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Creates a new instance of the UrlValidator class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - - - - Validates the supplied . - - - In the case of the class, - the test should be a string variable that will be evaluated and the object - obtained as a result of this evaluation will be tested using the URL validation rules. - - The object to validate. - - if the supplied is valid. - - - - - Regular expression used for validation of object passed to this . - - - - - Various reflection related methods that are missing from the standard library. - - Rod Johnson - Juergen Hoeller - Aleksandar Seovic (.NET) - Stan Dvoychenko (.NET) - Bruno Baia (.NET) - $Id: ReflectionUtils.cs,v 1.59 2008/05/13 14:22:46 oakinger Exp $ - - - - Convenience value that will - match all private and public, static and instance members on a class - in a case inSenSItivE fashion. - - - - - Returns signature for the specified , method name and argument - s. - - The the method is in. - The method name. - - The argument s. - - The method signature. - - - - Returns method for the specified , method - name and argument - s. - - Searches with BindingFlags - - The target to find the method on. - - The method to find. - - The argument s. May be - if the method has no arguments. - - The target method. - - - - Returns an array of parameter s for the specified method - or constructor. - - The method (or constructor). - An array containing the parameter s. - - If is . - - - - - Returns an array of parameter s for the - specified parameter info array. - - The parameter info array. - An array containing parameter s. - - If is or any of the - elements is . - - - - - Returns an array of s that represent - the names of the generic type parameter. - - The method. - An array containing the parameter names. - - If is . - - - - - Returns an array of s that represent - the names of the generic type parameter. - - The parameter info array. - An array containing parameter names. - - If is or any of the - elements is . - - - - - From a given list of methods, selects the method having an exact match on the given ' types. - - the list of methods to choose from - the arguments to the method - the method matching exactly the passed ' types - - If more than 1 matching methods are found in the list. - - - - - From a given list of methods, selects the method having an exact match on the given ' types. - - the type of method (used for exception reporting only) - the list of methods to choose from - the arguments to the method - the method matching exactly the passed ' types - - If more than 1 matching methods are found in the list. - - - - - From a given list of constructors, selects the constructor having an exact match on the given ' types. - - the list of constructors to choose from - the arguments to the method - the constructor matching exactly the passed ' types - - If more than 1 matching methods are found in the list. - - - - - Packages arguments into argument list containing parameter array as a last argument. - - Argument vaklues to package. - Total number of oarameters. - Type of the param array element. - Packaged arguments. - - - - Convenience method to convert an interface - to a array that contains - all the interfaces inherited and the specified interface. - - The interface to convert. - An array of interface s. - - If the specified is not an interface. - - - If is . - - - - - Is the supplied the default indexer for the - supplied ? - - - The name of the property on the supplied to be checked. - - - The to be checked. - - - if the supplied is the - default indexer for the supplied . - - - If the supplied is . - - - - - Is the supplied declared on one of these interfaces? - - The method to check. - The array of interfaces we want to check. - - if the method is declared on one of these interfaces. - - - If any of the s specified is not an interface. - - - If or any of the specified interfaces is - . - - - - - Returns the default value for the specified - - -

- Follows the standard .NET conventions for default values where - relevant; for example, all numeric types default to the value - 0. -

-
- - The to return default value for. - - - The default value for the specified . - - - If the supplied is an enumerated type that - has no values. - -
- - - Returns an array consisting of the default values for the supplied - . - - - The array of s to return default values for. - - - An array consisting of the default values for the supplied - . - - - If any of the elements in the supplied - array is an enumerated type that has no values. - - - - - - Checks that the parameter s of the - supplied match the parameter - s of the supplied - . - - The method to be checked. - - The array of parameter s to check against. - - - if the parameter s - match. - - - - - Returns an array containing the s of the - objects in the supplied array. - - - The objects array for which the corresponding s - are needed. - - - An array containing the s of the objects - in the supplied array; this array will be empty (but not - if the supplied - is null or has no elements. - - -

- [C#]
- Given an array containing the following objects, - [83, "Foo", new object ()], the - array returned from this method call would consist of the following - elements... - [Int32, String, Object]. -

-
-
- - - Does the given and/or it's superclasses - have at least one or more methods with the given name (with any - argument types)? - - -

- Includes non-public methods in the methods searched. -

-
- - The to be checked. - - - The name of the method to be searched for. Case inSenSItivE. - - - if the given or / and it's - superclasses have at least one or more methods (with any argument types); - if not, or either of the parameters is . - -
- - - Within , counts the number of overloads for the method with the given (case-insensitive!) - - The type to be searched - the name of the method for which overloads shall be counted - The number of overloads for method within type - - - - Creates a . - - -

- Note that if a non- - is supplied, any read write properties exposed by the - will be used to overwrite values that may have been passed in via the - . That is, the will be used - to initialize the custom attribute, and then any read-write properties on the - will be plugged in. -

-
- - The desired . - - - Any constructor arguments for the attribute (may be - in the case of no arguments). - - - Source attribute to copy properties from (may be ). - - A custom attribute builder. - - If the parameter is . - - - If the parameter is not a - that derives from the class. - - -
- - - Creates a . - - - The desired . - - - Source attribute to copy properties from (may be ). - - A custom attribute builder. - - - - Creates a . - - - The source attribute to copy properties from. - - A custom attribute builder. - - If the supplied is - . - - - - - Creates a . - - - The desired . - - A custom attribute builder. - - - - Creates a . - - - The desired . - - - Any constructor arguments for the attribute (may be - in the case of no arguments). - - A custom attribute builder. - - - - Creates a . - - - The to create - the custom attribute builder from. - - A custom attribute builder. - - - - Tries to find matching methods in the specified - for each method in the supplied list. - - - The to look for matching methods in. - - The methods to match. - - A flag that specifies whether to throw an exception if a matching - method is not found. - - A list of the matched methods. - - If either of the or - parameters are . - - - - - Returns the of the supplied - . - - -

- If the is a - instance, the return value of this method call with be the - parameter cast to a - . If the is - anything other than a , the return value - will be the result of invoking the 's - method. -

-
- - A or instance. - - - The argument if it is a - or the result of invoking - on the argument if it - is an . - - - If the is . - -
- - - Unwraps the supplied - and returns the inner exception preserving the stack trace. - - - The to unwrap. - - The unwrapped exception. - - - - Is the supplied can be accessed outside the assembly ? - - The type to check. - - if the type can be accessed outside the assembly; - Otherwise . - - - - - Is the supplied can be accessed - from the supplied friendly assembly ? - - The type to check. - The friendly assembly name. - - if the type can be accessed - from the supplied friendly assembly; Otherwise . - - - - - Gets all of the interfaces implemented by - the specified . - - - The object to get the interfaces of. - - - All of the interfaces implemented by the - . - - - - - Returns the explicit that is the root cause of an exception. - - - If the InnerException property of the current exception is a null reference - or a , returns the current exception. - - The last exception thrown. - - The first explicit exception thrown in a chain of exceptions. - - - - - Copies all fields from one object to another. - - - The types of both objects must be related. This means, that either of the following is true: - - fromObject.GetType() == toObject.GetType() - fromObject.GetType() is derived from toObject.GetType() - toObject.GetType() is derived from fromObject.GetType() - - - The source object - The object, who's fields will be populated with values from the source object - If the object's types are not related - - - - Creates a . - - Bruno Baia - $Id: ReflectionUtils.cs,v 1.59 2008/05/13 14:22:46 oakinger Exp $ - - - - Creates a new instance of the - class. - - The custom attribute type. - - - - Creates a new instance of the - class. - - The custom attribute type. - The custom attribute constructor arguments. - - - - Adds the specified values to the constructor argument list - used to create the custom attribute. - - An array of argument values. - - - - Adds a property value to the custom attribute. - - The property name. - The property value. - - - - Creates the . - - The created . - - - - Strategy interface for parsing XML object definitions. - - -

- Used by - for actually parsing a DOM document or - fragment. -

-
- Juergen Hoeller - Rick Evans (.NET) - Sandu Turcan (.NET) - $Id: INamespaceParser.cs,v 1.1 2007/08/07 21:23:37 markpollack Exp $ -
- - - Invoked by after construction but before any - elements have been parsed. - - - - - Parse the specified element and register any resulting - IObjectDefinitions with the IObjectDefinitionRegistry that is - embedded in the supplied ParserContext. - - - Implementations should return the primary IObjectDefinition - that results from the parse phase if they wish to used nested - inside (for example) a <property> tag. - Implementations may return null if they will not - be used in a nested scenario. - - - The element to be parsed into one or more IObjectDefinitions - The object encapsulating the current state of the parsing - process. - - The primary IObjectDefinition (can be null as explained above) - - - - - Parse the specified XmlNode and decorate the supplied ObjectDefinitionHolder, - returning the decorated definition. - - The XmlNode may either be an XmlAttribute or an XmlElement, depending on - whether a custom attribute or element is being parsed. - Implementations may choose to return a completely new definition, - which will replace the original definition in the resulting IApplicationContext/IObjectFactory. - - The supplied ParserContext can be used to register any additional objects needed to support - the main definition. - - The source element or attribute that is to be parsed. - The current object definition. - The object encapsulating the current state of the parsing - process. - The decorated definition (to be registered in the IApplicationContext/IObjectFactory), - or simply the original object definition if no decoration is required. A null value is strickly - speaking invalid, but will leniently treated like the case where the original object definition - gets returned. - - - - Object definition reader for a simple properties format. - - - Provides object definition registration methods for - and - instances. Typically applied to a - . - - Rod Johnson - Juergen Hoeller - Simon White (.NET) - - - - Value of a T/F attribute that represents true. - Anything else represents false. Case seNsItive. - - - - - Separator between object name and property name. - - - - - Prefix for the class property of a root object definition. - - - - - Special string added to distinguish if the object will be - a singleton. - - -

- Default is true. -

-
- -

- owner.(singleton)=true -

-
-
- - - Special string added to distinguish if the object will be - lazily initialised. - - -

- Default is false. -

-
- -

- owner.(lazy-init)=true -

-
-
- - - Reserved "property" to indicate the parent of a child object definition. - - - - - Property suffix for references to other objects in the current - : e.g. - owner.dog(ref)=fido. - - -

- Whether this is a reference to a singleton or a prototype - will depend on the definition of the target object. -

-
-
- - - Prefix before values referencing other objects. - - - - - Creates a new instance of the - - class. - - - The - instance that this reader works on. - - - - - Load object definitions from the supplied . - - - The resource for the object definitions that are to be loaded. - - - The number of object definitions that were loaded. - - - In the case of loading or parsing errors. - - - - - Load object definitions from the specified properties file. - - - The resource descriptor for the properties file. - - - The match or filter for object definition names, e.g. 'objects.' - - in case of loading or parsing errors - the number of object definitions found - - - - Register object definitions contained in a - , using all property keys (i.e. - not filtering by prefix). - - - The containing object definitions. - - - In case of loading or parsing errors. - - The number of object definitions registered. - - - - Register object definitions contained in a - . - - -

- Similar syntax as for an . - This method is useful to enable standard .NET internationalization support. -

-
- - The containing object definitions. - - - The match or filter for object definition names, e.g. 'objects.' - - - In case of loading or parsing errors. - - The number of object definitions registered. -
- - - Register object definitions contained in an - , using all property keys - (i.e. not filtering by prefix). - - - The containing object definitions. - - - In case of loading or parsing errors. - - The number of object definitions registered. - - - - Registers object definitions contained in an - using all property keys ( i.e. not filtering by prefix ) - - The containing - object definitions. - - - In case of loading or parsing errors. - - The number of object definitions registered. - - - - Register object definitions contained in a - . - - -

- Ignores ineligible properties. -

-
- IDictionary name -> property (String or Object). Property values - will be strings if coming from a Properties file etc. Property names - (keys) must be strings. Type keys must be strings. - - - The match or filter within the keys in the map: e.g. 'objects.' - - - In case of loading or parsing errors. - - The number of object definitions found. -
- - - Register object definitions contained in a - . - - -

- Ignores ineligible properties. -

-
- IDictionary name -> property (String or Object). Property values - will be strings if coming from a Properties file etc. Property names - (keys) must be strings. Type keys must be strings. - - - The match or filter within the keys in the map: e.g. 'objects.' - - - The description of the resource that the - came from (for logging purposes). - - - In case of loading or parsing errors. - - The number of object definitions found. -
- - - Get all property values, given a prefix (which will be stripped) - and add the object they define to the factory with the given name - - The name of the object to define. - - The containing string pairs. - - The prefix of each entry, which will be stripped. - - The description of the resource that the - came from (for logging purposes). - - - In case of loading or parsing errors. - - - - - Name of default parent object - - - - - Gets or sets object definition factory to use. - - - - - Thrown when the validation of an object definition failed. - - Juergen Hoeller - Rick Evans (.NET) - - - - Creates a new instance of the - - class. - - - - - Creates a new instance of the - - class. - - The detail message. - - - - Creates a new instance of the - - class. - - - The detail message. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectDefinitionValidationException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Utility class that contains various methods useful for the implementation of - autowire-capable object factories. - - Juergen Hoeller - Rick Evans (.NET) - $Id: AutowireUtils.cs,v 1.7 2008/04/02 18:02:24 markpollack Exp $ - - - - Creates a new instance of the AutowireUtils class. - - -

- This is a utility class, and as such has no publicly - visible constructors. -

-
-
- - - Gets those s - that are applicable for autowiring the supplied . - - - The - (definition) that is being autowired by constructor. - - - The absolute minimum number of arguments that any returned constructor - must have. If this parameter is equal to zero (0), then all constructors - are valid (regardless of their argument count), including any default - constructor. - - - Those s - that are applicable for autowiring the supplied . - - - - - Determine a weight that represents the class hierarchy difference between types and - arguments. - - -

- A direct match, i.e. type MyInteger -> arg of class MyInteger, does not increase - the result - all direct matches means weight zero (0). A match between the argument type - and a MyInteger instance argument would increase the weight by - 1, due to the superclass () being one (1) steps up in the - class hierarchy being the last one that still matches the required type. -

-

- Therefore, with an argument of type , a - constructor taking a argument would be - preferred to a constructor taking an argument - which would be preferred to a constructor taking an - argument which would in turn be preferred - to a constructor taking an argument. -

-

- All argument weights get accumulated. -

-
- - The argument s to match. - - The arguments to match. - The accumulated weight for all arguments. -
- - - Determines whether the given object property is excluded from dependency checks. - - The PropertyInfo of the object property. - - true if is excluded from dependency check; otherwise, false. - - - - - Sorts the supplied , preferring - public constructors and "greedy" ones (that have lots of arguments). - - -

- The result will contain public constructors first, with a decreasing number - of arguments, then non-public constructors, again with a decreasing number - of arguments. -

-
- - The array to be sorted. - -
- - - Determines whether the setter property is defined in any of the given interfaces. - - The PropertyInfo of the object property - The ISet of interfaces. - - true if setter property is defined in interface; otherwise, false. - - - - - Implementation of that - resolves variable name against name-value sections in - the standard .NET configuration file. - - Aleksandar Seovic - $Id: ConfigSectionVariableSource.cs,v 1.4 2007/08/22 20:16:27 oakinger Exp $ - - - - Initializes a new instance of - - - - - Initializes a new instance of from the given - - - - - Initializes a new instance of from the given - - - - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Initializes properties based on the specified - property file locations. - - - - - Gets or sets a list of section names variables should be loaded from. - - - All sections specified need to be handled by the - in order to be processed successfully. - - - A list of section names variables should be loaded from. - - - - - Convinience property. Gets or sets a single section - to read properties from. - - - The section specified needs to be handled by the - in order to be processed successfully. - - - A section to read properties from. - - - - - Implementation of that simply calls . - - - This formatter is a no-operation implementation. - - Erich Eichinger - $Id: NullFormatter.cs,v 1.1 2007/05/19 00:23:18 oakinger Exp $ - - - - Initializes a new instance of the class. - - - - - Converts the passed value to a string by calling . - - The value to convert. - to string converted value. - - - - Returns the passed string "as is". - - The value to return. - The value passed into this method. - - - - Implementation of that can be used to - format and parse values. - - - - DateTimeFormatter uses properties of the - to format and parse values. - - - If you use one of the constructors that accept culture as a parameter - to create an instance of DateTimeFormatter, default DateTimeFormatInfo - for the specified culture will be used. - - - You can also use properties exposed by the DateTimeFormatter in order - to override some of the default formatting parameters. - - - Aleksandar Seovic - $Id: DateTimeFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Initializes a new instance of the class - using default for the current thread's culture. - - Date/time format string. - - - - Initializes a new instance of the class - using default for the specified culture. - - Date/time format string. - The culture name. - - - - Initializes a new instance of the class - using default for the specified culture. - - Date/time format string. - The culture. - - - - Formats the specified value. - - The value to format. - Formatted value. - If is null. - If is not an instance of . - - - - Parses the specified value. - - The string to parse. - Parsed value. - - - - Represents unary minus operator. - - Aleksandar Seovic - $Id: OpUnaryMinus.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the unary plus operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical "less than" operator. - - Aleksandar Seovic - $Id: OpLess.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical "less than" operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed map initializer node in the navigation expression. - - Aleksandar Seovic - $Id: MapInitializerNode.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Creates a new instance of . - - - - - Create a new instance from SerializationInfo - - - - - Creates new instance of the map defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the sort processor. - - Aleksandar Seovic - $Id: SortProcessor.cs,v 1.4 2008/03/20 23:58:16 oakinger Exp $ - - - - Sorts the source collection. - - - Please not that this processor requires that collection elements - are of a uniform type and that they implement - interface. -

- If you want to perform custom sorting based on element properties - you should consider using instead. - - - The source collection to sort. - - - Ignored. - - - An array containing sorted collection elements. - - - If collection is not empty and it is - neither nor . - - - -

- Converts string representation of the registry key - into instance. - - Aleksandar Seovic - $Id: RegistryKeyConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Can we convert from a the sourcetype to a ? - - -

- Currently only supports conversion from a instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to an - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A array if successful. - - - - - Generates partial registry key name. - - - Key elements. - - - Index of the last element to use. - - - Friendly key name containing key element from - 0 to , inclusive. - - - - - Returns for the specified - root hive name. - - - Root hive name. - - - Registry key for the specified name. - - - - - Converts string representation of a regular expression into an instance of . - - Aleksandar Seovic - $Id: RegexConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Can we convert from the sourcetype to a ? - - -

- Currently only supports conversion from a instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to an - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful. - - - - - A custom for any - primitive numeric type such as , - , , etc. - - -

- Can use a given for - (locale-specific) parsing and rendering. -

-

- This is not meant to be used as a system - but rather as a - locale-specific number converter within custom controller code, to - parse user-entered number strings into number properties of objects, - and render them in a UI form. -

-
- Juergen Hoeller - Simon White (.NET) - $Id: CustomNumberConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - The primitive numeric to convert to. - - - The to use for - (locale-specific) parsing and rendering - - - Is an empty string allowed to be converted? If - , an empty string value will be converted to - numeric 0. - - Id the supplied is not a primitive - . - - - - - - Returns whether this converter can convert an object of one - to a - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - - if the conversion is possible. - -
- - - Converts the specified object (a string) to the required primitive - type. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - A primitive representation of the string value. - - - - Registry class that allows users to register and retrieve protocol handlers. - - - - Resource handler is an implementation of interface - that should be used to process resources with the specified protocol. - - - They are used throughout the framework to access resources from various - sources. For example, application context loads object definitions from the resources - that are processed using one of the registered resource handlers. - - Following resource handlers are registered by default: - - - Protocol - Handler Type - Description - - - config - - Resolves the resources by loading specified configuration section from the standard .NET config file. - - - file - - Resolves filesystem resources. - - - http - - Resolves remote web resources. - - - https - - Resolves remote web resources via HTTPS. - - - ftp - - Resolves ftp resources. - - - assembly - - Resolves resources that are embedded into an assembly. - - - web - Spring.Core.IO.WebResource, Spring.Web* - Resolves resources relative to the web application's virtual directory. - - - * only available in web applications. - - Users can create and register their own protocol handlers by implementing interface - and mapping custom protocol name to that implementation. See for details - on how to register custom protocol handler. - - - Aleksandar Seovic - $Id: ResourceHandlerRegistry.cs,v 1.7 2007/08/08 17:46:55 bbaia Exp $ - - - - Name of the .Net config section that contains definitions - for custom resource handlers. - - - - - Registers standard and user-configured resource handlers. - - - - - Returns resource handler for the specified protocol name. - - - - This method returns object that should be used - to create an instance of the -derived type by passing - resource location as a parameter. - - - Name of the protocol to get the handler for. - Resource handler constructor for the specified protocol name. - If is null. - - - - Returns true if a handler is registered for the specified protocol, - false otherwise. - - Name of the protocol. - - true if a handler is registered for the specified protocol, false otherwise. - - If is null. - - - - Registers resource handler and maps it to the specified protocol name. - - -

- If the mapping already exists, the existing mapping will be - silently overwritten with the new mapping. -

-
- - The protocol to add (or override). - - - The type name of the concrete implementation of the - interface that will handle - the specified protocol. - - - If the supplied is - or contains only whitespace character(s); or - if the supplied is - . - - - If the supplied is not a - that derives from the - interface; or (having passed - this first check), the supplied - does not expose a constructor that takes a single - parameter. - -
- - - Registers resource handler and maps it to the specified protocol name. - - -

- If the mapping already exists, the existing mapping will be - silently overwritten with the new mapping. -

-
- - The protocol to add (or override). - - - The concrete implementation of the - interface that will handle - the specified protocol. - - - If the supplied is - or contains only whitespace character(s); or - if the supplied is - . - - - If the supplied is not a - that derives from the - interface; or (having passed - this first check), the supplied - does not expose a constructor that takes a single - parameter. - -
- - - A backed resource. - - -

- Supports resolution as both a and a - . -

-

- Also supports the use of the ~ character. If the ~ character - is the first character in a resource path (sans protocol), the ~ - character will be replaced with the value of the - System.AppDomain.CurrentDomain.BaseDirectory property (an example of - this can be seen in the examples below). -

-
- -

- Consider the example of an application that is running (has been launched - from) the C:\App\ directory. The following resource paths will map - to the following resources on the filesystem... -

- - strings.txt C:\App\strings.txt - ~/strings.txt C:\App\strings.txt - file://~/strings.txt C:\App\strings.txt - file://~/../strings.txt C:\strings.txt - ../strings.txt C:\strings.txt - ~/../strings.txt C:\strings.txt - - // note that only a leading ~ character is resolved to the executing directory... - stri~ngs.txt C:\App\stri~ngs.txt - -
- Juergen Hoeller - Leonardo Susatyo (.NET) - Aleksandar Seovic (.NET) - $Id: FileSystemResource.cs,v 1.23 2007/08/08 17:46:55 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The name of the file system resource. - - - If the supplied is - or contains only whitespace character(s). - - - - - Creates a new instance of the - class. - - - The name of the file system resource. - - - Supresses initialization of this instance. Used from derived classes. - - - If the supplied is - or contains only whitespace character(s). - - - - - Initializes this instance. - - - - - - Resolves the handle - for the supplied . - - - The name of the file system resource. - - - The handle for this resource. - - - - - Resolves the root location for the supplied . - - - The name of the file system resource. - - - The root location of the resource. - - - - - Resolves the path for the supplied . - - - The name of the file system resource. - - - The current path of the resource. - - - - - Resolves the presence of the - value - in the supplied into a path. - - - The name of the resource. - - - The string that is a placeholder for a base path. - - - The name of the resource with any - value having been resolved into an actual path. - - - - - Does the supplied relative ? - - - The name of the resource to test. - - - if resource name is relative; - otherwise . - - - - - Returns the underlying handle for - this resource. - - - The handle for this resource. - - - - - - Does this support relative - resource retrieval? - - -

- This implementation does support relative resource retrieval, and - so will always return . -

-
- - if this - supports relative resource - retrieval. - - -
- - - Gets the root location of the resource (a drive or UNC file share - name in this case). - - - The root location of the resource. - - - - - - Gets the current path of the resource. - - - The current path of the resource. - - - - - - Gets those characters that are valid path separators for the - resource type. - - - Those characters that are valid path separators for the resource - type. - - - - - - - Return an for this resource. - - - An . - - - If the stream could not be opened. - - - If the underlying file could not be found. - - - - - - Returns a description for this resource. - - - A description for this resource. - - - - - - Returns the handle for this resource. - - - The handle for this resource. - - - If the resource is not available or cannot be exposed as a - . - - - - - - Default section handler that can handle any configuration section. - - -

- Simply returns the configuration section as an . -

-
- Aleksandar Seovic - $Id: DefaultSectionHandler.cs,v 1.4 2006/04/09 07:18:38 markpollack Exp $ -
- - - Returns the configuration section as an - - - The configuration settings in a corresponding parent - configuration section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is a null reference. - - - The for the section. - - Config section as XmlElement. - - - - - implementation that passes the application context to object that - implement the - , - , and - interfaces. - - -

- If an object's class implements more than one of the - , - , and - interfaces, then the - order in which the interfaces are satisfied is as follows... - - - - - - - - - - - -

-

- Application contexts will automatically register this with their - underlying object factory. Applications should thus never need to use - this class directly. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: ApplicationContextAwareProcessor.cs,v 1.8 2007/08/22 08:49:26 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - The that this - instance will work with. - - - - - Apply this - to the given new object instance before any object - initialization callbacks. - - - The new object instance. - - - The name of the object. - - - The the object instance to use, either the original or a wrapped one. - - - In case of errors. - - - - - - Apply this to the - given new object instance after any object initialization - callbacks. - - - The new object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - In case of errors. - - - - - - To be implemented by any object that wishes to be notified - of the associated with it. - - -

- In the current implementation, the - will typically be the - associated that - spawned the implementing object. -

-

- The can usually also be - passed on as an object reference to arbitrary object properties or - constructor arguments, because a - is typically defined as an - object with the well known name "messageSource" in the - associated application context. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: IMessageSourceAware.cs,v 1.4 2006/04/09 07:18:38 markpollack Exp $ - -
- - - Sets the associated - with this object. - - -

- Invoked after population of normal object properties but - before an initializing callback such as the - - method of the - interface - or a custom init-method. -

-

- It is also invoked before the - - property of any - - implementation. -

-
- - The associated - with this object. - -
- - - This attribute should be used to mark methods whose argument(s) - need to be cached. - - -

- This attribute allows application developers to specify that an argument - of the method should be cached, but it will not do any caching by itself. -

-

- In order to actually cache the result, an application developer - must apply a Spring.Aspects.Cache.CacheParameterAdvice to - all of the members that have this attribute defined. -

-

- You can specify this attribute multiple times on the same method in order to - cache several method parameters. -

-
- Aleksandar Seovic - $Id: CacheParameterAttribute.cs,v 1.2 2007/03/31 01:07:26 bbaia Exp $ -
- - - Creates an attribute instance. - - - - - Creates an attribute instance. - - - The name of the cache to use. - - - An expression string that should be evaluated in order to determine - the cache key for the item. - - - - - Implementation of that adds error message - to the validation errors container. - - Aleksandar Seovic - $Id: ErrorMessageAction.cs,v 1.5 2008/02/05 20:40:25 aseovic Exp $ - - - - Abstract base class that should be extended by all - validation actions. - - -

- This class implements template Execute method - and defines OnValid and OnInvalid methods that - can be overriden - by specific validation actions. -

-
- Aleksandar Seovic - $Id: BaseValidationAction.cs,v 1.6 2008/02/05 20:40:26 aseovic Exp $ -
- - - An action that should be executed after validator is evaluated. - - -

- This interface allows us to define the actions that should be executed - after validation in a generic fashion. -

-

- For example, addition of error messages to validation errors collection - is performed by one specific implementation of this interface, . -

-
- Aleksandar Seovic - $Id: IValidationAction.cs,v 1.4 2008/02/05 20:40:26 aseovic Exp $ -
- - - Executes the action. - - Whether associated validator is valid or not. - Validation context. - Additional context parameters. - Validation errors container. - - - - Initializes a new instance of the class. - - - - - Executes the action. - - Whether associated validator is valid or not. - Validation context. - Additional context parameters. - Validation errors container. - - - - Called when associated validator is valid. - - Validation context. - Additional context parameters. - Validation errors container. - - - - Called when associated validator is not valid. - - Validation context. - Additional context parameters. - Validation errors container. - - - - Evaluates 'when' expression. - - Root context to use for expression evaluation. - Additional context parameters. - True if the condition is true, False otherwise. - - - - Gets or sets the expression that determines if this validator should be evaluated. - - The expression that determines if this validator should be evaluated. - - - - Initializes a new instance of the class. - - Error message resource identifier. - Names of the error providers this message should be added to. - - - - Called when associated validator is invalid. - - Validation context. - Additional context parameters. - Validation errors container. - - - - Resolves the error message. - - Validation context to resolve message parameters against. - Additional context parameters. - Resolved error message - - - - Resolves the message parameters. - - List of parameters to resolve. - Validation context to resolve parameters against. - Additional context parameters. - Resolved message parameters. - - - - Sets the expressions that should be resolved to error message parameters. - - The expressions that should be resolved to error message parameters. - - - - Discovers the attributes of a - and provides access to the - s metadata. - - Rick Evans - $Id: DelegateInfo.cs,v 1.9 2006/04/09 07:19:00 markpollack Exp $ - - - - The method name associated with a delegate invocation. - - - - - Creates a new instance of the - class. - - - The event used to extract the delegate - from. - - - if the supplied is - . - - - - - Creates a new instance of the - class. - - - The delegate . - - - If the supplied is not a subclass of the - class, or is . - - - - - Checks to see if the method encapsulated by the supplied method - metadata is compatible with the method signature associated with - this delegate type. - - The method to be checked. - - if the method signature is compatible with - the signature of this delegate; if not, or - if the supplied parameter is - . - - - - - Gets the s of the parameters of the - method signature associated with this delegate type. - - -

- This method will never return ; the returned - array may be empty, but it most certainly - will not be . -

-
- - A array of the parameter - s; or the - array if the method signature has no parameters. - -
- - - Gets the return of the - method signature associated with this delegate type. - - The return . - - - - Gets the metadata about the method signature associated - with this delegate type. - - - The metadata about the method signature associated - with this delegate type. - - - - - Determines whether the supplied - is a type. - - - The to be checked. - - - if the supplied - is a ; - if not or the supplied - is . - - - - - Checks if the signature of the supplied - is compatible with the signature expected by the supplied - . - - The event to be checked against. - - The method signature to check for compatibility. - - - if the signature of the supplied - is compatible with the signature - expected by the supplied ; - if not or either of the supplied - parameters is . - - - - - - The of the delegate. - - - - - Utility class for .NET configuration files management. - - Aleksandar Seovic - $Id: ConfigurationUtils.cs,v 1.5 2008/01/10 16:37:43 bbaia Exp $ - - - - Parses the configuration section. - - -

- Primary purpose of this method is to allow us to parse and - load configuration sections using the same API regardless - of the .NET framework version. -

-

- If Microsoft paid a bit more attention to preserving backwards - compatibility we would not even need it, but... :( -

-
- Name of the configuration section. - Object created by a corresponding . -
- - - Refresh the configuration section. - - -

- Primary purpose of this method is to allow us to parse and - load configuration sections using the same API regardless - of the .NET framework version. -

-

- If Microsoft paid a bit more attention to preserving backwards - compatibility we would not even need it, but... :( -

-
- Name of the configuration section. -
- - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - The inner exception. - Name of the configuration file. - The line where exception occured. - Configuration exception. - - - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - Name of the configuration file. - The line where exception occured. - Configuration exception. - - - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - The inner exception. - XML node where exception occured. - Configuration exception. - - - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - XML node where exception occured. - Configuration exception. - - - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - The inner exception. - Configuration exception. - - - - Creates the configuration exception. - - The message to display to the client when the exception is thrown. - Configuration exception. - - - - Creates the configuration exception. - - Configuration exception. - - - - Determines whether the specified exception is configuration exception. - - The exception to check. - - true if the specified exception is configuration exception; otherwise, false. - - - - - Returns the line number of the specified node. - - Node to get the line number for. - The line number of the specified node. - - - - Returns the name of the file specified node is defined in. - - Node to get the file name for. - The name of the file specified node is defined in. - - - - Utility class containing helper methods for object comparison. - - Aleksandar Seovic - $Id: CompareUtils.cs,v 1.2 2007/02/17 08:28:12 bbaia Exp $ - - - Compares two objects. - First object. - Second object. - - 0, if objects are equal; - less than zero, if the first object is smaller than the second one; - greater than zero, if the first object is greater than the second one. - - - - Defines constructors that dynamic constructor class has to implement. - - - - - Invokes dynamic constructor. - - - Constructor arguments. - - - A constructor value. - - - - - Safe wrapper for the dynamic constructor. - - - will attempt to use dynamic - constructor if possible, but it will fall back to standard - reflection if necessary. - - - - - Creates a new instance of the safe constructor wrapper. - - Constructor to wrap. - - - - Invokes dynamic constructor. - - - Constructor arguments. - - - A constructor value. - - - - - Factory class for dynamic constructors. - - Aleksandar Seovic - $Id: DynamicConstructor.cs,v 1.1 2007/08/08 04:05:37 bbaia Exp $ - - - - Creates dynamic constructor instance for the specified . - - Constructor info to create dynamic constructor for. - Dynamic constructor for the specified . - - - - Default implementation of the - interface. - - -

- Parses object definitions according to the standard Spring.NET schema. -

-

- This schema is typically located at - http://www.springframework.net/xsd/spring-objects.xsd. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectsNamespaceParser.cs,v 1.7 2007/11/26 14:15:54 bbaia Exp $ -
- - - The namespace URI for the standard Spring.NET object definition schema. - - - - - The shared instance for this class (and derived classes). - - - - - Invoked by after construction but before any - elements have been parsed. - - This is a NoOp - - - - Parse the specified element and register any resulting - IObjectDefinitions with the IObjectDefinitionRegistry that is - embedded in the supplied ParserContext. - - The element to be parsed into one or more IObjectDefinitions - The object encapsulating the current state of the parsing - process. - - The primary IObjectDefinition (can be null as explained above) - - - Implementations should return the primary IObjectDefinition - that results from the parse phase if they wish to used nested - inside (for example) a <property> tag. - Implementations may return null if they will not - be used in a nested scenario. - - - - - - Parse the specified XmlNode and decorate the supplied ObjectDefinitionHolder, - returning the decorated definition. - - The XmlNode may either be an XmlAttribute or an XmlElement, depending on - whether a custom attribute or element is being parsed. - Implementations may choose to return a completely new definition, - which will replace the original definition in the resulting IApplicationContext/IObjectFactory. - - The supplied ParserContext can be used to register any additional objects needed to support - the main definition. - - The source element or attribute that is to be parsed. - The current object definition. - The object encapsulating the current state of the parsing - process. - The decorated definition (to be registered in the IApplicationContext/IObjectFactory), - or simply the original object definition if no decoration is required. A null value is strickly - speaking invalid, but will leniently treated like the case where the original object definition - gets returned. - - - - Loads external XML object definitions from the resource described by the supplied - . - - The XML element describing the resource. - The parser context. - - If the resource could not be imported. - - - - Parses an event listener definition. - - The name associated with the object that the event handler is being defined on. - - The events being populated. - - The element containing the event listener definition. - - - The namespace-aware parser. - - - - - Parse an object definition and register it with the object factory.. - - The element containing the object definition. - The parser context. - - - - - Parse a standard object definition into a - , - including object name and aliases. - - The element containing the object definition. - The parser context. - - The object (definition) wrapped within an - - instance. - - -

- Object elements specify their canonical name via the "id" attribute - and their aliases as a delimited "name" attribute. -

-

- If no "id" is specified, uses the first name in the "name" attribute - as the canonical name, registering all others as aliases. -

-
-
- - - Calculates an id for an object definition. - - -

- Called when an object definition has not been explicitly defined - with an id. -

-
- - The element containing the object definition. - - - The list of names defined for the object; may be - or even empty. - - - A calculated object definition id. - -
- - - Parse a standard object definition. - - The element containing the object definition. - The id of the object definition. - parsing state holder - The object (definition). - - - - Parse method override argument subelements of the given object element. - - - - - Parse element and add parsed element to - - - - - Parse element and add parsed element to - - - - - Parse constructor argument subelements of the given object element. - - - - - Parse event handler subelements of the given object element. - - - - - Parse property value subelements of the given object element. - - - The name of the object (definition) associated with the property element (s) - - - The element containing the top level object definition. - - - The namespace-aware parser. - - - The property (s) associated with the object (definition). - - - - - Parse a constructor-arg element. - - - The name of the object (definition) associated with the ctor arg. - - - The list of constructor args associated with the object (definition). - - - The name of the element containing the ctor arg definition. - - - The namespace-aware parser. - - - - - Parse a property element. - - - The name of the object (definition) associated with the property. - - - The list of properties associated with the object (definition). - - - The name of the element containing the property definition. - - - The namespace-aware parser. - - - - - Get the value of a property element (may be a list). - -

- Please note that even though this method is named GetPropertyValue, - it is called by both the property and constructor argument element - handlers. -

-
- The property element. - - The name of the object associated with the property. - - - The namespace-aware parser. - -
- - - Parse a value, ref or collection subelement of a property element. - - - Subelement of property element; we don't know which yet. - - - The name of the object (definition) associated with the top level property. - - - The namespace-aware parser. - - - - - Gets a list definition. - - - The element describing the list definition. - - - The name of the object (definition) associated with the list definition. - - - The namespace-aware parser. - - The list definition. - - - - Gets a set definition. - - - The element describing the set definition. - - - The name of the object (definition) associated with the set definition. - - - The namespace-aware parser. - - The set definition. - - - - Gets a dictionary definition. - - - The element describing the dictionary definition. - - - The name of the object (definition) associated with the dictionary definition. - - - The namespace-aware parser. - - The dictionary definition. - - - - Selects sub-elements with a given - name. - - -

- Uses a namespace manager if necessary. -

-
- - The element to be searched in. - - - The name of the child nodes to look for. - - - The child s of the supplied - with the supplied - . - -
- - - Selects a single sub-element with a given - name. - - -

- Uses a namespace manager if necessary. -

-
- - The element to be searched in. - - - The name of the child node to look for. - - - The first child of the supplied - with the supplied - . - -
- - - Gets a name value collection mapping definition. - - - The element describing the name value collection mapping definition. - - - The name of the object (definition) associated with the - name value collection mapping definition. - - The name value collection definition. - - - - Returns the text of the supplied , - or the empty string value if said is empty. - - -

- If the supplied is , - then the empty string value will be returned. -

-
-
- - - Strips the dependency check value out of the supplied string. - - -

- If the supplied is an invalid dependency - checking mode, the invalid value will be logged and this method will - return the value. - No exception will be raised. -

-
- - The string containing the dependency check value. - - The dependency check value. - -
- - - Strips the autowiring mode out of the supplied string. - - -

- If the supplied is an invalid autowiring mode, - the invalid value will be logged and this method will return the - value. No exception will be raised. -

-
- - The string containing the autowiring mode definition. - - The autowiring mode. - -
- - - Given a string containing delimited object names, returns - a string array split on the object name delimeter. - - - The string containing delimited object names. - - - A string array split on the object name delimeter. - - - - - - Represents an override of a method that looks up an object in the same IoC context. - - -

- Methods eligible for lookup override must not have arguments. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: LookupMethodOverride.cs,v 1.3 2007/03/16 04:01:41 aseovic Exp $ -
- - - Creates a new instance of the - class. - - -

- Methods eligible for lookup override must not have arguments. -

-
- - The name of the method that is to be overridden. - - - The name of the object in the current IoC context that the - dependency injected method must return. - - - If either of the supplied arguments is or - contains only whitespace character(s). - -
- - - Does this - match the supplied ? - - The method to be checked. - - if this override matches the supplied . - - - If the supplied is . - - - - - A that represents the current - . - - - A that represents the current - . - - - - - The name of the object in the current IoC context that the - dependency injected method must return. - - - - - Thrown in response to an attempt to lookup a factory object, and - the object identified by the lookup key is not a factory. - - -

- An object is a factory if it implements (either directly or indirectly - via inheritance) the - interface. -

-
- Rod Johnson - Rick Evans (.NET) - $Id: ObjectIsNotAFactoryException.cs,v 1.5 2006/04/09 07:18:49 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The name of the object that was being retrieved from the factory. - - - The object instance that was retrieved. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Resolves placeholder values in one or more object definitions. - - -

- The default placeholder syntax follows the NAnt style: ${...}. - Instances of this class can be configured in the same way as any other - object in a Spring.NET container, and so custom placeholder prefix - and suffix values can be set via the - and properties. -

- -

- The following example XML context definition defines an object that has - a number of placeholders. The placeholders can easily be distinguished - by the presence of the ${} characters. -

- - - - - - - - -

- The associated XML configuration file for the above example containing the - values for the placeholders would contain a snippet such as .. -

- - - - - - - - -

- The preceding XML snippet listing the various property keys and their - associated values needs to be inserted into the .NET config file of - your application (or Web.config file for your ASP.NET web application, - as the case may be), like so... -

- - - - - - - - -
-

- - checks simple property values, lists, dictionaries, sets, constructor - values, object type name, and object names in - runtime object references ( - ). - Furthermore, placeholder values can also cross-reference other - placeholders, in the manner of the following example where the - rootPath property is cross-referenced by the subPath - property. -

- - - - - - - - -

- In contrast to the - - class, this configurer only permits the replacement of explicit - placeholders in object definitions. Therefore, the original definition - cannot specify any default values for its object properties, and the - placeholder configuration file is expected to contain an entry for each - defined placeholder. That is, if an object definition contains a - placeholder ${foo}, there should be an associated - <add key="foo" value="..."/> entry in the - referenced placeholder configuration file. Default property values - can be defined via the inherited - - collection to overcome any perceived limitation of this feature. -

-

- If a configurer cannot resolve a placeholder, and the value of the - - property is currently set to , an - - will be thrown. If you want to resolve properties from multiple configuration - resources, simply specify multiple resources via the - - property. Finally, please note that you can also define multiple - - instances, each with their own custom placeholder syntax. -

-
- Juergen Hoeller - Simon White (.NET) - $Id: PropertyPlaceholderConfigurer.cs,v 1.23 2007/08/02 22:18:32 markpollack Exp $ - - - -
- - - The default placeholder prefix. - - - - - The default placeholder suffix. - - - - - Apply the given properties to the supplied - . - - - The - used by the application context. - - The properties to apply. - - If an error occured. - - - - - Parse values recursively to be able to resolve cross-references between - placeholder values. - - - The map of constructor arguments / property values. - - The string to be resolved. - The placeholders that have already been visited - during the current resolution attempt (used to detect circular references - between placeholders). Only non-null if we're parsing a nested placeholder. - - If an error occurs. - - The resolved string. - - - - Resolve the given placeholder using the given name value collection, - performing an environment variables check according to the given mode. - - -

- The default implementation delegates to - - before/afer the environment variable check. Subclasses can override - this for custom resolution strategies, including customized points - for the environment properties check. -

-
- The placeholder to resolve - - The merged name value collection of this configurer. - - The environment variable mode. - - The resolved value or if none. - - -
- - - Resolve the given placeholder using the given name value collection. - - -

- This (the default) implementation simply looks up the value of the - supplied key. -

-

- Subclasses can override this for customized placeholder-to-key - mappings or custom resolution strategies, possibly just using the - given name value collection as fallback. -

-
- The placeholder to resolve. - - The merged name value collection of this configurer. - - The resolved value. -
- - - The placeholder prefix (the default is ${). - - - - - - The placeholder suffix (the default is }) - - - - - - Indicates whether unresolved placeholders should be ignored. - - - - - Controls how environment variables will be used to - replace property placeholders. - - -

- See the overview of the - - enumeration for the available options. -

-
-
- - - Subinterface of - that adds - a before-destruction callback. - - - The typical usage will be to invoke custom destruction callbacks on - specific object types, matching corresponding initialization callbacks. - - Juergen Hoeller - Simon White (.NET) - $Id: IDestructionAwareObjectPostProcessor.cs,v 1.4 2006/04/09 07:18:47 markpollack Exp $ - - - - Apply this - to the - given new object instance before its destruction. Can invoke custom - destruction callbacks. - - The new object instance. - The name of the object. - - In case of errors. - - - - - Support class for implementing custom namespace parsers. - - Parsing of individual elements is done via a ObjectDefintionParser. - Provides the RegisterObjectDefinitionParser for registering a ObjectDefintionParser - to handle a specific element. - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: NamespaceParserSupport.cs,v 1.9 2008/02/20 14:29:22 bbaia Exp $ - - - - Invoked by after construction but before any - elements have been parsed. - - - - - Parses an element under the root node, typically - an object definition or import statement. - - - The element to be parsed. - - - The parser context. - - - The number of object defintions created from this element. - - - - - Parse the specified XmlNode and decorate the supplied ObjectDefinitionHolder, - returning the decorated definition. - - The XmlNode may either be an XmlAttribute or an XmlElement, depending on - whether a custom attribute or element is being parsed. - Implementations may choose to return a completely new definition, - which will replace the original definition in the resulting IApplicationContext/IObjectFactory. - - The supplied ParserContext can be used to register any additional objects needed to support - the main definition. - - The source element or attribute that is to be parsed. - The current object definition. - The object encapsulating the current state of the parsing - process. - The decorated definition (to be registered in the IApplicationContext/IObjectFactory), - or simply the original object definition if no decoration is required. A null value is strickly - speaking invalid, but will leniently treated like the case where the original object definition - gets returned. - - - - Register the specified for the given - - - - - Represents ternary expression node. - - Aleksandar Seovic - $Id: TernaryNode.cs,v 1.9 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the string literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents node that navigates to object's property or public field. - - Aleksandar Seovic - $Id: PropertyOrFieldNode.cs,v 1.28 2007/09/14 13:48:53 oakinger Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Initializes the node. - - The parent. - - - - Attempts to resolve property or field. - - - Type to search for a property or a field. - - - Property or field name. - - - Binding flags to use. - - - Resolved property or field accessor, or null - if specified cannot be resolved. - - - - - Returns node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Sets node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - - - - Retrieves property or field value. - - Context to evaluate expressions against. - Current expression evaluation context. - Property or field value. - - - - Sets property value, doing any type conversions that are necessary along the way. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - - - - Sets property or field value using either dynamic or standard reflection. - - Object to evaluate node against. - New value for this node, converted to appropriate type. - - - - In the case of read only collections or custom collections that are not assignable from - IList, try to add to the collection. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - true if was able add to IList, IDictionary, or ISet - - - - Utility method that is needed by ObjectWrapper and AbstractAutowireCapableObjectFactory. - We try as hard as we can, but there are instances when we won't be able to obtain PropertyInfo... - - Context to resolve property against. - PropertyInfo for this node. - - - - Gets a value indicating whether this node represents a property. - - - true if this node is a property; otherwise, false. - - - - - Gets a value indicating whether this node represents a field. - - - true if this node is a field; otherwise, false. - - - - - Represents arithmetic multiplication operator. - - Aleksandar Seovic - $Id: OpMULTIPLY.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic multiplication operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed named argument node in the expression. - - Aleksandar Seovic - $Id: NamedArgumentNode.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns the value of the named argument defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed selection node in the navigation expression. - - Aleksandar Seovic - $Id: SelectionNode.cs,v 1.6 2008/03/25 22:33:04 oakinger Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a containing results of evaluation - of selection expression against each node in the context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the maximum aggregator. - - Aleksandar Seovic - $Id: MaxAggregator.cs,v 1.2 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns the largest item in the source collection. - - - The source collection to process. - - - Ignored. - - - The largest item in the source collection. - - - - - Converts a separated to a - array. - - -

- Defaults to using the , (comma) as the list separator. Note that the value - of the current is - not used. -

-

- If you want to provide your own list separator, you can set the value of the - - property to the value that you want. Please note that this value will be used - for all future conversions in preference to the default list separator. -

-

- Please note that the individual elements of a string will be passed - through as is (i.e. no conversion or trimming of surrounding - whitespace will be performed). -

-

- This should be - automatically registered with any - implementations. -

-
- - - public class StringArrayConverterExample - { - public static void Main() - { - StringArrayConverter converter = new StringArrayConverter(); - - string csvWords = "This,Is,It"; - string[] frankBoothWords = converter.ConvertFrom(csvWords); - - // the 'frankBoothWords' array will have 3 elements, namely - // "This", "Is", "It". - - // please note that extraneous whitespace is NOT trimmed off - // in the current implementation... - string csv = " Cogito ,ergo ,sum "; - string[] descartesWords = converter.ConvertFrom(csv); - - // the 'descartesWords' array will have 3 elements, namely - // " Cogito ", "ergo ", "sum ". - // notice how the whitespace has NOT been trimmed. - } - } - - - - $Id: StringArrayConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Can we convert from a the sourcetype to a array? - - -

- Currently only supports conversion from a instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to a - array. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A array if successful. - - - - - The value that will be used as the list separator when performing - conversions. - - - A 'single' string character that will be used as the list separator - when performing conversions. - - - If the supplied value is not and is an empty - string, or has more than one character. - - - - - Configuration section handler for the (recommended, Spring.NET standard) parsers - config section. - - -

- Spring.NET allows the registration of custom configuration parsers that - can be used to create simplified configuration schemas that better - describe object definitions. -

-

- For example, Spring.NET uses this facility internally in order to - define simplified schemas for various AOP, Data and Services definitions. -

-
- -

- The following example shows how to configure both this section handler - and how to define custom configuration parsers within a Spring.NET - config section. -

- - - - -
- - - - - - - ... - - ... - - - - - Aleksandar Seovic - $Id: NamespaceParsersSectionHandler.cs,v 1.1 2007/08/08 01:53:43 bbaia Exp $ - - - - - Registers parsers specified in the (recommended, Spring.NET standard) - parsers config section with the . - - - The configuration settings in a corresponding parent - configuration section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - This method always returns , because parsers - are registered as a side-effect of this object's execution and there - is thus no need to return anything. - - - - - Implements a thread-safe wrapper. - - -

- The implementation is extremely conservative, serializing critical - sections to prevent possible deadlocks, and locking on everything. The - one exception is for enumeration, which is inherently not thread-safe. - For this, you have to lock the SyncRoot object for the - duration of the enumeration. -

-
- - $Id: SynchronizedSet.cs,v 1.6 2007/03/16 04:01:29 aseovic Exp $ -
- - - Constructs a thread-safe - wrapper. - - - The object that this object - will wrap. - - - If the supplied ecposes a - SyncRoot value. - - - - - Adds the specified element to this set if it is not already present. - - The object to add to the set. - - is the object was added, - if the object was already present. - - - - - Adds all the elements in the specified collection to the set if - they are not already present. - - A collection of objects to add to the set. - - is the set changed as a result of this - operation. - - - - - Removes all objects from this set. - - - - - Returns if this set contains the specified - element. - - The element to look for. - - if this set contains the specified element. - - - - - Returns if the set contains all the - elements in the specified collection. - - A collection of objects. - - if the set contains all the elements in the - specified collection; also if the - supplied is . - - - - - Removes the specified element from the set. - - The element to be removed. - - if the set contained the specified element. - - - - - Remove all the specified elements from this set, if they exist in - this set. - - A collection of elements to remove. - - if the set was modified as a result of this - operation. - - - - - Retains only the elements in this set that are contained in the - specified collection. - - - The collection that defines the set of elements to be retained. - - - if this set changed as a result of this - operation. - - - - - Copies the elements in the to - an array. - - -

- The type of array needs to be compatible with the objects in the - , obviously. -

-
- - An array that will be the target of the copy operation. - - - The zero-based index where copying will start. - -
- - - Gets an enumerator for the elements in the - . - - - An over the elements - in the . - - - - - Returns a clone of the instance. - - A clone of this object. - - - - Returns if this set contains no elements. - - - - - The number of elements currently contained in this collection. - - - - - Returns if the - is synchronized across - threads. - - - - - - An object that can be used to synchronize this collection to make - it thread-safe. - - - An object that can be used to synchronize this collection to make - it thread-safe. - - - - - - Synchronized that, unlike hashtable created - using method, synchronizes - reads from the underlying hashtable in addition to writes. - - -

- In addition to synchronizing reads, this implementation also fixes - IEnumerator/ICollection issue described at - http://msdn.microsoft.com/netframework/programming/breakingchanges/runtime/clr.aspx - (search for SynchronizedHashtable for issue description), by implementing - interface explicitly, and returns thread safe enumerator - implementations as well. -

-

- This class should be used whenever a truly synchronized - is needed. -

-
- Aleksandar Seovic - $Id: SynchronizedHashtable.cs,v 1.2 2007/08/27 13:57:17 oakinger Exp $ -
- - - Initializes a new instance of - - - - - Initializes a new instance of , copying inital entries from . - - - - - Adds an element with the provided key and value to the object. - - The to use as the value of the element to add. - The to use as the key of the element to add. - An element with the same key already exists in the object. - key is null. - The is read-only.-or- The has a fixed size. 2 - - - - Removes all elements from the object. - - The object is read-only. 2 - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Determines whether the object contains an element with the specified key. - - - true if the contains an element with the key; otherwise, false. - - The key to locate in the object. - key is null. 2 - - - - Returns, whether this contains an entry with the specified . - - The key to look for - , if this contains an entry with this - - - - Returns, whether this contains an entry with the specified . - - The valúe to look for - , if this contains an entry with this - - - - Copies the elements of the to an , starting at a particular index. - - The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. - The zero-based index in array at which copying begins. - array is null. - The type of the source cannot be cast automatically to the type of the destination array. - index is less than zero. - array is multidimensional.-or- index is equal to or greater than the length of array.-or- The number of elements in the source is greater than the available space from index to the end of the destination array. 2 - - - - Returns an object for the object. - - - An object for the object. - - - - - Removes the element with the specified key from the object. - - The key of the element to remove. - The object is read-only.-or- The has a fixed size. - key is null. 2 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Gets a value indicating whether the object is read-only. - - - true if the object is read-only; otherwise, false. - - - - - Gets a value indicating whether the object has a fixed size. - - - true if the object has a fixed size; otherwise, false. - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - - Gets an object containing the keys of the object. - - - An object containing the keys of the object. - - - - - Gets an object containing the values in the object. - - - An object containing the values in the object. - - - - - Gets an object that can be used to synchronize access to the . - - - An object that can be used to synchronize access to the . - - - - - Gets the number of elements contained in the . - - - The number of elements contained in the . - - - - - Gets or sets the element with the specified key. - - - The element with the specified key. - - The key of the element to get or set. - The property is set and the object is read-only.-or- The property is set, key does not exist in the collection, and the has a fixed size. - key is null. 2 - - - - Simple linked list implementation. - - Simon White - $Id: LinkedList.cs,v 1.9 2007/03/16 04:01:28 aseovic Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class that contains all - elements of the specified list. - - - A list of elements that defines the initial contents. - - - - - Removes the object at the specified index. - - The lookup index. - - If the specified is greater than the - number of objects within the list. - - - - - Inserts an object at the specified index. - - The lookup index. - The object to be inserted. - - If the specified is greater than the - number of objects within the list. - - - - - Removes the first instance of the specified object found. - - The object to remove - - - - Returns if this list contains the specified - element. - - The element to look for. - - if this list contains the specified element. - - - - - Removes all objects from the list. - - - - - Returns the index of the first instance of the specified - found. - - The object to search for - - The index of the first instance found, or -1 if the element was not - found. - - - - - Adds the specified object to the end of the list. - - The object to add - The index that the object was added at. - - - - Adds all of the elements of the supplied - list to the end of this list. - - The list of objects to add. - - - - Checks whether the list can be modified. - - - If the list cannot be modified. - - - - - Validates the specified index. - - The lookup index. - - If the index is invalid. - - - - - Returns the node at the specified index. - - The lookup index. - The node at the specified index. - - If the specified is greater than the - number of objects within the list. - - - - - Returns the node (and index) of the first node that contains - the specified value. - - The value to search for. - - The node, or if not found. - - - - - Removes the specified node. - - The node to be removed. - - - - Copies the elements in this list to an array. - - -

- The type of array needs to be compatible with the objects in this - list, obviously. -

-
- - An array that will be the target of the copy operation. - - - The zero-based index where copying will start. - - - If the supplied is . - - - If the supplied is less than zero - or is greater than the length of . - - - If the supplied is of insufficient size. - -
- - - Gets an enumerator for the elements in the - . - - -

- Enumerators are fail fast. -

-
- - An over the elements - in the . - -
- - - Is list read only? - - - if the list is read only. - - - - - Returns the node at the specified index. - - -

- This is the indexer for the - class. -

-
- -
- - - Is the list a fixed size? - - - if the list is a fixed size list. - - - - - Returns if the list is synchronized across - threads. - - - - This implementation always returns . - -

- Note that enumeration is inherently not thread-safe. Use the - to lock the object during enumeration. -

-
-
- - - The number of objects within the list. - - - - - An object that can be used to synchronize this - to make it thread-safe. - - - An object that can be used to synchronize this - to make it thread-safe. - - - - - implementation that supports validating collections. - - -

- This validator will be valid only when all of the validators in the Validators - collection are valid for all of the objects in the specified collection. -

-

- You can specify if you want to validate all of the collection elements regardless of the errors, by - setting the ValidateAll property to true. -

-

- If you set the IncludeElementErrors property to true, - ValidationErrors collection will contain a union of all validation error messages - for the contained validators; - Otherwise it will contain only error messages that were set for this Validator. -

-
- Damjan Tomic - Aleksandar Seovic - $Id: CollectionValidator.cs,v 1.5 2008/02/05 20:40:26 aseovic Exp $ -
- - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The bool that determines if all elements of the collection should be evaluated. - regardless of the Errors - - The bool that determines whether Validate method should collect - all error messages returned by the item validators - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - The bool that determines if this all elements of the collection should be evaluated. - regardless of the Errors - - The bool that determines whether Validate method should collect - all error messages returned by the item validators - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - The bool that determines if this all elements of the collection should be evaluated. - regardless of the Errors - - The bool that determines whether Validate method should collect - all error messages returned by the item validators - - - - Validates the specified collection of objects. - If the IncludeElementErrors property was set to true, - collection will contain a union of all validation error messages - for the contained validators; - Otherwise it will contain only error messages that were set for this Validator. - - The collection to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Gets or sets the value that indicates whether to validate all elements of the collection - regardless of the errors. - - - - - Gets or sets the value that indicates whether to capture all the errors of the specific - elements of the collection - - - - - Gets or sets the expression that should be used to narrow validation context. - - The expression that should be used to narrow validation context. - - - - Use this class for obtaining instances for dynamic code generation. - - -

- The purpose of this class is to provide a simple abstraction for creating and managing dynamic assemblies. -

- - Using this factory you can't define several modules within a single dynamic assembly - only a simple one2one relation between assembly/module is used. - -
- -

The following excerpt from demonstrates usage:

- - public class DynamicProxyManager - { - public const string PROXY_ASSEMBLY_NAME = "Spring.Proxy"; - - public static TypeBuilder CreateTypeBuilder(string name, Type baseType) - { - // Generates type name - string typeName = String.Format("{0}.{1}_{2}", PROXY_ASSEMBLY_NAME, name, Guid.NewGuid().ToString("N")); - ModuleBuilder module = DynamicCodeManager.GetModuleBuilder(PROXY_ASSEMBLY_NAME); - return module.DefineType(typeName, PROXY_TYPE_ATTRIBUTES); - } - } - -
- Erich Eichinger - $Id: DynamicCodeManager.cs,v 1.6 2007/08/08 04:00:16 bbaia Exp $ - - - -
- - - prevent instantiation - - - - - Returns the for the dynamic module within the specified assembly. - - - If the assembly does not exist yet, it will be created.
- This factory caches any dynamic assembly it creates - calling GetModule() twice with - the same name will *not* create 2 distinct modules! -
- The assembly-name of the module to be returned - the that can be used to define new types within the specified assembly -
- - - Persists the specified dynamic assembly to the file-system - - the name of the dynamic assembly to persist - - Can only be called in DEBUG_DYNAMIC mode, per ConditionalAttribute rules. - - - - - Defines methods that dynamic field class has to implement. - - - - - Gets the value of the dynamic field for the specified target object. - - - Target object to get field value from. - - - A field value. - - - - - Gets the value of the dynamic field for the specified target object. - - - Target object to set field value on. - - - A new field value. - - - - - Safe wrapper for the dynamic field. - - - will attempt to use dynamic - field if possible, but it will fall back to standard - reflection if necessary. - - - - - Obtains cached fieldInfo or creates a new entry, if none is found. - - - - - Creates a new instance of the safe field wrapper. - - Field to wrap. - - - - Gets the value of the dynamic field for the specified target object. - - - Target object to get field value from. - - - A field value. - - - - - Gets the value of the dynamic field for the specified target object. - - - Target object to set field value on. - - - A new field value. - - - - - Holds cached Getter/Setter delegates for a Field - - - - - Factory class for dynamic fields. - - Aleksandar Seovic - $Id: DynamicField.cs,v 1.4 2008/05/16 10:02:39 oakinger Exp $ - - - - Creates dynamic field instance for the specified . - - Field info to create dynamic field for. - Dynamic field for the specified . - - - - Interface for registries that hold object definitions, i.e. - - and - - instances. - - -

- Typically implemented by object factories that work with the - - hierarchy internally. -

-
- Juergen Hoeller - Rick Evans (.NET) -
- - - Return the names of all objects defined in this registry. - - - The names of all objects defined in this registry, or an empty array - if none defined - - - - - Check if this registry contains a object definition with the given name. - - - The name of the object to look for. - - - True if this object factory contains an object definition with the - given name. - - - - - Returns the - - for the given object name. - - - The name of the object to find a definition for. - - - The for - the given name (never null). - - - If the object definition cannot be resolved. - - - In case of errors. - - - - - Register a new object definition with this registry. - Must support - - and . - - - The name of the object instance to register. - - - The definition of the object instance to register. - - -

- Must support - and - . -

-
- - If the object definition is invalid. - -
- - - Return the aliases for the given object name, if defined. - - the object name to check for aliases - - -

- Will ask the parent factory if the object cannot be found in this - factory instance. -

-
- - The aliases, or an empty array if none. - - - If there's no such object definition. - -
- - - Given a object name, create an alias. We typically use this method to - support names that are illegal within XML ids (used for object names). - - - The name of the object. - - - The alias that will behave the same as the object name. - - - If there is no object with the given name. - - - If the alias is already in use. - - - - - Return the number of objects defined in the registry. - - - The number of objects defined in the registry. - - - - - Exception that an object implementation is suggested to throw if its own - factory-aware initialization code fails. - thrown by object factory methods - themselves should simply be propagated as-is. - - -

- Note that non-factory-aware initialization methods like AfterPropertiesSet () - or a custom "init-method" can throw any exception. -

-
- Juergen Hoeller - Rick Evans (.NET) -
- - - Creates a new instance of the ObjectInitializationException class. - - - - - Creates a new instance of the ObjectInitializationException class. - - - A message about the exception. - - - - - Creates a new instance of the ObjectInitializationException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the ObjectInitializationException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Overrides default values in one or more object definitions. - - -

- Instances of this class override already existing values, and is - thus best suited to replacing defaults. If you need to replace - placeholder values, consider using the - - class instead. -

-

- In contrast to the - - class, the original object definition can have default - values or no values at all for such object properties. If an overriding - configuration file does not have an entry for a certain object property, - the default object value is left as is. Also note that it is not - immediately obvious to discern which object definitions will be mutated by - one or more - s - simply by looking at the object configuration. -

-

- Each line in a referenced configuration file is expected to take the - following form... -

- - - -

- The name.property key refers to the object name and the - property that is to be overridden; and the value is the overridding - value that will be inserted into the appropriate object definition's - named property. -

-

- Please note that in the case of multiple - s - that define different values for the same object definition value, the - last overridden value will win (due to the fact that the values - supplied by previous - s - will be overridden). -

-
- -

- The following XML context definition defines an object that has a number - of properties, all of which have default values... -

- - - - - - - - -

- What follows is a .NET config file snippet for the above example (assuming - the need to override one of the default values)... -

- - - - - - -
- Juergen Hoeller - Simon White (.NET) - $Id: PropertyOverrideConfigurer.cs,v 1.11 2007/10/10 16:31:39 bbaia Exp $ - - - -
- - - Apply the given properties to the supplied - . - - - The - used by the application context. - - The properties to apply. - - If an error occured. - - - - - Process the given key as 'name.property' entry. - - - The object factory containing the object definitions that are to be - processed. - - The key. - The value. - - If an error occurs. - - - If the property was not well formed (i.e. not in the format "name.property"). - - - - - Attribute that should be used to specify the default namespace - and schema location for a custom namespace parser. - - - If - - Aleksandar Seovic - $Id: NamespaceParserAttribute.cs,v 1.1 2007/08/08 00:34:06 bbaia Exp $ - - - - Creates a new instance of . - - - - - Gets or sets the default namespace for the configuration parser. - - - The default namespace for the configuration parser. - - - - - Gets or sets the default schema location for the configuration parser. - - - The default schema location for the configuration parser. - - - If the property is set, the will always resolve to an assembly-resource - and the set will be interpreted relative to this assembly. - - - - - Gets or sets a type from the assembly containing the schema - - - If this property is set, the will always resolve to an assembly-resource - and the will be interpreted relative to this assembly. - - - - - Resolves placeholder values in one or more object definitions - - - The placeholder syntax follows the NAnt style: ${...}. - Placeholders values are resolved against a list of - s. In case of multiple definitions - for the same property placeholder name, the first one in the - list is used. - Variable substitution is performed on simple property values, - lists, dictionaries, sets, constructor - values, object type name, and object names in - runtime object references ( - ). - Furthermore, placeholder values can also cross-reference other - placeholders, in the manner of the following example where the - rootPath property is cross-referenced by the subPath - property. - - - - - - - - - - If a configurer cannot resolve a placeholder, and the value of the - - property is currently set to , an - - will be thrown. - - Mark Pollack - $Id: VariablePlaceholderConfigurer.cs,v 1.2 2007/08/02 22:18:32 markpollack Exp $ - - - - Modify the application context's internal object factory after its - standard initialization. - - The object factory used by the application context. - -

- All object definitions will have been loaded, but no objects will have - been instantiated yet. This allows for overriding or adding properties - even to eager-initializing objects. -

-
- - In case of errors. - -
- - - Apply the property replacement using the specified s for all - object in the supplied - . - - - The - used by the application context. - - - If an error occured. - - - - - Sets the list of s that will be used to resolve placeholder names. - - A list of s. - - - - Sets that will be used to resolve placeholder names. - - A instance. - - - - Indicates whether unresolved placeholders should be ignored. - - - - - Return the order value of this object, where a higher value means greater in - terms of sorting. - - The order value. - - - - - Replaces input strings with a given default value, - if they are null or contain whitespaces only, - - Erich Eichinger - $Id: HasTextFilteringFormatter.cs,v 1.1 2008/03/20 13:19:47 oakinger Exp $ - - - - Provides base functionality for filtering values before they actually get parsed/formatted. - - Erich Eichinger - $Id: FilteringFormatter.cs,v 1.1 2008/03/20 13:19:47 oakinger Exp $ - - - - Creates a new instance of this FilteringFormatter. - - an optional underlying formatter - - If no underlying formatter is specified, the values - get passed through "as-is" after being filtered - - - - - Parses the specified value. - - The value to parse. - Parsed . - - - - Formats the specified value. - - The value to format. - Formatted . - - - - Allows to rewrite a value before it gets parsed by the underlying formatter - - - - - Allows to change a value before it gets formatted by the underlying formatter - - - - - Creates a new instance of this HasTextFilteringFormatter using null as default value. - - an optional underlying formatter - - If no underlying formatter is specified, the values - get passed through "as-is" after being filtered - - - - - Creates a new instance of this HasTextFilteringFormatter. - - the default value to be returned, if input text doesn't contain text - an optional underlying formatter - - If no underlying formatter is specified, the values - get passed through "as-is" after being filtered - - - - - If value contains no text, it will be replaced by a defaultValue. - - - - - Represents arithmetic subtraction operator. - - Aleksandar Seovic - $Id: OpSUBTRACT.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic subtraction operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical inequality operator. - - Aleksandar Seovic - $Id: OpNotEqual.cs,v 1.11 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical inequality operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents VB-style logical LIKE operator. - - Aleksandar Seovic - $Id: OpLike.cs,v 1.5 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical LIKE operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - - true if the left operand matches the right operand, false otherwise. - - - - - Represents parsed method node in the navigation expression. - - Aleksandar Seovic - $Id: ArrayConstructorNode.cs,v 1.11 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Creates new instance of the type defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the average aggregator. - - Aleksandar Seovic - $Id: AverageAggregator.cs,v 1.2 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns the average of the numeric values in the source collection. - - - The source collection to process. - - - Ignored. - - - The average of the numeric values in the source collection. - - - - - Enumeration that defines possible values for data binding direction. - - Aleksandar Seovic - $Id: BindingDirection.cs,v 1.2 2006/04/09 07:18:39 markpollack Exp $ - - - - Specifies that value from the control property should be bound to a data model. - - - - - Specifies that value from the data model should be bound to control property. - - - - - Specifies that binding is bidirectional. - - - - - Provides additional data for the PropertyChanged event. - - -

- Provides some additional properties over and above the name of the - property that has changed (which is inherited from the - base class). - This allows calling code to determine whether or not a property has - actually changed (i.e. a PropertyChanged event may have been - raised, but the value itself may be equivalent). -

-
- -
- - - Create a new instance of the - class. - - - The name of the property that was changed. - The old value of the property. - the new value of the property. - - - - Get the old value for the property. - - - - - - Get the new value of the property. - - - - - - Thrown in response to a failed attempt to write a property. - - Mark Pollack (.NET) - $Id: NotWritablePropertyException.cs,v 1.1 2007/07/31 00:08:42 markpollack Exp $ - - - - Creates a new instance of the NotWritablePropertyException class. - - - - - Creates a new instance of the NotWritablePropertyException class. - - - A message about the exception. - - - - - Creates a new instance of the NotWritablePropertyException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the NotWritablePropertyException class. - - - The that is (or rather was) the source of the - offending property. - - - The name of the offending property. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the NotWritablePropertyException class - summarizing what property was not writable. - - - The name of the property that is not writable. - - - The in which the property is not writable. - - - - - Creates new NotWritablePropertyException with a root cause. - - - The name of the property that is not writable. - - - The in which the property is not writable. - - - The root cause indicating why the property was not writable. - - - - - Creates a new instance of the NotWritablePropertyException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Generic ApplicationContext implementation that holds a single internal - instance and does not - assume a specific object definition format. - - - Implements the interface in order - to allow for aplying any object definition readers to it. - Typical usage is to register a variety of object definitions via the - interface and then call - to initialize those - objects with application context semantics (handling - , auto-detecting - ObjectFactoryPostProcessors, etc). - - In contrast to other IApplicationContext implementations that create a new internal - IObjectFactory instance for each refresh, the internal IObjectFactory of this context - is available right from the start, to be able to register object definitions on it. - may only be called once - Usage examples - - GenericApplicationContext ctx = new GenericApplicationContext(); - - - - Mark Pollack - $Id: GenericApplicationContext.cs,v 1.5 2008/02/17 13:34:44 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if set to true names in the context are case sensitive. - - - - Initializes a new instance of the class. - - The object factory instance to use for this context. - - - - Initializes a new instance of the class. - - The parent application context. - - - - Initializes a new instance of the class. - - The name of the application context. - if set to true names in the context are case sensitive. - The parent application context. - - - - Initializes a new instance of the class. - - The object factory to use for this context - The parent applicaiton context. - - - - Do nothing operation. We hold a single internal ObjectFactory and rely on callers - to register objects throug our public methods (or the ObjectFactory's). - - - In the case of errors encountered while refreshing the object factory. - - - - - Returns the - - for the given object name. - - The name of the object to find a definition for. - - The for - the given name (never null). - - - If the object definition cannot be resolved. - - - In case of errors. - - - - - Register a new object definition with this registry. - Must support - - and . - - The name of the object instance to register. - The definition of the object instance to register. - -

- Must support - and - . -

-
- - If the object definition is invalid. - -
- - - Given a object name, create an alias. We typically use this method to - support names that are illegal within XML ids (used for object names). - - The name of the object. - The alias that will behave the same as the object name. - - If there is no object with the given name. - - - If the alias is already in use. - - - - - Gets the parent context, or if there is no - parent context. Set the parent of this application context also setting - the parent of the interanl ObjectFactory accordingly. - - The parent context - - The parent context, or if there is no - parent. - - - - - - Return the internal object factory of this application context. - - - - - - Gets the underlying object factory of this context, available for - registering object definitions. - - You need to call Refresh to initialize the - objects factory and its contained objects with application context - semantics (autodecting IObjectFactoryPostProcessors, etc). - The internal object factory (as DefaultListableObjectFactory). - - - - Implements an based on a sorted - tree. - - -

- This gives good performance for operations on very large data-sets, - though not as good - asymptotically - as a - . However, iteration occurs - in order. -

-

- Elements that you put into this type of collection must implement - , and they must actually be comparable. - You can't mix and - values, for example. -

-

- This implementation does - not support elements that are . -

-
- - $Id: SortedSet.cs,v 1.6 2007/03/16 04:01:29 aseovic Exp $ -
- - - Creates a new set instance based on a sorted tree. - - - - - Creates a new set instance based on a sorted tree and initializes - it based on a collection of elements. - - - A collection of elements that defines the initial set contents. - - - - - This attribute should be used to mark method that should - invalidate one or more cache items when invoked. - - -

- This attribute allows application developers to specify that some - cache items should be evicted from cache when the method is invoked, - but it will not do any eviction by itself. -

-

- In order to actually evict cache items, an application developer - must apply a Spring.Aspects.Cache.InvalidateCacheAdvice to - all of the members that have this attribute defined. -

-
- Aleksandar Seovic - $Id: InvalidateCacheAttribute.cs,v 1.2 2007/04/01 15:04:39 bbaia Exp $ -
- - - Creates an attribute instance. - - - - - Creates an attribute instance. - - - The name of the cache to use. - - - - - Gets or sets the name of the cache to use. - - - The name of the cache to use. - - - - - Gets or sets a SpEL expression that should be evaluated in order - to determine the keys for the items that should be evicted. - - - An expression string that should be evaluated in order - to determine the keys for the items that should be evicted. - - - - - Gets an expression instance that should be evaluated in order - to determine the keys for the items that should be evicted. - - - An expression instance that should be evaluated in order - to determine the keys for the items that should be evicted. - - - - - Gets or sets a SpEL expression that should be evaluated in order - to determine whether items should be evicted. - - - An expression string that should be evaluated in order to determine - whether items should be evicted. - - - - - Gets an expression instance that should be evaluated in order - to determine whether items should be evicted. - - - An expression instance that should be evaluated in order to determine - whether items should be evicted. - - - - - Implementation of that allows you - to define Spring.NET expressions that should be evaluated after - validation. - - Aleksandar Seovic - $Id: ExpressionAction.cs,v 1.6 2008/02/05 20:40:25 aseovic Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Expression to execute when validator is valid. - Expression to execute when validator is not valid. - - - - Initializes a new instance of the class. - - Expression to execute when validator is valid. - Expression to execute when validator is not valid. - - - - Called when associated validator is valid. - - Validation context. - Additional context parameters. - Validation errors container. - - - - Called when associated validator is invalid. - - Validation context. - Additional context parameters. - Validation errors container. - - - - Gets or sets the expression to execute when validator is valid. - - The expression to execute when validator is valid. - - - - Gets or sets the expression to execute when validator is not valid. - - The expression to execute when validator is not valid. - - - - Base class for method builders that contains common functionalities. - - Bruno Baia - $Id: AbstractProxyMethodBuilder.cs,v 1.7 2008/02/06 18:26:42 bbaia Exp $ - - - - The type builder to use. - - - - - The implementation to use. - - - - - Indicates whether interfaces should be implemented explicitly. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - - - Dynamically builds proxy method. - - The method to proxy. - - The interface definition of the method, if applicable. - - - The for the proxy method. - - - - - Generates the IL instructions that pushes - the proxy instance on stack. - - The IL generator to use. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Defines proxy method for the target object. - - The method to proxy. - - The interface definition of the method, if applicable. - - - if the supplied is to be - implemented explicitly; otherwise . - - - The for the proxy method. - - - - - Defines method parameters based on proxied method metadata. - - - The to use. - - The method to proxy. - - - - Defines generic method parameters based on proxied method metadata. - - - The to use. - - The method to proxy. - - - - Generates the proxy method. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Calls target method directly. - - The IL generator to use. - - The interface definition of the method, if applicable. - - - - - Calls base method directly. - - The IL generator to use. - The method to proxy. - - - - Replaces a raw reference with a reference to a proxy. - - -

- If the target object returns reference to itself -- 'this' -- - we need to treat it as a special case and return a reference - to a proxy object instead. -

-
- The IL generator to use. - The location of the return value. -
- - - Resolves a single element value of a managed collection. - - -

- If the does not need to be resolved or - converted to an appropriate , the - will be returned as-is. -

-
- - The name of the top level object that is having the value of one of it's - collection properties resolved. - - - The definition of the named top level object. - - - The name of the property the value of which is being resolved. - - - That element of a managed collection that may need to be resolved - to a concrete value. - - A fully resolved element. -
- - - An - implementation that delegates to an - that is - obtained as the result of a lookup in an associated IoC container. - - -

- This class is reserved for internal use within the framework; it is - not intended to be used by application developers using Spring.NET. -

-
- Rick Evans - $Id: DelegatingMethodReplacer.cs,v 1.3 2007/07/30 17:52:22 markpollack Exp $ -
- - - Creates a new instance of the - - class. - - - The object definition that is the target of the method replacement. - - - The enclosing IoC container with which the above - is associated. - - - If either of the supplied arguments is . - - - - - Reimplements the supplied by delegating to - another - looked up in an enclosing IoC container. - - - The instance whose is to be - (re)implemented. - - - The method that is to be (re)implemented. - - The target method's arguments. - - The result of the delegated call to the looked up - . - - - - - Central interface for factories that can create - - instances. - - -

- Allows for replaceable object definition factories using the Strategy - pattern. -

-
- Aleksandar Seovic - $Id: IObjectDefinitionFactory.cs,v 1.10 2007/07/30 18:00:01 markpollack Exp $ -
- - - Factory style method for getting concrete - - instances. - - - The FullName of the of the defined object. - - The name of the parent object definition (if any). - - The against which any class names - will be resolved into instances. It can be null to register the - object class just by name. - - - An - - instance. - - - - - Sateful class used to parse XML object definitions. - - Not all parsing code has been refactored into this class. - Rob Harrop - Juergen Hoeller - Rod Johnson - Mark Pollack (.NET) - $Id: ObjectDefinitionParserHelper.cs,v 1.7 2007/08/07 22:05:20 markpollack Exp $ - - - - The shared instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - The reader context. - - - - Initialize the default lazy-init, dependency check, and autowire settings. - - The root element - - - - Determines whether the Spring object namespace is equal to the the specified namespace URI. - - The namespace URI. - - true if is the default Spring namespace; otherwise, false. - - - - - Decorates the object definition if required. - - The element. - The holder. - - - - - Determines whether the string represents a 'true' boolean value. - - The value. - - true if is 'true' string value; otherwise, false. - - - - - Convenience method to create a builder for a root object definition. - - Name of the object type. - A builder for a root object definition. - - - - Convenience method to create a builder for a root object definition. - - Type of the object. - a builder for a root object definition - - - - Gets the defaults definition object, or null if the - default have not yet been initialized. - - The defaults. - - - - Gets the reader context. - - The reader context. - - - - Provides methods for type-safe accessing s. - - Erich Eichinger - $Id: VariableAccessor.cs,v 1.2 2007/08/27 14:49:42 oakinger Exp $ - - - - Initialize a new instance of an - - The underlying to read values from. - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The expected format of the variable's value - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The expected format of the variable's value - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - A that contains the value of the specified variable - or , if returns null. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - A that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns an of type that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - An of type that contains the value of the specified variable - or , if returns null. - - - - - Returns an of type that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns null. - - If false, suppresses exceptions if the result - of cannot be parsed - and returns instead. - - An of type that contains the value of the specified variable - or , if cannot be parsed. - - - - - Returns a that contains the value of the specified variable. - - The name of the variable to be read. - The value to be returned if returns or . - - A that contains the value of the specified variable - or , if returns null. - - - - - Implementation of that can be used to - format and parse currency values. - - - - CurrencyFormatter uses currency related properties of the - to format and parse currency values. - - - If you use one of the constructors that accept culture as a parameter - to create an instance of CurrencyFormatter, default NumberFormatInfo - for the specified culture will be used. - - - You can also use properties exposed by the CurrencyFormatter in order - to override some of the default currency formatting parameters. - - - Aleksandar Seovic - $Id: CurrencyFormatter.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Initializes a new instance of the class - using default for the current thread's culture. - - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture name. - - - - Initializes a new instance of the class - using default for the specified culture. - - The culture. - - - - Initializes a new instance of the class - using specified . - - - The instance that defines how - currency values are formatted. - - - - - Formats the specified currency value. - - The value to format. - Formatted currency . - If is null. - If is not a number. - - - - Parses the specified currency value. - - The currency value to parse. - Parsed currency value as a . - - - - Gets or sets the currency decimal digits. - - The currency decimal digits. - - - - - Gets or sets the currency decimal separator. - - The currency decimal separator. - - - - - Gets or sets the currency group sizes. - - The currency group sizes. - - - - - Gets or sets the currency group separator. - - The currency group separator. - - - - - Gets or sets the currency symbol. - - The currency symbol. - - - - - Gets or sets the currency negative pattern. - - The currency negative pattern. - - - - - Gets or sets the currency positive pattern. - - The currency positive pattern. - - - - - Represents logical "greater than" operator. - - Aleksandar Seovic - $Id: OpGreater.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical "greater than" operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed null literal node. - - Aleksandar Seovic - $Id: NullLiteralNode.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the null literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed map entry node. - - Aleksandar Seovic - $Id: MapEntryNode.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Creates a new instance of . - - - - - Create a new instance from SerializationInfo - - - - - Creates new instance of the map entry defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - implementation that allows - data binding between collections that implement - interface. - - Aleksandar Seovic - $Id: ListBinding.cs,v 1.2 2008/02/05 20:40:25 aseovic Exp $ - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Converter for instances. - - Juergen Hoeller - Mark Pollack (.NET) - - - - Creates a new instance of the - class. - - - - - Returns whether this converter can convert an object of one - to a - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Convert from a string value to a instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful. - - - - - Converts string representation of a credential for Web client authentication - into an instance of . - - -

- Find below some examples of the XML formatted strings that this - converter will sucessfully convert. -

- - - - - - -
- Bruno Baia - $Id: CredentialConverter.cs,v 1.2 2007/12/07 15:14:40 bbaia Exp $ -
- - - Can we convert from the sourcetype - to a instance ? - - -

- Currently only supports conversion from a instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - if the conversion is possible. -
- - - Convert from a value to an - instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A instance if successful. - - - - - Comparator implementation for objects, sorting by - order value ascending (resp. by priority descending). - - -

- Non- objects are treated as greatest order values, - thus ending up at the end of a list, in arbitrary order (just like same order values of - objects). -

-
- Juergen Hoeller - Aleksandar Seovic (.Net) - $Id: OrderComparator.cs,v 1.5 2006/04/09 07:18:38 markpollack Exp $ -
- - - Compares two objects and returns a value indicating whether one is less than, - equal to or greater than the other. - - -

- Uses direct evaluation instead of - to avoid unnecessary boxing. -

-
- The first object to compare. - The second object to compare. - - -1 if first object is less then second, 1 if it is greater, or 0 if they are equal. - -
- - - Used when retrieving information from the standard .NET configuration - files (App.config / Web.config). - - -

- If created with the name of a configuration section, then all methods - aside from the description return , - , or throw an exception. If created with an - , then the - property - will return a corresponding to parse. -

-
- Mark Pollack - Rick Evans - $Id: ConfigSectionResource.cs,v 1.27 2007/12/05 00:57:31 bbaia Exp $ -
- - - Creates new instance of the - class. - - - The actual XML configuration section. - - - If the supplied is . - - - - - Creates new instance of the - class. - - - The name of the configuration section. - - - If the supplied is - or contains only whitespace character(s). - - - - - Returns the handle for this resource. - - -

- This implementation always returns . -

-
- - . - - -
- - - Returns a handle for this resource. - - -

- This implementation always returns . -

-
- - . - - -
- - - Returns a description for this resource (the name of the - configuration section in this case). - - - A description for this resource. - - - - - - Does this resource actually exist in physical form? - - -

- This implementation always returns . -

-
- - - - - -
- - - Return an for this resource. - - - An . - - - If the stream could not be opened. - - - - - - Exposes the actual for the - configuration section. - - -

- Introduced to accomodate line info tracking during parsing. -

-
-
- - - that allows concrete registration of - objects and messages in code, rather than from external configuration sources. - - -

- Mainly useful for testing. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: StaticApplicationContext.cs,v 1.9 2007/07/10 05:48:03 markpollack Exp $ -
- - - Creates a new instance of the StaticApplicationContext class. - - - - - Creates a new instance of the StaticApplicationContext class. - - The parent application context. - - - - Do nothing: we rely on callers to update our public methods. - - - - - Register a singleton object with the default object factory. - - The name of the object. - The of the object. - The property values for the singleton instance. - - - - Registers a prototype object with the default object factory. - - The name of the prototype object. - The of the prototype object. - The property values for the prototype instance. - - - - Associate the given message with the given code. - - The lookup code. - - The that the message should be found within. - - The message associated with the lookup code. - - - - implementation that supports grouping of validators. - - -

- This validator will be valid when one and only one of the validators in the Validators collection are valid -

-

- ValidationErrors property will return a union of all validation error messages - for the contained validators, but only if this validator is not valid (meaning, when none - of the contained validators are valid). -

-
- Aleksandar Seovic - $Id: ExclusiveValidatorGroup.cs,v 1.8 2008/02/05 20:40:26 aseovic Exp $ -
- - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Initializes a new instance of the class. - - The expression that determines if this validator should be evaluated. - - - - Validates the specified object. - - The object to validate. - Additional context parameters. - instance to add error messages to. - True if validation was successful, False otherwise. - - - - Implementation of the custom configuration parser for validator definitions. - - Aleksandar Seovic - $Id: ValidationNamespaceParser.cs,v 1.2 2007/08/08 00:34:17 bbaia Exp $ - - - - Initializes a new instance of the class. - - - - - Parse the specified element and register any resulting - IObjectDefinitions with the IObjectDefinitionRegistry that is - embedded in the supplied ParserContext. - - The element to be parsed into one or more IObjectDefinitions - The object encapsulating the current state of the parsing - process. - - The primary IObjectDefinition (can be null as explained above) - - - Implementations should return the primary IObjectDefinition - that results from the parse phase if they wish to used nested - inside (for example) a <property> tag. - Implementations may return null if they will not - be used in a nested scenario. - - - - - - Parses the validator definition. - - Validator's identifier. - The element to parse. - The parser helper. - Validator object definition. - - - - Parses and potentially registers a validator. - - - Only validators that have id attribute specified are registered - as separate object definitions within application context. - - Validator XML element. - The parser helper. - Validator object definition. - - - - Gets the name of the object type for the specified element. - - The element. - The name of the object type. - - - - Creates an error message action based on the specified message element. - - The message element. - The parser helper. - The error message action definition. - - - - Creates a generic action based on the specified element. - - The action definition element. - The parser helper. - Generic validation action definition. - - - - Creates object definition for the validator reference. - - The action definition element. - The parser helper. - Generic validation action definition. - - - - Implementation of IProxyMethodBuilder that delegates method calls to target object. - - Bruno Baia - $Id: TargetProxyMethodBuilder.cs,v 1.1 2006/08/10 18:45:55 bbaia Exp $ - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - - - Generates the proxy method. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - This attribute can be used to mark interfaces that should not be proxied - - Bruno Baia - $Id: ProxyIgnoreAttribute.cs,v 1.1 2006/11/16 02:30:50 bbaia Exp $ - - - - Creates a new instance of the - class. - - - - - Describes an event handler for a static class method. - - Rick Evans - $Id: StaticEventHandlerValue.cs,v 1.5 2006/04/09 07:19:00 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The object (possibly unresolved) that is exposing the event. - - - The name of the method on the handler that is going to handle the event. - - - - - Gets the event handler. - - - The instance that is registering for the event notification. - - - Event metadata about the event. - - - The event handler. - - - - - Simple factory for shared instances. - - Juergen Hoeller - Simon White (.NET) - $Id: ListFactoryObject.cs,v 1.8 2007/07/31 03:47:39 markpollack Exp $ - - - - Constructs a new instance of the target dictionary. - - The new instance. - - - - Set the source . - - -

- This value will be used to populate the - returned by this factory. -

-
-
- - - Set the of the - implementation to use. - - -

- The default is the . -

-
-
- - - The of objects created by this factory. - - - Always returns the . - - - - - Holder for constructor argument values for an object. - - -

- Supports values for a specific index or parameter name (case - insensitive) in the constructor argument list, and generic matches by - . -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: ConstructorArgumentValues.cs,v 1.16 2008/03/03 09:29:07 bbaia Exp $ - -
- - - Can be used as an argument filler for the - - overload when one is not looking for an argument by index. - - - - - Creates a new instance of the - - class. - - - - - Creates a new instance of the - - class. - - - The - to be used to populate this instance. - - - - - Copy all given argument values into this object. - - - The - to be used to populate this instance. - - - - - Add argument value for the given index in the constructor argument list. - - - The index in the constructor argument list. - - - The argument value. - - - - - Add argument value for the given index in the constructor argument list. - - The index in the constructor argument list. - The argument value. - - The of the argument - . - - - - - Add argument value for the given name in the constructor argument list. - - The name in the constructor argument list. - The argument value. - - If the supplied is - or is composed wholly of whitespace. - - - - - Get argument value for the given index in the constructor argument list. - - The index in the constructor argument list. - - The required of the argument. - - - The - - for the argument, or if none set. - - - - - Get argument value for the given name in the constructor argument list. - - The name in the constructor argument list. - - The - - for the argument, or if none set. - - - - - Does this set of constructor arguments contain a named argument matching the - supplied name? - - - - The comparison is performed in a case-insensitive fashion. - - - The named argument to look up. - - if this set of constructor arguments - contains a named argument matching the supplied - name. - - - - - Add generic argument value to be matched by type. - - - The argument value. - - - - - Add generic argument value to be matched by type. - - The argument value. - - The of the argument - . - - - - - Look for a generic argument value that matches the given - . - - - The to match. - - - The - - for the argument, or if none set. - - - - - Look for a generic argument value that matches the given - . - - - The to match. - - - A of - - objects that have already been used in the current resolution - process and should therefore not be returned again; this allows one - to return the next generic argument match in the case of multiple - generic argument values of the same type. - - - The - - for the argument, or if none set. - - - - - Look for an argument value that either corresponds to the given index - in the constructor argument list or generically matches by - . - - - The index in the constructor argument list. - - - The to match. - - - The - - for the argument, or if none is set. - - - - - Look for an argument value that either corresponds to the given index - in the constructor argument list or generically matches by - . - - - The index in the constructor argument list. - - - The to match. - - - A of - - objects that have already been used in the current resolution - process and should therefore not be returned again; this allows one - to return the next generic argument match in the case of multiple - generic argument values of the same type. - - - The - - for the argument, or if none is set. - - - - - Look for an argument value that either corresponds to the given index - in the constructor argument list or generically matches by - . - - - The name of the argument in the constructor argument list. May be - , in which case generic matching by - is assumed. - - - The to match. - - - The - - for the argument, or if none is set. - - - - - Look for an argument value that either corresponds to the given index - in the constructor argument list or generically matches by - . - - - The name of the argument in the constructor argument list. May be - , in which case generic matching by - is assumed. - - - The to match. - - - A of - - objects that have already been used in the current resolution - process and should therefore not be returned again; this allows one - to return the next generic argument match in the case of multiple - generic argument values of the same type. - - - The - - for the argument, or if none is set. - - - - - Look for an argument value that either corresponds to the given index - in the constructor argument list, or to the named argument, or - generically matches by . - - - The index of the argument in the constructor argument list. May be - negative, to denote the fact that we are not looking for an - argument by index (see - . - - - The name of the argument in the constructor argument list. May be - . - - - The to match. - - - A of - - objects that have already been used in the current resolution - process and should therefore not be returned again; this allows one - to return the next generic argument match in the case of multiple - generic argument values of the same type. - - - The - - for the argument, or if none is set. - - - - - Return the map of indexed argument values. - - - An with - indices as keys and - s - as values. - - - - - Return the map of named argument values. - - - An with - named arguments as keys and - s - as values. - - - - - Return the set of generic argument values. - - - A of - s. - - - - - Return the number of arguments held in this instance. - - - - - Returns true if this holder does not contain any argument values, - neither indexed ones nor generic ones. - - - - - Holder for a constructor argument value, with an optional - attribute indicating the target - of the actual constructor argument. - - - - - Creates a new instance of the ValueHolder class. - - - The value of the constructor argument. - - - - - Creates a new instance of the ValueHolder class. - - - The value of the constructor argument. - - - The of the argument - . Can also be one of the common - aliases (int, bool, - float, etc). - - - - - A that represents the current - . - - - A that represents the current - . - - - - - Gets and sets the value for the constructor argument. - - -

- Only necessary for manipulating a registered value, for example in - s. -

-
-
- - - Return the of the constructor - argument. - - - - - Creates an instance - populated with the object definitions supplied in the configuration - section. - - -

- Applications will typically want to use an - , and instantiate it - via the use of the - class (which is similar in functionality to this class). This class is - provided for those times when only an - is required. -

- Creates an instance of the class XmlObjectFactory -
- -

- -

-
- Mark Pollack (.NET) - $Id: ObjectFactorySectionHandler.cs,v 1.3 2007/08/08 17:47:13 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a - instance populated with the object definitions supplied in the - configuration section. - - - The configuration settings in a corresponding parent configuration - section. - - - The configuration context when called from the ASP.NET - configuration system. Otherwise, this parameter is reserved and - is . - - - The for the section. - - - A instance - populated with the object definitions supplied in the configuration - section. - - - - - Immutable placeholder class used for the value of a - object when it's a reference - to a Spring that should be evaluated at runtime. - - Aleksandar Seovic - $Id: ExpressionHolder.cs,v 1.5 2007/08/21 19:28:33 markpollack Exp $ - - - - Creates a new instance of the - - class. - - The expression to resolve. - - - - Returns a string representation of this instance. - - A string representation of this instance. - - - - Gets or sets the expression string. Setting the expression string will cause - the expression to be parsed. - - The expression string. - - - - Return the expression. - - - - - Properties for this expression node. - - - - - implementation - that simply returns the - value of the - - property (if said property value is not ), or the - of the current thread if it is - . - - Aleksandar Seovic - $Id: DefaultCultureResolver.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Returns the default . - - -

- It tries to get the - from the value of the - - property and falls back to the of the - current thread if the - - is . -

-
- - The default - -
- - - Resolves the - from some context. - - -

- The 'context' in this implementation is the - value of the - - property (if said property value is not ), or the - of the current thread if it is - . -

-
- - The that should be used - by the caller. - -
- - - Sets the . - - - The new or - to clear the current . - - - - - - - The default . - - - The default . - - - - - Resource cache implementation that doesn't cache resources. - - Aleksandar Seovic - $Id: NullResourceCache.cs,v 1.2 2006/04/09 07:18:47 markpollack Exp $ - - - - Gets the list of resources from cache. - - Cache key to use for lookup. - Always returns null. - - - - Puts the list of resources in the cache. - - Cache key to use for the specified resources. - A list of resources to cache. - - - - Represents logical AND operator. - - Aleksandar Seovic - $Id: OpAND.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical AND operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical IS operator. - - Aleksandar Seovic - $Id: OpIs.cs,v 1.4 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical IS operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - - true if the left operand is contained within the right operand, false otherwise. - - - - - adapter implementation for a - . - - -

- Should only be used if no other - implementation is applicable. -

-

- In contrast to other - implementations, this is an adapter for an already opened - resource - the - therefore always returns . Do not use this class - if you need to keep the resource descriptor somewhere, or if you need - to read a stream multiple times. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: InputStreamResource.cs,v 1.10 2007/12/06 22:08:47 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - The input to use. - - - Where the input comes from. - - - If the supplied is - . - - - - - The input to use. - - - If the underlying has already - been read. - - - - - Returns a description for this resource. - - - A description for this resource. - - - - - - This implementation always returns true - - - - - This implemementation always returns true - - - - - An implementation for - resources stored within assemblies. - - -

- This implementation expects any resource name passed to the - constructor to adhere to the following format: -

-

- assembly://assemblyName/namespace/resourceName -

-
- Aleksandar Seovic (.NET) - Federico Spinazzi (.NET) - $Id: AssemblyResource.cs,v 1.16 2007/08/08 17:46:55 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - The name of the assembly resource. - - - If the supplied did not conform - to the expected format. - - - If the assembly specified in the supplied - was loaded twice with two - different evidences. - - - If the assembly specified in the supplied - could not be found. - - - If the caller does not have the required permission to load - the assembly specified in the supplied - . - - - - - - Does the supplied relative ? - - - The name of the resource to test. - - - if resource name is relative; - otherwise . - - - - - Return an for this resource. - - - An . - - - If the stream could not be opened. - - - If the caller does not have the required permission to load - the underlying assembly's manifest. - - - - - - - Does the embedded resource specified in the value passed to the - constructor exist? - - - if this resource actually exists in physical - form (for example on a filesystem). - - - - - - - - Does this support relative - resource retrieval? - - -

- This implementation does support relative resource retrieval, and - so will always return . -

-
- - if this - supports relative resource - retrieval. - - -
- - - Gets the root location of the resource (the assembly name in this - case). - - - The root location of the resource. - - - - - - Gets the current path of the resource (the namespace in which the - target resource was embedded in this case). - - - The current path of the resource. - - - - - - Gets those characters that are valid path separators for the - resource type. - - - Those characters that are valid path separators for the resource - type. - - - - - - Returns a description for this resource. - - - A description for this resource. - - - - - -

Base class for counting semaphores based on Semaphore implementation - from Doug Lea.

-
- - -

Conceptually, a semaphore - maintains a set of permits. Each acquire() blocks if - necessary until a permit is available, and then takes it.

- -

Each release adds a permit. However, no actual permit objects are used; - the Semaphore just keeps a count of the number available - and acts accordingly.

- -

A semaphore initialized to 1 can serve as a mutual exclusion lock.

- - Used for implementation of a -
- Doug Lea - Federico Spinazzi (.Net) - $Id: Semaphore.cs,v 1.10 2006/09/15 21:30:09 markpollack Exp $ -
- - - current number of available permits - - - - -

Create a Semaphore with the given initial number of permits.

-

Using a seed of 1 makes the semaphore act as a mutual - exclusion lock.

- -

Negative seeds are also allowed, - in which case no acquires will proceed until the number of - releases has pushed the number of permits past 0.

-
-
- - - Release a permit - - - - - Acquire a permit - - - - - Wait at most msecs millisconds for a permit - - number of ms to wait - true if aquired - - - Release N permits. release(n) is - equivalent in effect to: -
-            for (int i = 0; i < n; ++i) release();
-            
- But may be more efficient in some semaphore implementations. -
- if n is negative. - - -
- - Return the current number of available permits. - Returns an accurate, but possibly unstable value, - that may change immediately after returning. - - - - - An abstraction to safely store "ThreadStatic" data. - - - By default, is used to store thread-specific data. - You may switch the storage strategy by calling .

- NOTE: Access to the underlying storage is not synchronized for performance reasons. - You should call only once at application startup! - - Erich Eichinger - $Id: LogicalThreadContext.cs,v 1.3 2007/07/03 22:32:04 markpollack Exp $ - - -

- Holds the current strategy. - - - Access to this variable is not synchronized on purpose for performance reasons. - Setting a different strategy should happen only once - at application startup. - -
- - - Set the new strategy. - - - - - Retrieves an object with the specified name. - - The name of the item. - The object in the context associated with the specified name or null if no object has been stored previously - - - - Stores a given object and associates it with the specified name. - - The name with which to associate the new item. - The object to store in the current thread's context. - - - - Empties a data slot with the specified name. - - The name of the data slot to empty. - - - - Provides a resolution mechanism for configuration parsers. - - -

- The uses this registry - class to find the parser handling a specific namespace. -

-
- Aleksandar Seovic - $Id: NamespaceParserRegistry.cs,v 1.7 2007/09/17 01:12:48 bbaia Exp $ -
- - - Name of the .Net config section that contains definitions - for custom config parsers. - - - - - Creates a new instance of the NamespaceParserRegistry class. - - - - - Returns a parser for the given namespace. - - - The namespace for which to lookup the parser implementation. - - - A parser for a given , or - if no parser was found. - - - - - Returns a schema collection containing validation schemas for all registered parsers. - - - A schema collection containing validation schemas for all registered parsers. - - - - - Pegisters parser, using default namespace and schema location - as defined by the . - - - The of the parser that will be activated - when an element in its default namespace is encountered. - - - If is . - - - - - Associates a parser with a namespace. - - - - Parsers registered with the same as that - of a parser that has previously been registered will overwrite the existing - parser. - - - - The of the parser that will be activated - when the attendant is - encountered. - - - The namespace with which to associate instance of the parser. - - - The location of the XML schema that should be used for validation - of the XML elements that belong to the specified namespace - (can be any valid Spring.NET resource URI). - - - If the is not a - that implements the - interface. - - - If is . - - - - - Pegisters parser, using default namespace and schema location - as defined by the . - - - The parser instance. - - - If is . - - - - - Associates a parser with a namespace. - - - - Parsers registered with the same as that - of a parser that has previously been registered will overwrite the existing - parser. - - - - The namespace with which to associate instance of the parser. - - - The parser instance. - - - The location of the XML schema that should be used for validation - of the XML elements that belong to the specified namespace - (can be any valid Spring.NET resource URI). - - - If is , or if - is not specified and parser class - does not have default value defined using . - - - - - Returns default values for the parser namespace and schema location as - defined by the . - - - A parser instance. - - - A instance containing - default values for the parser namsepace and schema location - - - - - Convenience extension of - - that reads object definitions from an XML document or element. - - -

- Delegates to - - underneath; effectively equivalent to using a - for a - . -

- - objects doesn't need to be the root element of - the XML document: this class will parse all object definition elements in the - XML stream. - -

- This class registers each object definition with the - - superclass, and relies on the latter's implementation of the - interface. It supports - singletons, prototypes and references to either of these kinds of object. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: XmlObjectFactory.cs,v 1.13 2007/08/08 17:47:13 bbaia Exp $ - -
- - - Concrete implementation of the - and - - interfaces. - - -

- This class is a full-fledged object factory based on object definitions - that is usable straight out of the box. -

-

- Can be used as an object factory in and of itself, or as a superclass - for custom object factory implementations. Note that readers for - specific object definition formats are typically implemented separately - rather than as object factory subclasses. -

-

- For an alternative implementation of the - interface, - have a look at the - - class, which manages existing object instances rather than creating new - ones based on object definitions. -

-
- Juergen Hoeller - Rick Evans (.NET) - - $Id: DefaultListableObjectFactory.cs,v 1.42 2007/10/10 19:17:07 bbaia Exp $ -
- - - Abstract superclass - that implements default object creation. - - -

- Provides object creation, initialization and wiring, supporting - autowiring and constructor resolution. Handles runtime object - references, managed collections, and object destruction. -

-

- The main template method to be implemented by subclasses is - , - used for autowiring by type. Note that this class does not implement object - definition registry capabilities - ( - does). -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: AbstractAutowireCapableObjectFactory.cs,v 1.89 2008/05/05 22:42:17 markpollack Exp $ -
- - - The used during the invocation and - searching for of methods. - - - - - The instance for this class. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no public constructors. -

-
- Flag specifying whether to make this object factory case sensitive or not. -
- - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no public constructors. -

-
- Flag specifying whether to make this object factory case sensitive or not. - The parent object factory, or if none. -
- - - Predict the eventual object type (of the processed object instance) for the - specified object. - - Name of the object. - The merged object definition to determine the type for. - - The type of the object, or null if not predictable - - - - - Determines the of the object defined - by the supplied object . - - - The name associated with the supplied object . - - - The - that the is to be determined for. - - - The of the object defined by the supplied - object ; or if the - cannot be determined. - - - - - Apply the property values of the object definition with the supplied - to the supplied . - - - The existing object that the property values for the named object will - be applied to. - - - The name of the object definition associated with the property values that are - to be applied. - - - - - Apply any - s. - - -

- The returned instance may be a wrapper around the original. -

-
- - The of the object that is to be - instantiated. - - - The name of the object that is to be instantiated. - - - An instance to use in place of the original instance. - - - In case of errors. - -
- - - Apply the given property values, resolving any runtime references - to other objects in this object factory. - - - The object name passed for better exception information. - - - The definition of the named object. - - - The wrapping the target object. - - - The new property values. - - -

- Must use deep copy, so that we don't permanently modify this property. -

-
-
- - - Return an array of object-type property names that are unsatisfied. - - -

- These are probably unsatisfied references to other objects in the - factory. Does not include simple properties like primitives or - s. -

-
- - An array of object-type property names that are unsatisfied. - - - The definition of the named object. - - - The wrapping the target object. - -
- - - Destroy all cached singletons in this factory. - - -

- To be called on shutdown of a factory. -

-
-
- - - Populate the object instance in the given - with the property values from the - object definition. - - - The name of the object. - - - The definition of the named object. - - - The wrapping the target object. - - - - - Wires up any exposed events in the object instance in the given - with any event handler - values from the . - - - The name of the object. - - - The definition of the named object. - - - The wrapping the target object. - - - - - Fills in any missing property values with references to - other objects in this factory if autowire is set to - . - - - The object name to be autowired by . - - - The definition of the named object to update through autowiring. - - - The wrapping the target object (and - from which we can rip out information concerning the object). - - - The property values to register wired objects with. - - - - - Defines "autowire by type" (object properties by type) behavior. - - -

- This is like PicoContainer default, in which there must be exactly one object - of the property type in the object factory. This makes object factories simple - to configure for small namespaces, but doesn't work as well as standard Spring - behavior for bigger applications. -

-
- - The object name to be autowired by . - - - The definition of the named object to update through autowiring. - - - The wrapping the target object (and - from which we can rip out information concerning the object). - - - The property values to register wired objects with. - -
- - - Ignore the given dependency type for autowiring - - - This will typically be used by application contexts to register - dependencies that are resolved in other ways, like IOjbectFactory through - IObjectFactoryAware or IApplicationContext through IApplicationContextAware. - By default, IObjectFactoryAware and IObjectName interfaces are ignored. - For further types to ignore, invoke this method for each type. - - . - - - - Create an object instance for the given object definition. - - The name of the object. - - The object definition for the object that is to be instantiated. - - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. It is invalid to use a non- arguments value - in any other case. - - - A new instance of the object. - - - In case of errors. - - -

- Delegates to the - - method version with the allowEagerCaching parameter set to true. -

-

- The object definition will already have been merged with the parent - definition in case of a child definition. -

-

- All the other methods in this class invoke this method, although objects - may be cached after being instantiated by this method. All object - instantiation within this class is performed by this method. -

-
-
- - - Create an object instance for the given object definition. - - The name of the object. - - The object definition for the object that is to be instantiated. - - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. It is invalid to use a non- arguments value - in any other case. - - - Whether eager caching of singletons is allowed... typically true for - singlton objects, but never true for inner object definitions. - - - A new instance of the object. - - - In case of errors. - - -

- The object definition will already have been merged with the parent - definition in case of a child definition. -

-

- All the other methods in this class invoke this method, although objects - may be cached after being instantiated by this method. All object - instantiation within this class is performed by this method. -

-
-
- - - Creates an instance from the passed in - using constructor - - The name of the object to create - used for error messages. - The describing the object to be created. - optional arguments to pass to the constructor - An wrapping the already instantiated object - - - - Instantiate an object instance using a named factory method. - - -

- The method may be static, if the - parameter specifies a class, rather than a - instance, or an - instance variable on a factory object itself configured using Dependency - Injection. -

-

- Implementation requires iterating over the static or instance methods - with the name specified in the supplied - (the method may be overloaded) and trying to match with the parameters. - We don't have the types attached to constructor args, so trial and error - is the only way to go here. -

-
- - The name associated with the supplied . - - - The definition describing the instance that is to be instantiated. - - - Any arguments to the factory method that is to be invoked. - - - The result of the factory method invocation (the instance). - -
- - - Returns an array of all of those - methods exposed on the - that match the supplied criteria. - - - Methods that have this name (can be in the form of a regular expression). - - - Methods that have exactly this many arguments. - - - Methods that are static / instance. - - - The on which the methods (if any) are to be found. - - - An array of all of those - methods exposed on the - that match the supplied criteria. - - - - - Create an array of arguments to invoke a constructor or static factory method, - given the resolved constructor arguments values. - - When return value is null the out parameter UnsatisfiedDependencyExceptionData will contain - information for use in throwing a UnsatisfiedDependencyException by the caller. This avoids using - exceptions for flow control as in the original implementation. - - - - Explicitly construct the object using the supplied constructor arguments. - Constructor arguments are matched by type. - - - The name of the object to autowire by type. - - - The object definition to update through autowiring. - - Array of constructor argument values. - - An for the new instance. - - - - - "autowire constructor" (with constructor arguments by type) behaviour. - - Passes an empty collection of constructor argument values - to overloaded method. - - - The name of the object to autowire by type. - - - The object definition to update through autowiring. - - - An for the new instance. - - - - - "autowire constructor" (with constructor arguments by type) behaviour. - - -

- Also applied if explicit constructor argument values are specified, - matching all remaining arguments with objects from the object factory. -

-

- This corresponds to constructor injection: in this mode, a Spring.NET - object factory is able to host components that expect constructor-based - dependency resolution. -

-
- - The name of the object to autowire by type. - - - The object definition to update through autowiring. - - - The collection on constructor argument values. - - - An for the new instance. - -
- - - Resolves the - of the supplied . - - -

- 'Resolve' can be taken to mean that all of the s - constructor arguments is resolved into a concrete object that can be plugged - into one of the s constructors. Runtime object - references to other objects in this (or a parent) factory are resolved, - type conversion is performed, etc. -

-

- These resolved values are plugged into the supplied - object, because we wouldn't want to touch - the s constructor arguments in case it (or any of - its constructor arguments) is a prototype object definition. -

-

- This method is also used for handling invocations of static factory methods. -

-
- - The name of the object that is being resolved by this factory. - - - The definition associated with the above . - - - Where the resolved constructor arguments will be placed. - - - The minimum number of arguments that any constructor for the supplied - must have. - -
- - - Perform a dependency check that all properties exposed have been set, if desired. - - -

- Dependency checks can be objects (collaborating objects), simple (primitives - and ), or all (both). -

-
- - The name of the object. - - - The definition of the named object. - - - The wrapping the target object. - - - The property values to be checked. - - - If all of the checked dependencies were not satisfied. - -
- - - Extract a filtered set of PropertyInfos from the given IObjectWrapper, excluding - ignored dependency types. - - The object wrapper the object was created with. - The filtered PropertyInfos - - - - Give an object a chance to react now all its properties are set, - and a chance to know about its owning object factory (this object). - - -

- This means checking whether the object implements - and / or - , and invoking the - necessary callback(s) if it does. -

-

- Custom init methods are resolved in a case-insensitive manner. -

-
- - The new object instance we may need to initialise. - - - The name the object has in the factory. Used for logging output. - - - The definition of the target object instance. - -
- - - Invoke the specified custom destroy method on the given object. - - -

- This implementation invokes a no-arg method if found, else checking - for a method with a single boolean argument (passing in "true", - assuming a "force" parameter), else logging an error. -

-

- Can be overridden in subclasses for custom resolution of destroy - methods with arguments. -

-

- Custom destroy methods are resolved in a case-insensitive manner. -

-
-
- - - Destroy the target object. - - -

- Must destroy objects that depend on the given object before the object itself. - Should not throw any exceptions. -

-
- - The name of the object. - - - The target object instance to destroyed. - -
- - - Destroys all of the objects registered as dependant on the - object (definition) identified by the supplied . - - - The name of the root object (definition) that is itself being destroyed. - - - - - Given a property value, return a value, resolving any references to other - objects in the factory if necessary. - - -

- The value could be : - - -

- An , - which leads to the creation of a corresponding new object instance. - Singleton flags and names of such "inner objects" are always ignored: inner objects - are anonymous prototypes. -

- - -

- A , which must - be resolved. -

-
- -

- An . This is a - special placeholder collection that may contain - s or - collections that will need to be resolved. -

-
- -

- An ordinary object or , in which case it's left alone. -

-
- -

-
- - The name of the object that is having the value of one of its properties resolved. - - - The definition of the named object. - - - The name of the property the value of which is being resolved. - - - The value of the property that is being resolved. - -
- - - Resolve the target type of the passed . - - The who's target type is to be resolved - The resolved target type, if any. otherwise. - - - - Resolves an inner object definition. - - - The name of the object that surrounds this inner object definition. - - - The name of the inner object definition... note: this is a synthetic - name assigned by the factory (since it makes no sense for inner object - definitions to have names). - - - The name of the property the value of which is being resolved. - - - The definition of the inner object that is to be resolved. - - - if the owner of the property is a singleton. - - - The resolved object as defined by the inner object definition. - - - - - Resolve a reference to another object in the factory. - - - The name of the object that is having the value of one of its properties resolved. - - - The definition of the named object. - - - The name of the property the value of which is being resolved. - - - The runtime reference containing the value of the property. - - A reference to another object in the factory. - - - - Find object instances that match the required . - - -

- Called by autowiring. If a subclass cannot obtain information about object - names by , a corresponding exception should be thrown. -

-
- - The of the objects to look up. - - - An of object names and object - instances that match the required , or - if none are found. - - - In case of errors. - -
- - - Return the names of the objects that depend on the given object. - Called by DestroyObject, to be able to destroy depending objects first. - - - The name of the object to find depending objects for. - - - The array of names of depending objects, or the empty string array if none. - - - In case of errors. - - - - - Injects dependencies into the supplied instance - using the named object definition. - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - - - - Injects dependencies into the supplied instance - using the supplied . - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - An object definition that should be used to configure object. - - - - - - Configures object instance by injecting dependencies, satisfying Spring lifecycle - interfaces and applying object post-processors. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - An object definition that should be used to configure object. - - - A wrapped object instance that is to be so configured. - - - - - - Applies the PostProcessAfterInitialization callback of all - registered IObjectPostProcessors, giving them a chance to post-process - the object obtained from IFactoryObjects (for example, to auto-proxy them) - - The instance obtained from the IFactoryObject. - Name of the object. - The object instance to expose - if any post-processing failed. - - - - Create a new object instance of the given class with the specified - autowire strategy. - - - The of the object to instantiate. - - - The desired autowiring mode. - - - Whether to perform a dependency check for objects (not applicable to - autowiring a constructor, thus ignored there). - - The new object instance. - - If the wiring fails. - - - - - - Autowire the object properties of the given object instance by name or - . - - - The existing object instance. - - - The desired autowiring mode. - - - Whether to perform a dependency check for the object. - - - If the wiring fails. - - - If the supplied is not one of the - or - - values. - - - - - - Apply s - to the given existing object instance, invoking their - - methods. - - - The existing object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - If any post-processing failed. - - - - - - Apply s - to the given existing object instance, invoking their - - methods. - - - The existing object instance. - - - The name of the object. - - - The object instance to use, either the original or a wrapped one. - - - If any post-processing failed. - - - - - - Set that holds all inner objects created by this factory that implement the IDisposable - interface, to be destroyed on call to Dispose. - - - - - Cache of unfinished IFactoryObject instances: IFactoryObject name --> IObjectWrapper */ - - - - - Cache of filtered PropertyInfos: object Type -> PropertyInfo array - - - - - Dependency interfaces to ignore on dependency check and autowire, as Set of - Class objects. By default, only the IObjectFactoryAware and IObjectNameAware - interfaces are ignored. - - - - - The - implementation to be used to instantiate managed objects. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - Flag specifying whether to make this object factory case sensitive or not. - - - - Creates a new instance of the - class. - - The parent object factory. - - - - Creates a new instance of the - class. - - Flag specifying whether to make this object factory case sensitive or not. - The parent object factory. - - - - Find object instances that match the . - - -

- Called by autowiring. If a subclass cannot obtain information about object - names by , a corresponding exception should be thrown. -

-
- - The type of the objects to look up. - - - An of object names and object - instances that match the , or - if none is found. - - - In case of errors. - -
- - - Return the names of the objects that depend on the given object. - - -

- Called by the - - so that dependant objects are able to be disposed of first. -

-
- - The name of the object to find depending objects for. - - - The array of names of depending objects, or the empty string array if none. - - - In case of errors. - -
- - - Check whether the specified object matches the supplied . - - The name of the object to check. - - The to check for. - - - if the object matches the supplied , - or if the supplied is . - - - - - The instance for this class. - - - - - Whether to allow re-registration of a different definition with the - same name. - - - - - The mapping of object definition objects, keyed by object name. - - - - - List of object definition names, in registration order. - - - - - Check if this registry contains a object definition with the given - name. - - - The name of the object to look for. - - - if this object factory contains an object - definition with the given name. - - - - - - Register a new object definition with this registry. - - - The name of the object instance to register. - - - The definition of the object instance to register. - - - If the object definition is invalid. - - - - - - Ensure that all non-lazy-init singletons are instantiated, also - considering s. - - - If one of the singleton objects could not be created. - - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - - The registered , - or null, if specified object definitions does not exist. - - - If is null or empty string. - - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - Whether to search parent object factories. - - The registered , - or null, if specified object definitions does not exist. - - - If is null or empty string. - - - - - - Return the names of all objects defined in this factory. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - - The (class or interface) to match. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - - - - - - Return the object instances that match the given object - (including subclasses). - - - The (class or interface) to match. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - An of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If any of the objects could not be created. - - - - - - Return the object instances that match the given object - (including subclasses). - - - The (class or interface) to match. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - An of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If any of the objects could not be created. - - - - - - Should object definitions registered under the same name as an - existing object definition be allowed? - - -

- If , then the new object definition will - replace (override) the existing object definition. If - , an exception will be thrown when - an attempt is made to register an object definition under the same - name as an already existing object definition. -

-

- The default is . -

-
- - is the registration of an object definition - under the same name as an existing object definition is allowed. - -
- - - Return the number of objects defined in this registry. - - - The number of objects defined in this registry. - - - - - - Creates a new instance of the class, - with the given resource, which must be parsable using DOM. - - - The XML resource to load object definitions from. - - - In the case of loading or parsing errors. - - - - - Creates a new instance of the class, - with the given resource, which must be parsable using DOM. - - - The XML resource to load object definitions from. - - Flag specifying whether to make this object factory case sensitive or not. - - In the case of loading or parsing errors. - - - - - Creates a new instance of the class, - with the given resource, which must be parsable using DOM, and the - given parent factory. - - - The XML resource to load object definitions from. - - The parent object factory (may be ). - - In the case of loading or parsing errors. - - - - - Creates a new instance of the class, - with the given resource, which must be parsable using DOM, and the - given parent factory. - - - The XML resource to load object definitions from. - - Flag specifying whether to make this object factory case sensitive or not. - The parent object factory (may be ). - - In the case of loading or parsing errors. - - - - - Gets object definition reader to use. - - - - - Constants defining the structure and values associated with the - Spring.NET XML object definition format. - - Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectDefinitionConstants.cs,v 1.8 2006/11/17 20:41:39 aseovic Exp $ - - - - Value of a boolean attribute that represents - . - - -

- Anything else represents . -

-
-
- - - Signifies that a default value is to be applied. - - - - - Defines an external XML object definition resource. - - - - - Specifies the relative path to an external XML object definition - resource. - - - - - Defines an alias for an object definition. - - - - - Specifies the alias of an object definition. - - - - - Specifies the default lazy initialization mode. - - - - - Specifies the default dependency checking mode. - - - - - Specifies the default autowire mode. - - - - - Defines a single named object. - - - - - Element containing informative text describing the purpose of the - enclosing element. - - -

- Always optional. -

-

- Used primarily for user documentation of XML object definition - documents. -

-
-
- - - Specifies a . - - -

- Does not have to be fully assembly qualified, but it is recommended - that the names of one's objects are - specified explicitly. -

-
-
- - - The name or alias of the parent object definition that a child - object definition inherits from. - - - - - Objects can be identified by an id, to enable reference checking. - - -

- There are constraints on a valid XML id: if you want to reference - your object in .NET code using a name that's illegal as an XML id, - use the optional "name" attribute - (). - If neither given, the objects name is - used as id. -

-
-
- - - Can be used to create one or more aliases illegal in an id. - - -

- Multiple aliases can be separated by any number of spaces, - semicolons, or commas - (). -

-

- Always optional. -

-
-
- - - Is this object a "singleton" (one shared instance, which will - be returned by all calls to - with the id), or a - "prototype" (independent instance resulting from each call to - ). - - -

- Singletons are most commonly used, and are ideal for multi-threaded - service objects. -

-
- -
- - - Controls object scope. Only applicable to ASP.NET web applications. - - -

- Scope can be defined as either application, session or request. It - defines when "singleton" instances are initialized, but has no - effect on prototype definitions. -

-
-
- - - The names of the objects that this object depends on being - initialized. - - -

- The object factory will guarantee that these objects - get initialized before this object definition. -

- - Dependencies are normally expressed through object properties or - constructor arguments. This property should just be necessary for - other kinds of dependencies such as statics (*ugh*) or database - preparation on startup. - -
-
- - - Optional attribute for the name of the custom initialization method - to invoke after setting object properties. - - -

- The method must have no arguments. -

-
-
- - - Optional attribute for the name of the custom destroy method to - invoke on object factory shutdown. - - -

- Valid destroy methods have either of the following signatures... - - void MethodName() - void MethodName(bool force) - -

- - Only invoked on singleton objects! - -
-
- - - A constructor argument : the constructor-arg tag can have an - optional type attribute, to specify the exact type of the - constructor argument - - -

- Only needed to avoid ambiguities, e.g. in case of 2 single - argument constructors that can both be converted from a - . -

-
-
- - - The constructor-arg tag can have an optional index attribute, - to specify the exact index in the constructor argument list. - - -

- Only needed to avoid ambiguities, e.g. in case of 2 arguments of - the same type. -

-
-
- - - The constructor-arg tag can have an optional named parameter - attribute, to specify a named parameter in the constructor - argument list. - - - - - Is this object "abstract", i.e. not meant to be instantiated itself - but rather just serving as parent for concrete child object - definitions? - - -

- Default is . Specify - to tell the object factory to not try to instantiate that - particular object in any case. -

-
-
- - - A property definition : object definitions can have zero or more - properties. - - -

- Spring.NET supports primitives, references to other objects in the - same or related factories, lists, dictionaries, and name value - collections. -

-
-
- - - A reference to another managed object or static - . - - - - - ID refs must specify a name of the target object. - - - - - A reference to the name of another managed object in the same - context. - - - - - A reference to the name of another managed object in the same - context. - - -

- Local references, using the "local" attribute, have to use object - ids; they can be checked by a parser, thus should be preferred for - references within the same object factory XML file. -

-
-
- - - Alternative to type attribute for factory-method usage. - - -

- If this is specified, no type attribute should be used. This should - be set to the name of an object in the current or ancestor - factories that contains the relevant factory method. This allows - the factory itself to be configured using Dependency Injection, and - an instance (rather than static) method to be used. -

-
-
- - - Optional attribute specifying the name of a factory method to use - to create this object. - - -

- Use constructor-arg elements to specify arguments to the factory - method, if it takes arguments. Autowiring does not apply to - factory methods. -

-

- If the "type" attribute is present, the factory method will be a - static method on the type specified by the "type" attribute on - this object definition. Often this will be the same type as that - of the constructed object - for example, when the factory method - is used as an alternative to a constructor. However, it may be on - a different type. In that case, the created object will *not* be - of the type specified in the "type" attribute. This is analogous - to behaviour. -

-

- If the "factory-object" attribute is present, the "type" attribute - is not used, and the factory method will be an instance method on - the object returned from a - - call with the specified object name. The factory object may be - defined as a singleton or a prototype. -

-

- The factory method can have any number of arguments. Use indexed - constructor-arg elements in conjunction with the factory-method - attribute. -

-

- Setter Injection can be used in conjunction with a factory method. - Method Injection cannot, as the factory method returns an instance, - which will be used when the container creates the object. -

-
-
- - - A list can contain multiple inner object, ref, collection, or - value elements. - - -

- Lists are untyped, pending generics support, although references - will be strongly typed. -

-

- A list can also map to an array type. The necessary conversion is - automatically performed by the - . -

-
-
- - - A set can contain multiple inner object, ref, collection, or value - elements. - - -

- Sets are untyped, pending generics support, although references - will be strongly typed. -

-
-
- - - A Spring.NET map is a mapping from a string key to object (a .NET - ). - - -

- Dictionaries may be empty. -

-
-
- - - A lookup key (for a dictionary or name / value collection). - - - - - A lookup key (for a dictionary or name / value collection). - - - - - Contains a string representation of a value. - - -

- This is used by name-value, ctor argument, and property elements. -

-
-
- - - Contains delimiters that should be used to split delimited string values. - - -

- This is used by name-value element. -

-
-
- - - A reference to another objects. - - -

- Used as a convenience shortcut on property and constructor-arg - elements to refer to other objects. -

-
-
- - - Contains a string representation of an expression. - - -

- This is used by ctor argument and property elements. -

-
-
- - - A map entry can be an inner object, ref, collection, or value. - - -

- The name of the property is given by the "key" attribute. -

-
-
- - - Contains a string representation of a property value. - - -

- The property may be a string, or may be converted to the - required using the - - machinery. This makes it possible for application developers to - write custom - implementations that can convert strings to objects. -

- - This is recommended for simple objects only. Configure more complex - objects by setting properties to references to other objects. - -
-
- - - Contains a string representation of an expression. - - - - - Denotes value. - - -

- Necessary because an empty "value" tag will resolve to an empty - , which will not be resolved to - value unless a special - does so. -

-
-
- - - 'name-values' elements differ from dictionary elements in that - values must be strings. - - -

- May be empty. -

-
-
- - - Element content is the string value of the property. - - -

- The "key" attribute is the name of the property. -

-
-
- - - The lazy initialization mode for an individual object definition. - - - - - The dependency checking mode for an individual object definition. - - - - - Defines a subscription to one or more events published by one or - more event sources. - - - - - The name of an event handling method. - - -

- Defaults to On${event}. - Note : this default will probably change before the first 1.0 - release. -

-
-
- - - The name of an event. - - - - - The autowiring mode for an individual object definition. - - - - - Shortcut alternative to specifying a key element in a - dictionary entry element with <ref object="..."/>. - - - - - Shortcut alternative to specifying a value element in a - dictionary entry element with <ref object="..."/>. - - - - - The string of characters that delimit object names. - - - - - A lookup method causes the IoC container to override a given method and return - the object with the name given in the attendant object attribute. - - -

- This is a form of Method Injection. -

-

- It's particularly useful as an alternative to implementing the - interface, - in order to be able to make - - calls for non-singleton instances at runtime. In this case, Method Injection - is a less invasive alternative. -

-
-
- - - The name of a lookup method. This method must take no arguments. - - - - - The name of the object in the IoC container that the lookup method - must resolve to. - - -

- Often this object will be a prototype, in which case the lookup method - will return a distinct instance on every invocation. This is useful - for single-threaded objects. -

-
-
- - - A replaced method causes the IoC container to override a given method - with an (arbitrary) implementation at runtime. - - -

- This (again) is a form of Method Injection. -

-
-
- - - Name of the method whose implementation should be replaced by the - IoC container. - - -

- If this method is not overloaded, there's no need to use arg-type - subelements. -

-

- If this method is overloaded, arg-type subelements must be - used for all override definitions for the method. -

-
-
- - - The object name of an implementation of the - interface. - - -

- This may be a singleton or prototype. If it's a prototype, a new - instance will be used for each method replacement. Singleton usage - is the norm. -

-
-
- - - Subelement of replaced-method identifying an argument for a - replaced method in the event of method overloading. - - - - - - Specification of the of an overloaded method - argument as a . - - -

- For convenience, this may be a substring of the FQN. E.g. all the following would match - : -

-

- - - System.String - - - string - - - str - - -

-
- -
- - - Check everything. - - - - - Just check primitive (string, int, etc) values. - - - - - Check object references. - - - - - Autowire by name. - - - - - Autowire by . - - - - - Autowiring by constructor. - - - - - The autowiring strategy is to be determined by introspection - of the object's . - - - - - Creates a new instance of the - - class. - - -

- This is a utility class, and as such has no publicly visible - constructors. -

-
-
- - - Static factory that permits the registration of existing singleton instances. - - -

- Does not have support for prototype objects, aliases, and post startup object - configuration. -

-

- Serves as a simple example implementation of the - interface, that manages existing object instances as opposed to creating new ones - based on object definitions. -

-

- The - method is not supported by this class; this class deals exclusively with - existing singleton instances, thus the methods mentioned previously make little sense in this context. -

-
- Rod Johnson - Juergen Hoeller - Simon White (.NET) - $Id: StaticListableObjectFactory.cs,v 1.24 2007/12/05 00:28:05 bbaia Exp $ -
- - - Map from object name to object instance. - - - - - Return an instance of the given object name. - - The name of the object to return. - The instance of the object. - - is not currently supported. - - - - - - Return an instance (possibly shared or independent) of the given object name. - - -

- This method allows an object factory to be used as a replacement for the - Singleton or Prototype design pattern. -

-

- Note that callers should retain references to returned objects. There is no - guarantee that this method will be implemented to be efficient. For example, - it may be synchronized, or may need to run an RDBMS query. -

-

- Will ask the parent factory if the object cannot be found in this factory - instance. -

-
- The name of the object to return. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. If there is no factory method and the - arguments are not null, then match the argument values by type and - call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the supplied is . - -
- - - Return an instance (possibly shared or independent) of the given object name. - - The name of the object to return. - - The the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - - The arguments to use if creating a prototype using explicit arguments to - a factory method. If there is no factory method and the - supplied array is not , then - match the argument values by type and call the object's constructor. - - The instance of the object. - - If there's no such object definition. - - - If the object could not be created. - - - If the object is not of the required type. - - - If the supplied is . - - - - - - Return an instance of the given object name. - - The name of the object to return. - - the object may match. Can be an interface or - superclass of the actual class. For example, if the value is the - class, this method will succeed whatever the - class of the returned instance. - - The instance of the object. - - - - - Does this object factory contain an object with the given name? - - The name of the object to query. - True if an object with the given name is defined. - - - - Is this object a singleton? - - -

- That is, will - or - always return the same object? -

-
- The name of the object to query. - True if the named object is a singleton. - - If there's no such object definition. - -
- - - Determines whether the specified object name is prototype. That is, will GetObject - always return independent instances? - - This method returning false does not clearly indicate a singleton object. - It indicated non-independent instances, which may correspond to a scoped object as - well. use the IsSingleton property to explicitly check for a shared - singleton instance. - Translates aliases back to the corresponding canonical object name. Will ask the - parent factory if the object can not be found in this factory instance. - - - - The name of the object to query - - true if the specified object name will always deliver independent instances; otherwise, false. - - if there is no object with the given name. - - - - Determine the type of the object with the given name. - - -

- More specifically, checks the type of object that - would return. - For an , returns the type - of object that the creates. -

-
- The name of the object to query. - - The of the object or if - not determinable. - -
- - - Determines whether the object with the given name matches the specified type. - - The name of the object to query. - Type of the target to match against. - - true if the object type matches; otherwise, false - if it doesn't match or cannot be determined yet. - - Ff there is no object with the given name - - - - - Return the aliases for the given object name, if defined. - - The object name to check for aliases. - The aliases, or an empty array if none. - - If there's no such object definition. - - - - - Not supported. - - The name of the object. - - The registered - . - - - Always, as object definitions are not supported by this - implementation. - - - - - Return the registered - for the - given object, allowing access to its property values and constructor - argument values. - - The name of the object. - Whether to search parent object factories. - - The registered - . - - - If there is no object with the given name. - - - In the case of errors. - - - - - Return the names of all objects defined in this factory. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - - - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - -

- Will not consider s, - as the type of their created objects is not known before instantiation. -

-
- - The names of all objects defined in this factory, or an empty array if none - are defined. - -
- - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - - The (class or interface) to match, or - for all object names. - - -

- Does consider objects created by s, - or rather it considers the type of objects created by - (which means that - s will be instantiated). -

-

- Does not consider any hierarchy this factory may participate in. -

-
- - The names of all objects defined in this factory, or an empty array if none - are defined. - -
- - - Return the names of objects matching the given - (including subclasses), judging from the object definitions. - - -

- Since this implementation of the - - interface does not support the notion of ptototype objects, the - parameter is ignored. -

-
- - The (class or interface) to match, or - for all object names. - - - Whether to include prototype objects too or just singletons (also applies to - s). Ignored. - - - Whether to include s too - or just normal objects. - - - The names of all objects defined in this factory, or an empty array if none - are defined. - - -
- - - Tests whether this object factory contains an object definition for the - specified object name. - - The object name to query. - - True if an object defintion is contained within this object factory. - - - - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - -

- This version of the - method matches all kinds of object definitions, be they singletons, prototypes, or - s. Typically, the results - of this method call will be the same as a call to - IListableObjectFactory.GetObjectsOfType(type,true,true) . -

-
- - The (class or interface) to match. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - -
- - - Return the object instances that match the given object - (including subclasses), judging from either object - definitions or the value of - in the case of - s. - - - The (class or interface) to match. - - - Whether to include prototype objects too or just singletons (also applies to - s). - - - Whether to include s too - or just normal objects. - - - A of the matching objects, - containing the object names as keys and the corresponding object instances - as values. - - - If the objects could not be created. - - - - - Add a new singleton object. - - - The name to be associated with the object name. - - The singleton object. - - - - Injects dependencies into the supplied instance - using the named object definition. - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - This feature is not currently supported. - - - - - - Injects dependencies into the supplied instance - using the supplied . - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - An object definition that should be used to configure object. - - - - - - Defines a method to release allocated unmanaged resources. - - - - - Return the number of objects defined in the factory. - - - The number of objects defined in the factory. - - - - - Return an instance of the given object name. - - The name of the object to return. - The instance of the object. - - - - - A collection (with set semantics) of method overrides, determining which, if any, - methods on a managed object the Spring.NET IoC container will override at runtime. - - Rod Johnson - Rick Evans - $Id: MethodOverrides.cs,v 1.8 2007/03/16 04:01:42 aseovic Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - -

- Deep copy constructoe. -

-
- - The instance supplying initial overrides for this new instance. - -
- - - Copy all given method overrides into this object. - - - The overrides to be copied into this object. - - - - - Adds the supplied to the overrides contained - within this instance. - - - The to be - added. - - - - - Adds the supplied to the overloaded method names - contained within this instance. - - - The overloaded method name to be added. - - - - - Returns true if the supplied is present within - the overloaded method names contained within this instance. - - - The overloaded method name to be checked. - - - True if the supplied is present within - the overloaded method names contained within this instance. - - - - - Return the override for the given method, if any. - - - The method to check for overrides for. - - - the override for the given method, if any. - - - - - Returns an that can iterate - through a collection. - - -

- The returned is the - exposed by the - - property. -

-
- - An that can iterate through a - collection. - -
- - - The collection of method overrides. - - - - - Returns true if this instance contains no overrides. - - - - - Default implementation of the - - interface. - - -

- Does not support per - loading. -

-
- Aleksandar Seovic - $Id: DefaultObjectDefinitionFactory.cs,v 1.13 2007/08/01 12:29:43 bbaia Exp $ -
- - - Factory style method for getting concrete - - instances. - - /// If no parent is specified, a RootObjectDefinition is created, otherwise a - ChildObjectDefinition. - The of the defined object. - The name of the parent object definition (if any). - The against which any class names - will be resolved into instances. - - An - - instance. - - - - - Simple factory object for shared instances. - - Juergen Hoeller - Simon White (.NET) - $Id: SetFactoryObject.cs,v 1.10 2007/07/31 03:47:39 markpollack Exp $ - - - - Constructs a new instance of the target set. - - The new instance. - - - - Set the source . - - -

- This value will be used to populate the - returned by this factory. -

-
-
- - - Set the of the - implementation to use. - - -

- The default is the . -

-
-
- - - The of objects created by this factory. - - - Always returns the . - - - - - Specifies how instances of the - - class must apply environment variables when replacing values. - - Mark Pollack - $Id: EnvironmentVariableMode.cs,v 1.6 2007/03/16 04:01:35 aseovic Exp $ - - - - Never replace environment variables. - - - - - If properties are not specified via a resource, - then resolve using environment variables. - - - - - Apply environment variables first before applying properties from a - resource. - - - - - Context that gets passed along an object definition reading process, - encapsulating all relevant configuraiton as well as state. - - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - $Id: ReaderContext.cs,v 1.3 2007/08/08 17:47:13 bbaia Exp $ - - - - Initializes a new instance of the class. - - The resource. - - - - Gets the resource. - - The resource. - - - - Implementation of that - resolves variable name against command line arguments. - - Aleksandar Seovic - $Id: CommandLineArgsVariableSource.cs,v 1.3 2007/08/02 22:18:32 markpollack Exp $ - - - - Default constructor. - Initializes command line arguments from the environment. - - - - - Constructor that allows arguments to be passed externally. - Useful for testing. - - - - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Initializes command line arguments dictionary. - - - - - Gets or sets a prefix that should be used to - identify arguments to extract values from. - - - A prefix that should be used to identify arguments - to extract values from. Defaults to slash ("/"). - - - - - Gets or sets a character that should be used to - separate argument name from its value. - - - A character that should be used to separate argument - name from its value. Defaults to colon (":"). - - - - - Represents parsed type node in the navigation expression. - - Aleksandar Seovic - $Id: TypeNode.cs,v 1.11 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents logical equality operator. - - Aleksandar Seovic - $Id: OpEqual.cs,v 1.12 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the logical equality operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Converter for instances. - - Juergen Hoeller - Mark Pollack (.NET) - $Id: UriConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Creates a new instance of the - class. - - - - - Returns whether this converter can convert an object of one - to a - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Convert from a string value to a instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful. - - - - - Event object sent to listeners registered with an - to inform them of - context lifecycle events. - - Griffin Caprio (.NET) - $Id: ContextEventArgs.cs,v 1.8 2007/07/31 08:18:11 markpollack Exp $ - - - - - - - Creates a new instance of the ContextEventArgs class to represent the - supplied context event. - - The type of context event. - - - - Returns a string representation of this object. - - A string representation of this object. - - - - The event type. - - - - - The various context event types. - - - - - The event type when the context is refreshed or created. - - - - - The event type when the context is closed. - - - - - Implements an based on a - hash table. - - -

- This will give the best lookup, add, and remove performance for very - large data-sets, but iteration will occur in no particular order. -

-
- - $Id: HashedSet.cs,v 1.6 2007/03/16 04:01:27 aseovic Exp $ -
- - - Creates a new instance of the class. - - - - - Creates a new instance of the class, and - initializes it based on a collection of elements. - - - A collection of elements that defines the initial set contents. - - - - - Miscellaneous utility methods. - - -

- Mainly for internal use within the framework. -

-
- Rod Johnson - Juergen Hoeller - Keith Donald - Aleksandar Seovic (.NET) - Mark Pollack (.NET) - Rick Evans (.NET) - $Id: StringUtils.cs,v 1.29 2006/04/09 07:19:00 markpollack Exp $ -
- - - The string that signals the start of an Ant-style expression. - - - - - The string that signals the end of an Ant-style expression. - - - - - An empty array of instances. - - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Tokenize the given into a - array. - - -

- If is , returns an empty - array. -

-

- If is or the empty - , returns a array with one - element: itself. -

-
- The to tokenize. - - The delimiter characters, assembled as a . - - - Trim the tokens via . - - - Omit empty tokens from the result array. - An array of the tokens. -
- - - Convert a CSV list into an array of s. - - A CSV list. - - An array of s, or the empty array - if is . - - - - - Take a which is a delimited list - and convert it to a array. - - -

- If the supplied is a - or zero-length string, then a single element - array composed of the supplied - will be - eturned. If the supplied - is , then an empty, - zero-length array will be returned. -

-
- - The to be parsed. - - - The delimeter (this will not be returned). Note that only the first - character of the supplied is used. - - - An array of the tokens in the list. - -
- - - Convenience method to return an - as a delimited - (e.g. CSV) . - - - The to parse. - - - The delimiter to use (probably a ','). - - The delimited string representation. - - - - Convenience method to return an - as a CSV - . - - - The to display. - - The delimited string representation. - - - - Convenience method to return an array as a CSV - . - - - The array to parse. Elements may be of any type ( - will be called on each - element). - - - - - Convenience method to return a - array as a delimited (e.g. CSV) . - - - The array to parse. Elements may be of any type ( - will be called on each - element). - - - The delimiter to use (probably a ','). - - - - Checks if a string has length. - - The string to check, may be . - - - if the string has length and is not - . - - - - StringUtils.HasLength(null) = false - StringUtils.HasLength("") = false - StringUtils.HasLength(" ") = true - StringUtils.HasLength("Hello") = true - - - - - - Checks if a has text. - - -

- More specifically, returns if the string is - not , it's is > - zero (0), and it has at least one non-whitespace character. -

-
- - The string to check, may be . - - - if the is not - , - > zero (0), and does not consist - solely of whitespace. - - - - StringUtils.HasText(null) = false - StringUtils.HasText("") = false - StringUtils.HasText(" ") = false - StringUtils.HasText("12345") = true - StringUtils.HasText(" 12345 ") = true - - -
- - - Checks if a is - or an empty string. - - -

- More specifically, returns if the string is - , it's is equal - to zero (0), or it is composed entirely of whitespace - characters. -

-
- - The string to check, may (obviously) be . - - - if the is - , has a length equal to zero (0), or - is composed entirely of whitespace characters. - - - - StringUtils.IsNullOrEmpty(null) = true - StringUtils.IsNullOrEmpty("") = true - StringUtils.IsNullOrEmpty(" ") = true - StringUtils.IsNullOrEmpty("12345") = false - StringUtils.IsNullOrEmpty(" 12345 ") = false - - -
- - - Strips first and last character off the string. - - The string to strip. - The stripped string. - - - - Returns a list of Ant-style expressions from the specified text. - - The text to inspect. - - A list of expressions that exist in the specified text. - - - If any of the expressions in the supplied - is empty (${}). - - - - - Replaces Ant-style expression placeholder with expression value. - - -

- -

-
- The string to set the value in. - The name of the expression to set. - The expression value. - - A new string with the expression value set; the - value if the supplied - is , has a length - equal to zero (0), or is composed entirely of whitespace - characters. - -
- - - Surrounds (prepends and appends) the string value of the supplied - to the supplied . - - -

- The return value of this method call is always guaranteed to be non - . If every value passed as a parameter to this method is - , the string will be returned. -

-
- - The prefix and suffix that respectively will be prepended and - appended to the target . If this value - is not a value, it's attendant - value will be used. - - - The target that is to be surrounded. If this value is not a - value, it's attendant - value will be used. - - The surrounded string. -
- - - Surrounds (prepends and appends) the string values of the supplied - and to the supplied - . - - -

- The return value of this method call is always guaranteed to be non - . If every value passed as a parameter to this method is - , the string will be returned. -

-
- - The value that will be prepended to the . If this value - is not a value, it's attendant - value will be used. - - - The target that is to be surrounded. If this value is not a - value, it's attendant - value will be used. - - - The value that will be appended to the . If this value - is not a value, it's attendant - value will be used. - - The surrounded string. -
- - - Converts escaped characters (for example "\t") within a string - to their real character. - - The string to convert. - The converted string. - - - - Support matching of file system paths in a manner similar to that of the - NAnt FileSet. - - -

- Any (back)slashes are converted to forward slashes. -

-
- - - // true - PathMatcher.Match("c:/*.bat", @"c:\autoexec.bat"); - PathMatcher.Match("c:\fo*\*.bat", @"c:/foobar/autoexec.bat"); - PathMatcher.Match("c:\fo?\*.bat", @"c:/foo/autoexec.bat"); - // false - PathMatcher.Match("c:\fo?\*.bat", @"c:/fo/autoexec.bat"); - - - Federico Spinazzi - $Id: PathMatcher.cs,v 1.7 2007/02/23 18:46:41 markpollack Exp $ -
- - - Determines if a given path matches a NAnt-like pattern. - - - A forward or back-slashed fileset-like pattern. - - A forward or back-slashed full path. - should the match consider the case - - if the path is matched by the pattern; - otherwise . - - - - - Determines if a given path matches a NAnt-like pattern. - - - A forward or back-slashed fileset-like pattern. - - A forward or back-slashed full path. - - if the path is matched by the pattern; - otherwise . - - - - - Replaces back(slashes) with forward slashes. - - - The path or the pattern to modify. - - A forward-slashed string. - - - - Helper method to convert a NAnt-like pattern into the - appropriate pattern for a regular expression. - - The NAnt-like pattern. - A regex-compatible pattern. - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Helper methods with regard to objects, types, properties, etc. - - -

- Not intended to be used directly by applications. -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - $Id: ObjectUtils.cs,v 1.9 2007/12/29 00:31:00 markpollack Exp $ -
- - - An empty object array. - - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Instantiates the type using the assembly specified to load the type. - - This is a convenience in the case of needing to instantiate a type but not - wanting to specify in the string the version, culture and public key token. - The assembly. - Name of the type. - - - If the or is - - - If cannot load the type from the assembly or the call to InstantiateType(Type) fails. - - - - - Convenience method to instantiate a using - its no-arg constructor. - - -

- As this method doesn't try to instantiate s - by name, it should avoid loading issues. -

-
- - The to instantiate* - - A new instance of the . - - If the is - - - If the is an abstract class, an interface, - an open generic type or does not have a public no-argument constructor. - -
- - - Gets the zero arg ConstructorInfo object, if the type offers such functionality. - - The type. - Zero argument ConstructorInfo - - If the type is an interface, abstract, open generic type, or does not have a zero-arg constructor. - - - - - Determines whether the specified type is instantiable, i.e. not an interface, abstract class or contains - open generic type parameters. - - The type. - - - - Convenience method to instantiate a using - the given constructor. - - -

- As this method doesn't try to instantiate s - by name, it should avoid loading issues. -

-
- - The constructor to use for the instantiation. - - - The arguments to be passed to the constructor. - - A new instance. - - If the is - - - If the 's declaring type is an abstract class, - an interface, an open generic type or does not have a public no-argument constructor. - -
- - - Checks whether the supplied is not a transparent proxy and is - assignable to the supplied . - - -

- Neccessary when dealing with server-activated remote objects, because the - object is of the type TransparentProxy and regular is testing for assignable - types does not work. -

-

- Transparent proxy instances always return when tested - with the 'is' operator (C#). This method only checks if the object - is assignable to the type if it is not a transparent proxy. -

-
- The target to be checked. - The value that should be assigned to the type. - - if the supplied is not a - transparent proxy and is assignable to the supplied . - -
- - - Determine if the given is assignable from the - given value, assuming setting by reflection. - - -

- Considers primitive wrapper classes as assignable to the - corresponding primitive types. -

-

- For example used in an object factory's constructor resolution. -

-
- The target . - The value that should be assigned to the type. - True if the type is assignable from the value. -
- - - Check if the given represents a - "simple" property, - i.e. a primitive, a , a - , or a corresponding array. - - -

- Used to determine properties to check for a "simple" dependency-check. -

-
- - The to check. - -
- - - Check if the given class represents a primitive array, - i.e. boolean, byte, char, short, int, long, float, or double. - - - - - Determine if the given objects are equal, returning - if both are respectively - if only one is . - - The first object to compare. - The second object to compare. - - if the given objects are equal. - - - - - Returns the first element in the supplied . - - - The to use to enumerate - elements. - - - The first element in the supplied . - - - If the supplied did not have any elements. - - - - - Returns the first element in the supplied . - - - The to use to enumerate - elements. - - - The first element in the supplied . - - - If the supplied did not have any elements. - - - If the supplied is . - - - - - Returns the element at the specified index using the supplied - . - - - The to use to enumerate - elements until the supplied is reached. - - - The index of the element in the enumeration to return. - - - The element at the specified index using the supplied - . - - - If the supplied was less than zero, or the - supplied did not contain enough elements - to be able to reach the supplied . - - - - - Returns the element at the specified index using the supplied - . - - - The to use to enumerate - elements until the supplied is reached. - - - The index of the element in the enumeration to return. - - - The element at the specified index using the supplied - . - - - If the supplied was less than zero, or the - supplied did not contain enough elements - to be able to reach the supplied . - - - If the supplied is . - - - - - Gets the qualified name of the given method, consisting of - fully qualified interface/class name + "." method name. - - The method. - qualified name of the method. - - - - Assertion utility methods that simplify things such as argument checks. - - -

- Not intended to be used directly by applications. -

-
- Aleksandar Seovic - $Id: AssertUtils.cs,v 1.13 2008/03/14 10:45:08 bbaia Exp $ -
- - - Checks the value of the supplied and throws an - if it is . - - The object to check. - The argument name. - - If the supplied is . - - - - - Checks the value of the supplied and throws an - if it is . - - The object to check. - The argument name. - - An arbitrary message that will be passed to any thrown - . - - - If the supplied is . - - - - - Checks the value of the supplied string and throws an - if it is or - contains only whitespace character(s). - - The string to check. - The argument name. - - If the supplied is or - contains only whitespace character(s). - - - - - Checks the value of the supplied string and throws an - if it is or - contains only whitespace character(s). - - The string to check. - The argument name. - - An arbitrary message that will be passed to any thrown - . - - - If the supplied is or - contains only whitespace character(s). - - - - - Checks the value of the supplied and throws - an if it is or contains no elements. - - The array or collection to check. - The argument name. - - If the supplied is or - contains no elements. - - - - - Checks the value of the supplied and throws - an if it is or contains no elements. - - The array or collection to check. - The argument name. - An arbitrary message that will be passed to any thrown . - - If the supplied is or - contains no elements. - - - - - Checks whether the specified can be cast - into the . - - - The argument to check. - - - The name of the argument to check. - - - The required type for the argument. - - - An arbitrary message that will be passed to any thrown - . - - - - - Assert a bool expression, throwing InvalidOperationException - if the expression is false. - - a boolean expression. - The exception message to use if the assertion fails - if expression is false - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Implementation of IProxyMethodBuilder that delegates method calls to the base class. - - Bruno Baia - $Id: BaseProxyMethodBuilder.cs,v 1.1 2006/08/10 18:45:55 bbaia Exp $ - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - if the interface is to be - implemented explicitly; otherwise . - - - - - Generates the proxy method. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Tag subclass used to hold a dictionary of managed elements. - - Juergen Hoeller - Rick Evans (.NET) - $Id: ManagedDictionary.cs,v 1.14 2007/11/26 14:15:54 bbaia Exp $ - - - - Resolves this managed collection at runtime. - - - The name of the top level object that is having the value of one of it's - collection properties resolved. - - - The definition of the named top level object. - - - The name of the property the value of which is being resolved. - - - The callback that will actually do the donkey work of resolving - this managed collection. - - A fully resolved collection. - - - - Gets or sets the unresolved name for the - of the keys of this managed dictionary. - - The unresolved name for the type of the keys of this managed dictionary. - - - - Gets or sets the unresolved name for the - of the values of this managed dictionary. - - The unresolved name for the type of the values of this managed dictionary. - - - - Object definition for definitions that inherit settings from their - parent (object definition). - - -

- Will use the - of the parent object definition if none is specified, but can also - override it. In the latter case, the child's - - must be compatible with the parent, i.e. accept the parent's property values - and constructor argument values (if any). -

-

- A will - inherit all of the , - , and - from it's parent - object definition, with the option to add new values. If the - , - , - and / or - - properties are specified, they will override the corresponding parent settings. -

-

- The remaining settings will always be taken from the child definition: - , - , - , - , - and - -

-
- Rod Johnson - Juergen Hoeller - Rick Evans (.NET) - -
- - - Creates a new instance of the - - class. - - - The name of the parent object. - - - - - Creates a new instance of the - - class. - - - The name of the parent object. - - - The additional property values (if any) of the child. - - - - - Creates a new instance of the - - class. - - - The name of the parent object. - - - The - to be applied to a new instance of the object. - - - The additional property values (if any) of the child. - - - - - Creates a new instance of the - - class. - - - The name of the parent object. - - - The class of the object to instantiate. - - - The - to be applied to a new instance of the object. - - - The additional property values (if any) of the child. - - - - - Creates a new instance of the - - class. - - - The name of the parent object. - - - The of the object to - instantiate. - - - The - to be applied to a new instance of the object. - - - The additional property values (if any) of the child. - - - - - Validate this object definition. - - -

- A common cause of validation failures is a missing value for the - - property; by - their very nature require that the - - be set. -

-
- - In the case of a validation failure. - -
- - - A that represents the current - . - - - A that represents the current - . - - - - - The name of the parent object definition. - - -

- This value is required. -

-
- - The name of the parent object definition. - -
- - - Extension of specific to use with an - XmlObjectDefinitionReader. - - In future will contain access to IXmlParserRegistry - $Id: XmlReaderContext.cs,v 1.6 2007/08/27 13:57:43 oakinger Exp $ - - - - The maximum length of any XML fragment displayed in the error message - reporting. - - -

- Hopefully this will display enough context so that a user - can pinpoint the cause of the error. -

-
-
- - - Initializes a new instance of the class. - - The resource. - The reader. - - - - Generates the name of the object. - - The object definition. - the generated object name - - - - Registers the name of the with generated. - - The object definition. - the generated object name - - - - Reports a parse error by loading a - with helpful contextual - information and throwing said exception. - - -

- Derived classes can of course override this method in order to implement - validators capable of displaying a full list of errors found in the - definition. -

-
- - The node that triggered the parse error. - - - The name of the object that triggered the exception. - - - A message about the exception. - - - Always throws an instance of this exception class, that will - contain helpful contextual infomation about the parse error. - - -
- - - Reports a parse error by loading a - with helpful contextual - information and throwing said exception. - - -

- Derived classes can of course override this method in order to implement - validators capable of displaying a full list of errors found in the - definition. -

-
- - The node that triggered the parse error. - - - The name of the object that triggered the exception. - - - A message about the error. - - - The root cause of the parse error (if any - may be ). - - - Always throws an instance of this exception class, that will - contain helpful contextual infomation about the parse error. - -
- - - This method can be overwritten in order to implement validators - capable of displaying a full list of errors found in the definition. - - - The node that triggered the parse error. - - - A message about the exception. - - - - - Gets the reader. - - The reader. - - - - Gets the resource loader. - - The resource loader. - - - - Gets the registry. - - The registry. - - - - Gets or sets the object definition factory. - - The object definition factory. - - - - Convenient base class for when there exists a one-to-one mapping - between attribute names on the element that is to be parsed and - the property names on the Type being configured. - - - - - Mark Pollack - $Id: AbstractSimpleObjectDefinitionParser.cs,v 1.1 2007/05/26 19:25:54 markpollack Exp $ - - - - Implementation of that - resolves variable name connection strings defined in - the standard .NET configuration file. - - -

- When the <connectionStrings> configuration section is processed by this class, - two variables are defined for each connection string: one for connection string and - the second one for the provider name.

-

- Variable names are generated by appending '.connectionString' and '.providerName' - literals to the value of the name attribute of the connection string element. - For example:

-
-            
-               
-            
-            
-

- will result in two variables being created: myConn.connectionString and myConn.providerName. - You can reference these variables within your object definitions, just like any other variable.

-
- Aleksandar Seovic - $Id: ConnectionStringsVariableSource.cs,v 1.4 2007/08/02 22:18:32 markpollack Exp $ -
- - - Resolves variable value for the specified variable name. - - - The name of the variable to resolve. - - - The variable value if able to resolve, null otherwise. - - - - - Initializes properties based on the specified - property file locations. - - - - - Holds mapping between control property and it's value - as read from the resource file. - - Aleksandar Seovic - $Id: Resource.cs,v 1.3 2006/04/09 07:18:47 markpollack Exp $ - - - - Creates instance of resource mapper. - - Target property. - Resource value. - - - - Gets parsed target property expression. See - for more information on object navigation expressions. - - - - - Value of the resource that target property should be set to. - - - - - Represents a reference to a Spring-managed object. - - Aleksandar Seovic - $Id: ReferenceNode.cs,v 1.13 2008/03/20 10:35:54 oakinger Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the integer literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents arithmetic modulus operator. - - Aleksandar Seovic - $Id: OpMODULUS.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the arithmetic modulus operator node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed node in the navigation expression. - - Aleksandar Seovic - $Id: DateLiteralNode.cs,v 1.7 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns node's value for the given context. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Implementation of the count aggregator. - - Aleksandar Seovic - $Id: CountAggregator.cs,v 1.2 2006/12/04 08:58:33 aseovic Exp $ - - - - Returns the number of items in the source collection. - - - The source collection to process. - - - Ignored. - - - The number of items in the source collection, - or zero if the collection is empty or null. - - - - - Holder for the generic arguments when using type parameters. - - -

- Type parameters can be applied to classes, interfaces, - structures, methods, delegates, etc... -

-
-
- - - The generic arguments prefix. - - - - - The generic arguments suffix. - - - - - The character that separates a list of generic arguments. - - - - - Creates a new instance of the GenericArgumentsHolder class. - - - The string value to parse looking for a generic definition - and retrieving its generic arguments. - - - - - Returns an array of unresolved generic arguments types. - - -

- A empty string represents a type parameter that - did not have been substituted by a specific type. -

-
- - An array of strings that represents the unresolved generic - arguments types or an empty array if not generic. - -
- - - The (unresolved) generic type name portion - of the original value when parsing a generic type. - - - - - The (unresolved) generic method name portion - of the original value when parsing a generic method. - - - - - Is the string value contains generic arguments ? - - -

- A generic argument can be a type parameter or a type argument. -

-
-
- - - Is generic arguments only contains type parameters ? - - - - - Converter for instances. - - Bruno Baia - $Id: TimeSpanConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ - - - - Creates a new instance of the - class. - - - - - Convert from a string value to a instance. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - A if successful. - - - - - A custom for - runtime type references. - - -

- Currently only supports conversion to and from a - . -

-
- Rick Evans (.NET) - $Id: RuntimeTypeConverter.cs,v 1.1 2007/07/31 18:16:08 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Returns whether this converter can convert an object of one - to the - of this converter. - - -

- Currently only supports conversion from a - instance. -

-
- - A - that provides a format context. - - - A that represents the - you want to convert from. - - True if the conversion is possible. -
- - - Returns whether this converter can convert the object to the specified - . - - - A - that provides a format context. - - - A that represents the - you want to convert to. - - True if the conversion is possible. - - - - Converts the given value to the type of this converter. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - An that represents the converted value. - - - - - Converts the given value object to the specified type, - using the specified context and culture information. - - - A - that provides a format context. - - - The to use - as the current culture. - - - The value that is to be converted. - - - The to convert the - parameter to. - - - An that represents the converted value. - - - - - Thrown in response to encountering a value - when traversing a nested path expression. - - $Id: NullValueInNestedPathException.cs,v 1.2 2007/07/31 03:47:22 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The of the object where the property was not found. - - The name of the property not found. - - - - Creates a new instance of the - class. - - - The of the object where the property was not found. - - The name of the property not found. - A message about the exception. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Populates a with - the data needed to serialize the target object. - - - The to populate - with data. - - - The destination (see ) - for this serialization. - - - - - The name of the offending property. - - - - - The of the class where the property was last looked for. - - - - - Criteria that is satisfied if the number of parameters to a given - matches an arbitrary number. - - -

- This class supports checking the parameter count of both methods and - constructors. -

-

- Default parameters, etc need to taken into account. -

-
- Rick Evans - $Id: MethodParametersCountCriteria.cs,v 1.2 2007/09/20 14:20:45 bbaia Exp $ -
- - - Creates a new instance of the - class. - - -

- This constructor sets the - - property to zero (0). -

-
-
- - - Creates a new instance of the - class. - - - The number of parameters that a - must have to satisfy this criteria. - - - If the supplied is less - than zero. - - - - - Does the supplied satisfy the criteria encapsulated by - this instance? - - The datum to be checked by this criteria instance. - - True if the supplied satisfies the criteria encapsulated - by this instance; false if not or the supplied is null. - - - - - The number of parameters that a - must have to satisfy this criteria. - - - If the supplied value is less than zero. - - - - - An implementation that - reads context definitions from XML based resources. - - -

- Currently, the resources that are supported are the file, - http, ftp, config and assembly resource - types. -

-

- You can provide custom implementations of the - interface and and register them - with any that inherits - from the - - interface. -

- - In case of multiple config locations, later object definitions will - override ones defined in previously loaded resources. This can be - leveraged to deliberately override certain object definitions via an - extra XML file. - -
- -

- Find below some examples of instantiating an - using a - variety of different XML resources. -

- - // an XmlApplicationContext that reads its object definitions from an - // XML file that has been embedded in an assembly... - IApplicationContext context = new XmlApplicationContext - ( - "assembly://AssemblyName/NameSpace/ResourceName" - ); - - // an XmlApplicationContext that reads its object definitions from a - // number of disparate XML resources... - IApplicationContext context = new XmlApplicationContext - ( - // from an XML file that has been embedded in an assembly... - "assembly://AssemblyName/NameSpace/ResourceName", - // and from a (relative) filesystem-based resource... - "file://Objects/services.xml", - // and from an App.config / Web.config resource... - "config://spring/objects" - ); - -
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: XmlApplicationContext.cs,v 1.18 2007/08/08 17:46:37 bbaia Exp $ - - - -
- - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations. - - The created context will be case sensitive. - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations. - - Flag specifying whether to make this context case sensitive or not. - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations. - - The application context name. - Flag specifying whether to make this context case sensitive or not. - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations, - with the given . - - - The parent context (may be ). - - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations, - with the given . - - Flag specifying whether to make this context case sensitive or not. - - The parent context (may be ). - - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations, - with the given . - - The application context name. - Flag specifying whether to make this context case sensitive or not. - - The parent context (may be ). - - - Any number of XML based object definition resource locations. - - - - - Creates a new instance of the - class, - loading the definitions from the supplied XML resource locations, - with the given . - - - This constructor is meant to be used by derived classes. By passing =false, it is - the responsibility of the deriving class to call to initialize the context instance. - - if true, is called automatically. - The application context name. - Flag specifying whether to make this context case sensitive or not. - - The parent context (may be ). - - - Any number of XML based object definition resource locations. - - - - - An array of resource locations, referring to the XML object - definition files that this context is to be built with. - - - An array of resource locations, or if none. - - - - - - An that doesn't do a whole lot. - - -

- is an implementation of - the NullObject pattern. It should be used in those situations where a - needs to be passed (say to a - method) but where the resolution of messages is not required. -

-

- There should not (typically) be a need to instantiate instances of this class; - does not maintan any state - and the instance is - thus safe to pass around. -

-
- Aleksandar Seovic - $Id: NullMessageSource.cs,v 1.5 2007/08/27 09:38:29 oakinger Exp $ -
- - - The canonical instance of the - class. - - - - - Creates a new instance of the class. - - -

- Consider using - instead. -

-
-
- - - Simply returns the supplied message as-is. - - The code of the message to resolve. - - The to resolve the - code for. - - - The supplied message as-is. - - - - - Always returns . - - The code of the object to resolve. - - The to resolve the - code for. - - - (always). - - - - - Does nothing. - - - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - - - Default implementation of the - interface. - - -

- Provides easy ways to store all the necessary values needed to resolve - messages from an . -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: DefaultMessageSourceResolvable.cs,v 1.4 2007/07/02 21:24:39 markpollack Exp $ - -
- - - Creates a new instance of the - class - using a single code. - - The message code to be resolved. - - - - Initializes a new instance of the class. - - The codes to be used to resolve this message - - - - Creates a new instance of the - class - using multiple codes. - - The message codes to be resolved. - - The arguments used to resolve the supplied . - - - - - Creates a new instance of the - class - using multiple codes and a default message. - - The message codes to be resolved. - - The arguments used to resolve the supplied . - - - The default message used if no code could be resolved. - - - - - Creates a new instance of the - class - from another resolvable. - - -

- This is the copy constructor for the - class. -

-
- - The to be copied. - - - If the supplied is . - -
- - - Returns a representation of this - . - - - A representation of this - . - - - - - Calls the visit method on the supplied - to output a version of this class. - - The visitor to use. - - A representation of this - . - - - - - Return the codes to be used to resolve this message, in the order - that they are to be tried. - - - A array of codes which are associated - with this message. - - - - - - Return the array of arguments to be used to resolve this message. - - - An array of objects to be used as parameters to replace - placeholders within the message text. - - - - - - Return the default code for this resolvable. - - - The default code of this resolvable; this will be the last code in - the codes array, or if this instance has no - codes. - - - - - - Return the default message to be used to resolve this message. - - - The default message, or if there is no - default. - - - - - - Validates that object matches specified regular expression. - - -

- The test expression must evaluate to a ; - otherwise, an exception is thrown. -

-
- Aleksandar Seovic - $Id: RegularExpressionValidator.cs,v 1.2 2006/04/09 07:19:04 markpollack Exp $ -
- - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - The regular expression to match against. - - - - Creates a new instance of the class. - - The expression to validate. - The expression that determines if this validator should be evaluated. - The regular expression to match against. - - - - Validates an object. - - Object to validate. - - if the supplied - object is valid. - - - If the supplied is not a - - - - - - The regular expression text to match against. - - The regular expression text. - - - - The for the regular expression evaluation. - - The regular expression evaluation options. - - - - - Allows developers to specify which validator should be used - to validate method argument. - - Damjan Tomic - Aleksandar Seovic - $Id: ValidatedAttribute.cs,v 1.1 2008/04/02 23:02:36 markpollack Exp $ - - - - Creates an attribute instance. - - - The name of the validator to use (must be defined within - Spring application context). - - - - - Gets the name of the validator to use. - - The name of the validator to use. - - - - An implementation of the Java Properties class. - - Simon White - $Id: Properties.cs,v 1.16 2007/07/31 18:16:26 bbaia Exp $ - - - - Creates an empty property list with no default values. - - - - - Creates a property list with the specified initial properties. - - The initial properties. - - - - Reads a property list (key and element pairs) from the input stream. - - The stream to load from. - - - - Reads a property list (key and element pairs) from a text reader. - - The text reader to load from. - - - - Reads a property list (key and element pairs) from the input stream. - - the dictionary to put it in - The stream to load from. - - - - Reads a property list (key and element pairs) from a text reader. - - the dictionary to put it in - The text reader to load from. - - - - Strips whitespace from the front of the specified string. - - The string. - The string with all leading whitespace removed. - - - - Splits the specified string into a key / value pair. - - The line to split. - An array containing the key / value pair. - - - - Searches for the property with the specified key in this property list. - - The key. - The property, or null if the key was not found. - - - - Searches for the property with the specified key in this property list. - - The key. - - The default value to be returned if the key is not found. - - The property, or the default value. - - - - Writes this property list out to the specified stream. - - The stream to write to. - - - - Sets the specified property key / value pair. - - The key. - The value. - - - - Writes the properties in this instance out to the supplied stream. - - The stream to write to. - Arbitrary header information. - - - - Removes the key / value pair identified by the supplied key. - - - The key identifying the key / value pair to be removed. - - - - - Adds the specified key / object pair to this collection. - - The key. - The value. - - - - Adds the specified key / object pair to this collection. - - - - - Miscellaneous collection utility methods. - - - Mainly for internal use within the framework. - - Mark Pollack (.NET) - $Id: CollectionUtils.cs,v 1.9 2006/04/09 07:19:00 markpollack Exp $ - - - - Determine whether a given collection only contains - a single unique object - - - - - - - Determines whether the contains the specified . - - The collection to check. - The object to locate in the collection. - if the element is in the collection, otherwise. - - - - Adds the specified to the specified . - - The collection to add the element to. - The object to add to the collection. - - - - Determines whether the collection contains all the elements in the specified collection. - - The collection to check. - Collection whose elements would be checked for containment. - true if the target collection contains all the elements of the specified collection. - - - - Removes all the elements from the target collection that are contained in the source collection. - - Collection where the elements will be removed. - Elements to remove from the target collection. - - - - Converts an instance to an instance. - - The instance to be converted. - An instance in which its elements are the elements of the instance. - if the is null. - - - - Holds information and value for an individual property. - - -

- Using an object here, rather than just storing all properties in a - map keyed by property name, allows for more flexibility, and the - ability to handle indexed properties in a special way if necessary. -

-

- Note that the value doesn't need to be the final required - : an - implementation must - handle any necessary conversion, as this object doesn't know anything - about the objects it will be applied to. -

-
- Rod Johnson - Mark Pollack (.NET) - $Id: PropertyValue.cs,v 1.15 2007/07/31 00:08:42 markpollack Exp $ -
- - - Creates a new instance of the - class. - - The name of the property. - - The value of the property (possibly before type conversion). - - - If the supplied is or - contains only whitespace character(s). - - - - - Creates a new instance of the - class. - - The name of the property. - - The value of the property (possibly before type conversion). - - Pre-parsed property name. - - If the supplied or - is , or if the name contains only whitespace characters. - - - - - Print a string representation of the property. - - A string representation of the property. - - - - Determines whether the supplied - is equal to the current . - - The other instance. - - if they are equal in content. - - - - - Serves as a hash function for a particular type, suitable for use - in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - The name of the property. - The name of the property. - - - - Parsed property expression. - - - - - Return the value of the property. - - -

- Note that type conversion will not have occurred here. - It is the responsibility of the - implementation to - perform type conversion. -

-
- The (possibly unresolved) value of the property. -
- - - Exception thrown if an - is not fully - initialized, for example if it is involved in a circular reference. - - -

- This is usually indicated by any of the variants of the - - method returning . -

-

- A circular reference with an - cannot be solved by eagerly caching singleton instances (as is the - case with normal objects. The reason is that every - needs to be fully - initialized before it can return the created object, while only specific - normal objects need to be initialized - that is, if a collaborating object - actually invokes them on initialization instead of just storing the reference. -

-
- Juergen Hoeller - Rick Evans (.NET) - $Id: FactoryObjectNotInitializedException.cs,v 1.4 2007/12/05 00:28:04 bbaia Exp $ -
- - - Creates a new instance of the - FactoryObjectNotInitializedException class. - - - - - Creates a new instance of the FactoryObjectNotInitializedException class. - - - A message about the exception. - - - - - Creates a new instance of the FactoryObjectNotInitializedException class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - FactoryObjectCircularReferenceException class. - - - The name of the object that triggered the exception. - - - A message about the exception. - - - - - Creates a new instance of the FactoryObjectCircularReferenceException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - A convenience class to create a - given the resource base - name and assembly name. - - -

- This is currently the preferred way of injecting resources into view - tier components (such as Windows Forms GUIs and ASP.NET ASPX pages). - A GUI component (typically a Windows Form) is injected with - an instance, and can - then proceed to use the various GetXxx() methods on the - to retrieve images, - strings, custom resources, etc. -

-
- Mark Pollack - $Id: ResourceManagerFactoryObject.cs,v 1.11 2007/03/16 04:01:39 aseovic Exp $ - - - -
- - - Creates a . - - - If an exception occured during object creation. - - The object returned by this factory. - - - - - - Invoked by an - after it has set all object properties supplied - (and satisfied the - - and - interfaces). - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - - The root name of the resources. - - -

- For example, the root name for the resource file named - "MyResource.en-US.resources" is "MyResource". -

- - The namespace is also prefixed before the resource file name. - -
-
- - - The string representation of the assembly that contains the resource. - - - - - The . - - - - - implementation that - retrieves a static or non-static public field value. - - -

- Typically used for retrieving public constants. -

-
- -

- The following example retrieves the field value... -

- - - - - - -

- The previous example could also have been written using the convenience - - property, like so... -

- - - - - -

- This class also implements the - interface - (). - If the id (or name) of one's - - object definition is set to the - of the field to be retrieved, then the id (or - name) of one's object definition will be used for the name of the - field lookup. See below for an example of this - concise style of definition. -

- - - - - - - -

- The usage for retrieving instance fields is similar. No example is shown - because public instance fields are generally bad practice; but if - you have some legacy code that exposes public instance fields, or if you - just really like coding public instance fields, then you can use this - implementation to - retrieve such field values. -

- - Juergen Hoeller - Rick Evans (.NET) - $Id: FieldRetrievingFactoryObject.cs,v 1.8 2007/07/31 18:16:49 bbaia Exp $ - - - - Invoked by an - after it has set all object properties supplied - (and satisfied - and ApplicationContextAware). - - -

- This method allows the object instance to perform initialization only - possible when all object properties have been set and to throw an - exception in the event of misconfiguration. -

-
- - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - -
- - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - - The of the - field to be retrieved. - - - - - Set the name of the object in the object factory that created this object. - - - The name of the object in the factory. - - -

- In the context of the - - class, the - - value will be interepreted as the value of the - - property if no value has been explicitly assigned to the - - property. This allows for concise object definitions with just an id or name; - see the class documentation for - - for an example of this style of usage. -

-
-
- - - The name of the field the value of which is to be retrieved. - - -

- If the - - has been set (and is not ), then the value of this property - refers to an instance field name; it otherwise refers to a - field name. -

-
-
- - - The object instance on which the field is defined. - - - - - The on which the field is defined. - - - - - The of object that this - creates, or - if not known in advance. - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - implementation that - creates delegates. - - -

- Supports the creation of s for both - instance and methods. -

-
- Rick Evans - $Id: DelegateFactoryObject.cs,v 1.6 2007/03/16 04:01:35 aseovic Exp $ -
- - - Callback method called once all factory properties have been set. - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - - Creates the delegate. - - - If an exception occured during object creation. - - The object returned by this factory. - - - - - The of - created by this factory. - - -

- Returns the - if accessed prior to the method - being called. -

-
-
- - - The of the - created by this factory. - - - - - The name of the method that is to be invoked by the created - delegate. - - - - - The target if the - refers to a method. - - - - - The target object if the - refers to an instance method. - - - - - Visitor class for traversing objects, in particular - the property values and constructor arguments contained in them resolving - object metadata values. - - - Used by and - to parse all string values contained in a ObjectDefinition, resolving any placeholders found. - - Mark Pollack - $Id: ObjectDefinitionVisitor.cs,v 1.9 2008/02/18 00:02:27 bbaia Exp $ - - - - Initializes a new instance of the class, - applying the specified IVariableSource to all object metadata values. - - The variable source. - - - - Initializes a new instance of the class - for subclassing - - Subclasses should override the ResolveStringValue method - - - - Traverse the given ObjectDefinition object and the MutablePropertyValues - and ConstructorArgumentValues contained in them. - - The object definition to traverse. - - - - Visits the ObjectDefinition property ObjectTypeName, replacing string values using - the specified IVariableSource. - - The object definition. - - - - Visits the property values of the ObjectDefinition, replacing string values - using the specified IVariableSource. - - The object definition. - - - - Visits the indexed constructor argument values, replacing string values using the - specified IVariableSource. - - The indexed argument values. - - - - Visits the named constructor argument values, replacing string values using the - specified IVariableSource. - - The named argument values. - - - - Visits the generic constructor argument values, replacing string values using - the specified IVariableSource. - - The genreic argument values. - - - - Configures the constructor argument ValueHolder. - - The vconstructor alue holder. - - - - Resolves the given value taken from an object definition according to its type - - the value to resolve - the resolved value - - - - Visits the ManagedList property ElementTypeName and - calls for list element. - - - - - Visits the ManagedSet property ElementTypeName and - calls for list element. - - - - - Visits the ManagedSet properties KeyTypeName and ValueTypeName and - calls for dictionary's value element. - - - - - Visits the elements of a NameValueCollection and calls - for value of each element. - - - - - Looks up the value of the given variable name in the configured . - - The name of the variable to be looked up - - The value of this variable, as returned from the passed - into the constructor - - If no has been configured. - - - - Loads a list of resources that should be applied from the .NET . - - -

- This implementation will iterate over all resource managers - within the message source and return a list of all the resources whose name starts with '$this'. -

-

- All other resources will be ignored, but you can retrieve them by calling one of - GetMessage methods on the message source directly. -

-
- Aleksandar Seovic - $Id: ResourceSetLocalizer.cs,v 1.11 2007/07/24 17:26:25 oakinger Exp $ -
- - - Loads resources from the storage and creates a list of instances that should be applied to the target. - - - This feature is not currently supported on version 1.0 of the .NET platform. - - Target to get a list of resources for. - instance to retrieve resources from. - Resource locale. - A list of resources to apply. - - - - Represents parsed variable node. - - Aleksandar Seovic - $Id: VariableNode.cs,v 1.8 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns value of the variable represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Sets value of the variable represented by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - New value for this node. - - - - Represents parsed integer literal node. - - Aleksandar Seovic - $Id: IntLiteralNode.cs,v 1.10 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the integer literal node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Represents parsed named argument node in the expression. - - Aleksandar Seovic - $Id: QualifiedIdentifier.cs,v 1.7 2007/09/07 03:01:26 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns the value of the named argument defined by this node. - - Context to evaluate expressions against. - Current expression evaluation context. - Node's value. - - - - Overrides getText to allow easy way to get fully - qualified identifier. - - - Fully qualified identifier as a string. - - - - - Represents parsed boolean literal node. - - Aleksandar Seovic - $Id: BooleanLiteralNode.cs,v 1.9 2007/09/07 03:01:21 markpollack Exp $ - - - - Create a new instance - - - - - Create a new instance from SerializationInfo - - - - - Returns a value for the boolean literal node. - - - This is the entrypoint into evaluating this expression. - - Node's value. - - - - Factory class to conceal any default implementation. - - Rod Johnson - Simon White (.NET) - $Id: ControlFlowFactory.cs,v 1.9 2007/07/31 01:35:07 markpollack Exp $ - - - - Creates a new instance of the - implementation provided by this factory. - - - A new instance of the - implementation provided by this factory. - - - - - Creates a new instance of the - class. - - - - - Detects whether the caller is under the supplied , - according to the current stacktrace. - - - - - - Detects whether the caller is under the supplied - and , according to the current stacktrace. - - -

- Matches the whole method name. -

-
- -
- - - Does the current stack trace contain the supplied ? - - -

- This leaves it up to the caller to decide what matches, but is obviously less of - an abstraction because the caller must know the exact format of the underlying - stack trace. -

-
- -
- - - Empty implementation that - simply delegates all method calls to it's parent - . - - -

- If no parent is available, - no messages will be resolved (and a - will be thrown). -

-

- Used as placeholder by the - class, - if the context definition doesn't define its own - . Not intended for direct use - in applications. -

-
- Juergan Hoeller - Rick Evans (.NET) - $Id: DelegatingMessageSource.cs,v 1.5 2007/07/02 21:24:39 markpollack Exp $ - -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The parent message source used to try and resolve messages that - this object can't resolve. - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Resolve the message identified by the supplied - . - - The name of the message to resolve. - The default message. - - The that represents - the culture for which the resource is localized. - - - The array of arguments that will be filled in for parameters within - the message, or if there are no parameters - within the message. Parameters within a message should be - referenced using the same syntax as the format string for the - method. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - - - - Resolve the message using all of the attributes contained within - the supplied - argument. - - - The value object storing those attributes that are required to - properly resolve a message. - - - The that represents - the culture for which the resource is localized. - - - The resolved message if the lookup was successful (see above for - the return value in the case of an unsuccessful lookup). - - - If the message could not be resolved. - - - If the message could not be resolved. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The resolved object, or if not found. - - - - - - Gets a localized resource object identified by the supplied - . - - - The name of the resource object to resolve. - - - The with which the - resource is associated. - - - The resolved object, or if not found. - - - - - - Applies resources to object properties. - - - An object that contains the property values to be applied. - - - The base name of the object to use for key lookup. - - - The with which the - resource is associated. - - - - - - The parent message source used to try and resolve messages that - this object can't resolve. - - - - - - A simple implementation backed by a dictionary that - never expires cache items. - - Aleksandar Seovic - $Id: NonExpiringCache.cs,v 1.4 2007/08/24 22:43:55 oakinger Exp $ - - - - Retrieves an item from the cache. - - - Item key. - - - Item for the specified , or null. - - - - - Removes an item from the cache. - - - Item key. - - - - - Removes collection of items from the cache. - - - Collection of keys to remove. - - - - - Removes all items from the cache. - - - - - Inserts an item into the cache. - - - Item key. - - - Item value. - - - Item's time-to-live (TTL) in milliseconds. - - - - - Gets the number of items in the cache. - - - - - Gets a collection of all cache item keys. - - - - - This attribute should be used to mark methods whose result - needs to be cached. - - -

- This attribute allows application developers to mark that a result - of the method invocation should be cached, but it will not do any - caching by itself. -

-

- In order to actually cache the result, an application developer - must apply a Spring.Aspects.Cache.CacheResultAdvice to - all of the members that have this attribute defined. -

-
- Aleksandar Seovic - $Id: CacheResultAttribute.cs,v 1.1 2007/02/09 07:12:23 aseovic Exp $ -
- - - Creates an attribute instance. - - - - - Creates an attribute instance. - - - The name of the cache to use. - - - An expression string that should be evaluated in order to determine - the cache key for the item. - - - - diff --git a/src/Spring/Spring.Data.NHibernate/Spring.Data.NHibernate.xml b/src/Spring/Spring.Data.NHibernate/Spring.Data.NHibernate.xml deleted file mode 100644 index eab1ba6c..00000000 --- a/src/Spring/Spring.Data.NHibernate/Spring.Data.NHibernate.xml +++ /dev/null @@ -1,3906 +0,0 @@ - - - - Spring.Data.NHibernate - - - - - Holds the references and configuration settings for a instance. - References are resolved by looking up the given object names in the root obtained by . - - - - - Holds the references and configuration settings for a instance. - - - - - Default value for property. - - - - - Default value for property. - - - - - Initialize a new instance of with default values. - - - Calling this constructor from your derived class leaves and - uninitialized. See and for more. - - - - - Initialize a new instance of with the given sessionFactory - and default values for all other settings. - - - The instance to be used for obtaining instances. - - - Calling this constructor marks all properties initialized. - - - - - Initialize a new instance of with the given values and references. - - - The instance to be used for obtaining instances. - - - Specify the to be set on each session provided by the instance. - - - Set whether to use a single session for each request. See property for details. - - - 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. - - - - - Override this method to resolve an instance according to your chosen strategy. - - - - - Gets the configured instance to be used. - - - If the entity interceptor is not set by the constructor, this property calls - to obtain an instance. This allows derived classes to - override the behaviour of how to obtain the concrete instance. - - - - - Gets the configured instance to be used. - - - If this property is requested for the first time, is called. - This allows derived classes to override the behaviour of how to obtain the concrete instance. - - If the instance cannot be resolved. - - - - Set whether to use a single session for each request. Default is "true". - If set to false, each data access operation or transaction will use - its own session (like without Open Session in View). Each of those - sessions will be registered for deferred close, though, actually - processed at request completion. - - - - - 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. - - - - - The default session factory name to use when retrieving the Hibernate session factory from - the root context. - - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - The configuration section to read setting variables from. - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - The variable source to obtain settings from. - - - - Resolve the entityInterceptor by looking up - in the root application context. - - The resolved instance or - - - - Resolve the by looking up - in the root application context. - - The resolved instance or - - - - Helper class featuring methods for Hibernate Session handling, - allowing for reuse of Hibernate Session instances within transactions. - Also provides support for exception translation. - - Mark Pollack (.NET) - $Id: SessionFactoryUtils.cs,v 1.5 2008/04/08 20:26:37 markpollack Exp $ - - - - The instance for this class. - - - - - The ordering value for synchronizaiton this session resources. - Set to be lower than ADO.NET synchronization. - - - - - Initializes a new instance of the class. - - - - - Get a new Hibernate Session from the given SessionFactory. - Will return a new Session even if there already is a pre-bound - Session for the given SessionFactory. - - - Within a transaction, this method will create a new Session - that shares the transaction's ADO.NET Connection. More specifically, - it will use the same ADO.NET Connection as the pre-bound Hibernate Session. - - The session factory to create the session with. - The Hibernate entity interceptor, or null if none. - The new session. - If could not open Hibernate session - - - - Get a Hibernate Session for the given SessionFactory. Is aware of and will - return any existing corresponding Session bound to the current thread, for - example when using HibernateTransactionManager. Will always create a new - Session otherwise. - - - Supports setting a Session-level Hibernate entity interceptor that allows - to inspect and change property values before writing to and reading from the - database. Such an interceptor can also be set at the SessionFactory level - (i.e. on LocalSessionFactoryObject), on HibernateTransactionManager, or on - HibernateInterceptor/HibernateTemplate. - - The session factory to create the - session with. - Hibernate entity interceptor, or null if none. - AdoExceptionTranslator to use for flushing the - Session on transaction synchronization (can be null; only used when actually - registering a transaction synchronization). - The Hibernate Session - - If the session couldn't be created. - - - If no thread-bound Session found and allowCreate is false. - - - - - Get a Hibernate Session for the given SessionFactory. Is aware of and will - return any existing corresponding Session bound to the current thread, for - example when using . Will create a new Session - otherwise, if allowCreate is true. - - The session factory to create the session with. - if set to true create a non-transactional Session when no - transactional Session can be found for the current thread. - The hibernate session - - If the session couldn't be created. - - - If no thread-bound Session found and allowCreate is false. - - - - - Get a Hibernate Session for the given SessionFactory. - - Is aware of and will return any existing corresponding - Session bound to the current thread, for example whenusing - . Will create a new - Session otherwise, if "allowCreate" is true. -

Throws the orginal HibernateException, in contrast to - . -

- The session factory. - if set to true [allow create]. - The Hibernate Session - - if the Session couldn't be created - - - If no thread-bound Session found and allowCreate is false. - -
- - - Open a new Session from the factory. - - The session factory to create the session with. - Hibernate entity interceptor, or null if none. - the newly opened session - - - - Perform the actual closing of the Hibernate Session - catching and logging any cleanup exceptions thrown. - - The hibernate session to close - - - - Return whether the given Hibernate Session is transactional, that is, - bound to the current thread by Spring's transaction facilities. - - The hibernate session to check - The session factory that the session - was created with, can be null. - - true if the session transactional; otherwise, false. - - - - - Convert the given HibernateException to an appropriate exception from the - Spring.Dao hierarchy. Note that it is advisable to - handle AdoException specifically by using a AdoExceptionTranslator for the - underlying ADO.NET exception. - - The Hibernate exception that occured. - DataAccessException instance - - - - Close the given Session, created via the given factory, - if it is not managed externally (i.e. not bound to the thread). - - The hibernate session to close - The hibernate SessionFactory that - the session was created with. - - - - Close the given Session or register it for deferred close. - - The session. - The session factory. - - - - Initialize deferred close for the current thread and the given SessionFactory. - Sessions will not be actually closed on close calls then, but rather at a - processDeferredClose call at a finishing point (like request completion). - - The session factory. - - - - Return if deferred close is active for the current thread - and the given SessionFactory. - The session factory. - - true if [is deferred close active] [the specified session factory]; otherwise, false. - - If SessionFactory argument is null. - - - - Process Sessions that have been registered for deferred close - for the given SessionFactory. - - The session factory. - If there is no session factory associated with the thread. - - - - Applies the current transaction timeout, if any, to the given - criteria object - - The Hibernate Criteria object. - Hibernate SessionFactory that the Criteria was created for - (can be null). - If criteria argument is null. - - - - Applies the current transaction timeout, if any, to the given - Hibenrate query object. - - The Hibernate Query object. - Hibernate SessionFactory that the Query was created for - (can be null). - If query argument is null. - - - - Gets the Spring IDbProvider given the ISessionFactory. - - The matching is performed by comparing the assembly qualified - name string of the hibernate Driver.ConnectionType to those in - the DbProviderFactory definitions. No connections are created - in performing this comparison. - The session factory. - The corresponding IDbProvider, null if no mapping was found. - If DbProviderFactory's ApplicaitonContext is not - an instance of IConfigurableApplicaitonContext. - - - - Create a IAdoExceptionTranslator from the given SessionFactory. - - If a corresponding IDbProvider is found, a ErrorcodeExceptionTranslator - for the IDbProvider is created. Otherwise, a FallbackException is created. - The session factory to create the translator for - An IAdoExceptionTranslator - - - - Callback interface for NHibernate code. - - To be used with HibernateTemplate execute - method. The typical implementation will call - Session.load/find/save/update to perform - some operations on persistent objects. - - Mark Pollack (.NET) - $Id: IHibernateCallback.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
- A result object, or null if none. -
- - - Base class for HibernateTemplate defining common - properties like SessionFactory and flushing behavior. - - -

Not intended to be used directly. See HibernateTemplate. -

-
- Mark Pollack (.NET) - $Id: HibernateAccessor.cs,v 1.6 2008/01/25 15:04:39 markpollack Exp $ -
- - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Apply the flush mode that's been specified for this accessor - to the given Session. - - The current Hibernate Session. - if set to true - if executing within an existing transaction. - - the previous flush mode to restore after the operation, - or null if none - - - - - Flush the given Hibernate Session if necessary. - - The current Hibernate Session. - if set to true - if executing within an existing transaction. - - - - Convert the given HibernateException to an appropriate exception from the - org.springframework.dao hierarchy. Will automatically detect - wrapped ADO.NET Exceptions and convert them accordingly. - - HibernateException that occured. - - The corresponding DataAccessException instance - - - The default implementation delegates to SessionFactoryUtils - and convertAdoAccessException. Can be overridden in subclasses. - - - - - Converts the ADO.NET access exception to an appropriate exception from the - org.springframework.dao hierarchy. Can be overridden in subclasses. - - ADOException that occured, wrapping underlying ADO.NET exception. - - the corresponding DataAccessException instance - - - - - Converts the ADO.NET access exception to an appropriate exception from the - org.springframework.dao hierarchy. Can be overridden in subclasses. - - - - Note that a direct SQLException can just occur when callback code - performs direct ADO.NET access via ISession.Connection(). - - - The ADO.NET exception. - The corresponding DataAccessException instance - - - - Prepare the given IQuery object, applying cache settings and/or - a transaction timeout. - - The query object to prepare. - - - - Apply the given name parameter to the given Query object. - - The query object. - Name of the parameter - The value of the parameter - The NHibernate type of the parameter (or null if none specified) - - - - Prepare the given Criteria object, applying cache settings and/or - a transaction timeout. - - - Note that for NHibernate 1.2 this only works if the - implementation is of the type CriteriaImpl, which should generally - be the case. The SetFetchSize method is not available on the - ICriteria interface - - This is a no-op for NHibernate 1.0.x since - the SetFetchSize method is not on the ICriteria interface and - the implementation class is has internal access. - - To remove the method completely for Spring's NHibernate 1.0 - support while reusing code for NHibernate 1.2 would not be - possible. So now this ineffectual operation is left in tact for - NHibernate 1.0.2 support. - - The criteria object to prepare - - - - Ensure SessionFactory is not null - - - - - Gets or sets if a new Session should be created when no transactional Session - can be found for the current thread. - - - true if allowed to create non-transaction session; - otherwise, false. - - -

HibernateTemplate is aware of a corresponding Session bound to the - current thread, for example when using HibernateTransactionManager. - If allowCreate is true, a new non-transactional Session will be created - if none found, which needs to be closed at the end of the operation. - If false, an InvalidOperationException will get thrown in this case. -

-
-
- - - Gets or sets a value indicating whether to always - use a new Hibernate Session for this template. - - true if always use new session; otherwise, false. - -

- Default is "false"; if activated, all operations on this template will - work on a new NHibernate ISession even in case of a pre-bound ISession - (for example, within a transaction). -

-

Within a transaction, a new NHibernate ISession used by this template - will participate in the transaction through using the same ADO.NET - Connection. In such a scenario, multiple Sessions will participate - in the same database transaction. -

-

Turn this on for operations that are supposed to always execute - independently, without side effects caused by a shared NHibernate ISession. -

-
-
- - - Set whether to expose the native Hibernate Session to IHibernateCallback - code. Default is "false": a Session proxy will be returned, - suppressing close calls and automatically applying - query cache settings and transaction timeouts. - - true if expose native session; otherwise, false. - - - - Gets or sets the template flush mode. - - - Default is Auto. Will get applied to any new ISession - created by the template. - - The template flush mode. - - - - Gets or sets the entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - - - Will get applied to any new ISession created by this object. -

Such an interceptor can either be set at the ISessionFactory level, - i.e. on LocalSessionFactoryObject, or at the ISession level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. -

-
- The interceptor. -
- - - Set the object name of a Hibernate entity interceptor that allows to inspect - and change property values before writing to and reading from the database. - - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
-
- - - Gets or sets the session factory that should be used to create - NHibernate ISessions. - - The session factory. - - - - Set the object factory instance. - - - - - Gets or sets a value indicating whether to - cache all queries executed by this template. - - - If this is true, all IQuery and ICriteria objects created by - this template will be marked as cacheable (including all - queries through find methods). -

To specify the query region to be used for queries cached - by this template, set the QueryCacheRegion property. -

-
- true if cache queries; otherwise, false. -
- - - Gets or sets the name of the cache region for queries executed by this template. - - - If this is specified, it will be applied to all IQuery and ICriteria objects - created by this template (including all queries through find methods). -

The cache region will not take effect unless queries created by this - template are configured to be cached via the CacheQueries property. -

-
- The query cache region. -
- - - Gets or sets the fetch size for this HibernateTemplate. - - The size of the fetch. - This is important for processing - large result sets: Setting this higher than the default value will increase - processing speed at the cost of memory consumption; setting this lower can - avoid transferring row data that will never be read by the application. -

Default is 0, indicating to use the driver's default.

-
-
- - - Gets or sets the maximum number of rows for this HibernateTemplate. - - The max results. - - This is important - for processing subsets of large result sets, avoiding to read and hold - the entire result set in the database or in the ADO.NET driver if we're - never interested in the entire result in the first place (for example, - when performing searches that might return a large number of matches). -

Default is 0, indicating to use the driver's default.

-
-
- - - Set the ADO.NET exception translator for this instance. - Applied to System.Data.Common.DbException (or provider specific exception type - in .NET 1.1) thrown by callback code, be it direct - DbException or wrapped Hibernate ADOExceptions. -

The default exception translator is either a ErrorCodeExceptionTranslator - if a DbProvider is available, or a FalbackExceptionTranslator otherwise -

-
- The ADO exception translator. -
- - - Gets a Session for use by this template. - - The session. - - - Returns a new Session in case of "alwaysUseNewSession" (using the same ADO.NET connection as a transaction Session, if applicable) - - a pre-bound Session in case of "AllowCreate" is set to false (not the default) - - or a pre-bound Session or new Session if no transactional or other pre-bound Session exists. - - - - - Helper class to determine if the FlushMode enumeration - was changed from its default value - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The flush mode. - - - - Gets or sets a value indicating whether the FlushMode - property was set.. - - true if FlushMode was set; otherwise, false. - - - - Gets or sets the FlushMode. - - The FlushMode. - - - - Provide support for the open session in view pattern for lazily loaded hibernate objects - used in ASP.NET pages. - - jjx: http://forum.springframework.net/member.php?u=29 - Mark Pollack (.NET) - Erich Eichinger - Harald Radi - $Id: OpenSessionInViewModule.cs,v 1.7 2008/01/21 06:39:12 oakinger Exp $ - - - - Implementation of SessionScope that associates a single session within the using scope. - - - It is recommended to be used in the following type of scenario: - - using (new SessionScope()) - { - ... do multiple operation, possibly in multiple transactions. - } - - At the end of "using", the session is automatically closed. All transactions within the scope use the same session, - if you are using Spring's HibernateTemplate or using Spring's implementation of NHibernate 1.2's - ICurrentSessionContext interface. - - - It is assumed that the session factory object name is called "SessionFactory". In case that you named the object - in different way you can specify your can specify it in the application settings using the key - Spring.Data.NHibernate.Support.SessionScope.SessionFactoryObjectName. Values for EntityInterceptorObjectName - and SingleSessionMode can be specified similarly. - - - Note: - The session is managed on a per thread basis on the thread that opens the scope instance. This means that you must - never pass a reference to a instance over to another thread! - - - Robert M. (.NET) - Harald Radi (.NET) - - - - The logging instance. - - - - - Initializes a new instance of the class in single session mode, - associating a session with the thread. The session is opened lazily on demand. - - - - - Initializes a new instance of the class. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The name of the configuration section to read configuration settings from. - See for more info. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The name of the configuration section to read configuration settings from. - See for more info. - - The type, who's full name is used for prefixing appSetting keys - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The instance to be used for obtaining instances. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The instance to be used for obtaining instances. - - - Specify the to be set on each session provided by this instance. - - - Set whether to use a single session for each request. See property for details. - - - Specify the flushmode to be applied on each session provided by this instance. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - An instance holding the scope configuration - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Sets a flag, whether this scope is in "open" state on the current logical thread. - - - - - Gets/Sets a flag, whether this scope manages it's own session for the current logical thread or not. - - false if session is managed by this module. false otherwise - - - - Call Close(), - - - - - Opens a new session or participates in an existing session and - registers with spring's . - - - - - Close the current view's session and unregisters - from spring's . - - - - - Set whether to use a single session for each request. Default is "true". - If set to false, each data access operation or transaction will use - its own session (like without Open Session in View). Each of those - sessions will be registered for deferred close, though, actually - processed at request completion. - - - - - 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 or set the configured SessionFactory - - - - - Get or set the configured EntityInterceptor - - - - - Gets a flag, whether this scope is in "open" state on the current logical thread. - - - - - Gets a flag, whether this scope manages it's own session for the current logical thread or not. - - - - - This sessionHolder creates a default session only if it is needed. - - - Although a NHibernateSession deferes creation of db-connections until they are really - needed, instantiation a session is imho still more expensive than this LazySessionHolder. (EE) - - - - - Session holder, wrapping a NHibernate ISession and a NHibernate Transaction. - HibernateTransactionManager binds instances of this class - to the thread, for a given ISessionFactory. - - - Note: This is an SPI class, not intended to be used by applications. - - Mark Pollack (.NET) - $Id: SessionHolder.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - May be used by derived classes to create an empty SessionHolder. - - - When using this ctor in your derived class, you MUST override ! - - - - - Initializes a new instance of the class. - - The session. - - - - Initializes a new instance of the class. - - The key to store the session under. - The hibernate session. - - - - May be overridden in a derived class to e.g. lazily create a session - - - - - Gets the session given key identifier - - The key. - A hibernate session - - - - Gets the session given the key and removes the session from - the dictionary storage. - - The key. - A hibernate session - - - - Adds the session to the dictionary storage using the default key. - - The hibernate session. - - - - Adds the session to the dictionary storage using the supplied key. - - The key. - The hibernate session. - - - - Removes the session from the dictionary storage for the given key. - - The key. - The session that was previously contained in the - dictionary storage. - - - - Determines whether the holder the specified session. - - The session. - - true if the holder contains the specified session; otherwise, false. - - - - - Clear the transaction state of this resource holder. - - - - - Gets the session using the default key - - The hibernate session. - - - - Gets the first session based on iteration over - the IDictionary storage. - - Any hibernate session. - - - - Gets a value indicating whether dictionary of - hibernate sessions is empty. - - - true if this session holder is empty; otherwise, false. - - - - - Gets a value indicating whether this SessionHolder - does not hold non default session. - - - true if does not hold non default session; otherwise, false. - - - - - Gets or sets the hibernate transaction. - - The transaction. - - - - Gets or sets the ADO.NET Connection used to create the session. - - The ADO.NET connection. - - - - Gets or sets the previous flush mode. - - The previous flush mode. - - - - Gets a value indicating whether the PreviousFlushMode property - was set. - - - true if assigned PreviousFlushMode property; otherwise, false. - - - - - Gets the validated session. - - The validated session. - - - - Initialize a new instance. - - - - - Create a new session on demand - - - - - Ensure session is closed (if any) and remove circular references to avoid memory leaks! - - - - - Gets or sets the LazySessionHolder instance for the current request - - - - - Initializes a new instance of the class. Creates a SessionScope, - but does not yet associate a session with a thread, that is lef to the lifecycle of the request. - - - - - Register context handler and look up SessionFactoryObjectName under the application configuration key, - Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName if not using the default value - (i.e. sessionFactory) and look up the SingleSession setting under the application configuration key, - Spring.Data.NHibernate.Support.OpenSessionInViewModule.SingleSession if not using the default value of true. - - The standard HTTP application context - - - - A do nothing dispose method. - - - - - PlatformTransactionManager implementation for a single Hibernate SessionFactory. - Binds a Hibernate Session from the specified factory to the thread, potentially - allowing for one thread Session per factory - - - SessionFactoryUtils and HibernateTemplate are aware of thread-bound Sessions and participate in such - transactions automatically. Using either of those is required for Hibernate - access code that needs to support this transaction handling mechanism. - - Supports custom isolation levels at the start of the transaction - , and timeouts that get applied as appropriate - Hibernate query timeouts. To support the latter, application code must either use - HibernateTemplate (which by default applies the timeouts) or call - SessionFactoryUtils.applyTransactionTimeout for each created - Hibernate Query object. - - Note that you can specify a Spring IDbProvider instance which if shared with - a corresponding instance of AdoTemplate will allow for mixing ADO.NET/NHibernate - operations within a single transaction. - - Mark Pollack (.NET) - $Id: HibernateTransactionManager.cs,v 1.7 2007/11/20 14:39:48 markpollack Exp $ - - - - Just needed for entityInterceptorBeanName. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The session factory. - - - - Return the current transaction object. - - The current transaction object. - - If transaction support is not available. - - - In the case of lookup or system errors. - - - - - Check if the given transaction object indicates an existing, - i.e. already begun, transaction. - - - Transaction object returned by - . - - True if there is an existing transaction. - - In the case of system errors. - - - - - Begin a new transaction with the given transaction definition. - - - Transaction object returned by - . - - - instance, describing - propagation behavior, isolation level, timeout etc. - - - Does not have to care about applying the propagation behavior, - as this has already been handled by this abstract manager. - - - In the case of creation or system errors. - - - - - Suspend the resources of the current transaction. - - - Transaction object returned by - . - - - An object that holds suspended resources (will be kept unexamined for passing it into - .) - - - Transaction synchronization will already have been suspended. - - - If suspending is not supported by the transaction manager implementation. - - - in case of system errors. - - - - - Resume the resources of the current transaction. - - - Transaction object returned by - . - - - The object that holds suspended resources as returned by - . - - - Transaction synchronization will be resumed afterwards. - - - If suspending is not supported by the transaction manager implementation. - - - In the case of system errors. - - - - - Perform an actual commit on the given transaction. - - The status representation of the transaction. - -

- An implementation does not need to check the rollback-only flag. -

-
- - In the case of system errors. - -
- - - Perform an actual rollback on the given transaction. - - The status representation of the transaction. - - An implementation does not need to check the new transaction flag. - - - In the case of system errors. - - - - - Set the given transaction rollback-only. Only called on rollback - if the current transaction takes part in an existing one. - - The status representation of the transaction. - - In the case of system errors. - - - - - Gets the ADO.NET IDbTransaction object from the NHibernate ITransaction object. - - The hibernate transaction. - The ADO.NET transaction. Null if could not get the transaction. Warning - messages will be logged in that case. - - - - Convert the given HibernateException to an appropriate exception from - the Spring.Dao hierarchy. Can be overridden in subclasses. - - The HibernateException that occured. - The corresponding DataAccessException instance - - - - Convert the given ADOException to an appropriate exception from the - the Spring.Dao hierarchy. Can be overridden in subclasses. - - The ADOException that occured, wrapping the underlying - ADO.NET thrown exception. - The translator to convert hibernate ADOExceptions. - - The corresponding DataAccessException instance - - - - - Cleanup resources after transaction completion. - - Transaction object returned by - . - - - This implemenation unbinds the SessionFactory and - DbProvider from thread local storage and closes the - ISession. - -

- Called after - and - - execution on any outcome. -

-

- Should not throw any exceptions but just issue warnings on errors. -

-
-
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Gets or sets the db provider. - - The db provider. - - - - Gets or sets a Hibernate entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - When getting, return the current Hibernate entity interceptor, or null if none. - - The entity interceptor. - - Resolves an entity interceptor object name via the object factory, - if necessary. - Will get applied to any new Session created by this transaction manager. - Such an interceptor can either be set at the SessionFactory level, - i.e. on LocalSessionFactoryObject, or at the Session level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. - - If object factory is null and need to get entity interceptor via object name. - - - - Sets the object name of a Hibernate entity interceptor that - allows to inspect and change property values before writing to and reading from the database. - - The name of the entity interceptor object. - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
-
- - - Gets or sets the ADO.NET exception translator for this transaction manager. - - - Applied to ADO.NET Exceptions (wrapped by Hibernate's ADOException) - - The ADO exception translator. - - - - Gets the default IAdoException translator, lazily creating it if nece - - The default IAdoException translator. - - - - Gets or sets the SessionFactory that this instance should manage transactions for. - - The session factory. - - - - Set whether to autodetect a ADO.NET connection used by the Hibernate SessionFactory, - if set via LocalSessionFactoryObject's DbProvider. Default is "true". - - - true if [autodetect data source]; otherwise, false. - - -

Can be turned off to deliberately ignore an available IDbProvider, - to not expose Hibernate transactions as ADO.NET transactions for that IDbProvider. -

-
-
- - - The object factory just needs to be known for resolving entity interceptor - It does not need to be set for any other mode of operation. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - - - - Return whether the transaction is internally marked as rollback-only. - - - True of the transaction is marked as rollback-only. - - - - Helper class that simplifies NHibernate data access code - - -

Typically used to implement data access or business logic services that - use NHibernate within their implementation but are Hibernate-agnostic in their - interface. The latter or code calling the latter only have to deal with - domain objects.

- -

The central method is Execute supporting Hibernate access code - implementing the HibernateCallback interface. It provides NHibernate Session - handling such that neither the IHibernateCallback implementation nor the calling - code needs to explicitly care about retrieving/closing NHibernate Sessions, - or handling Session lifecycle exceptions. For typical single step actions, - there are various convenience methods (Find, Load, SaveOrUpdate, Delete). -

- -

Can be used within a service implementation via direct instantiation - with a ISessionFactory reference, or get prepared in an application context - and given to services as an object reference. Note: The ISessionFactory should - always be configured as an object in the application context, in the first case - given to the service directly, in the second case to the prepared template. -

- -

This class can be considered as direct alternative to working with the raw - Hibernate Session API (through SessionFactoryUtils.Session). -

- -

LocalSessionFactoryObject is the preferred way of obtaining a reference - to a specific NHibernate ISessionFactory. -

-
- Mark Pollack (.NET) - $Id: HibernateTemplate.cs,v 1.3 2008/01/24 17:29:16 markpollack Exp $ -
- - - Interface that specifies a basic set of Hibernate operations. - - - Implemented by HibernateTemplate. Not often used, but a useful option - to enhance testability, as it can easily be mocked or stubbed. -

Provides HibernateTemplate's data access methods that mirror - various Session methods. See the NHibernate ISession documentation - for details on those methods. -

-
- - Mark Pollack (.NET) - $Id: IHibernateOperations.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ -
- - - Interface that specifies a set of Hibernate operations that - are common across versions of Hibernate. - - - Base interface for generic and non generic IHibernateOperations interfaces - Not often used, but a useful option - to enhance testability, as it can easily be mocked or stubbed. -

Provides HibernateTemplate's data access methods that mirror - various Session methods. See the NHibernate ISession documentation - for details on those methods. -

-
- Mark Pollack (.NET) - - $Id: ICommonHibernateOperations.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ -
- - - Remove all objects from the Session cache, and cancel all pending saves, - updates and deletes. - - In case of Hibernate errors - - - - Delete the given persistent instance. - - The persistent instance to delete. - In case of Hibernate errors - - - - Delete the given persistent instance. - - - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - Tthe persistent instance to delete. - The lock mode to obtain. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The value of the parameter. - The Hibernate type of the parameter (or null). - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The values of the parameters. - Hibernate types of the parameters (or null) - The number of entity instances deleted. - In case of Hibernate errors - - - - Flush all pending saves, updates and deletes to the database. - - - Only invoke this for selective eager flushing, for example when ADO.NET code - needs to see certain changes within the same transaction. Else, it's preferable - to rely on auto-flushing at transaction completion. - - In case of Hibernate errors - - - - Load the persistent instance with the given identifier - into the given object, throwing an exception if not found. - - Entity the object (of the target class) to load into. - An identifier of the persistent instance. - If object not found. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - - The persistent instance to re-read. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - Obtains the specified lock mode for the instance. - - The persistent instance to re-read. - The lock mode to obtain. - In case of Hibernate errors - - - - Determines whether the given object is in the Session cache. - - the persistence instance to check. - - true if session cache contains the specified entity; otherwise, false. - - In case of Hibernate errors - - - - Remove the given object from the Session cache. - - The persistent instance to evict. - In case of Hibernate errors - - - - Obtain the specified lock level upon the given object, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The he persistent instance to lock. - The lock mode to obtain. - If not found - In case of Hibernate errors - - - - Persist the given transient instance. - - The transient instance to persist. - The generated identifier. - In case of Hibernate errors - - - - Persist the given transient instance with the given identifier. - - The transient instance to persist. - The identifier to assign. - In case of Hibernate errors - - - - Update the given persistent instance. - - The persistent instance to update. - In case of Hibernate errors - - - - Update the given persistent instance. - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The persistent instance to update. - The lock mode to obtain. - In case of Hibernate errors - - - - Save or update the given persistent instance, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instance to save or update - (to be associated with the Hibernate Session). - In case of Hibernate errors - - - - Save or update the contents of given persistent object, - according to its id (matching the configured "unsaved-value"?). - Will copy the contained fields to an already loaded instance - with the same id, if appropriate. - - The persistent object to save or update. - (not necessarily to be associated with the Hibernate Session) - - The actually associated persistent object. - (either an already loaded instance with the same id, or the given object) - In case of Hibernate errors - - - - Delete all given persistent instances. - - The persistent instances to delete. - - This can be combined with any of the find methods to delete by query - in two lines of code, similar to Session's delete by query methods. - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the specified action assuming that the result object is a List. - - - This is a convenience method for executing Hibernate find calls or - queries within an action. - - The calback object that specifies the Hibernate action. - A IList returned by the action, or null - - In case of Hibernate errors - - - - Execute a query for persistent instances. - - a query expressed in Hibernate's query language - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - a query expressed in Hibernate's query language - the value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - a query expressed in Hibernate's query language - the values of the parameters - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - a List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - - a persistent type. - An identifier of the persistent instance. - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - A persistent class. - An identifier of the persistent instance. - The lock mode. - the persistent instance, or null if not found - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - Type of the entity. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - Type of the entity. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - Type of the entity. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Save or update all given persistent instances, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instances to save or update - (to be associated with the Hibernate Session)he entities. - In case of Hibernate errors - - - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The default for creating a new non-transactional - session when no transactional Session can be found for the current thread - is set to true. - The session factory to create sessions. - - - - Initializes a new instance of the class. - - The session factory to create sessions. - if set to true allow creation - of a new non-transactional when no transactional Session can be found - for the current thread. - - - - Delegate function that clears the session. - - The hibernate session. - null - - - - Flush all pending saves, updates and deletes to the database. - - - Only invoke this for selective eager flushing, for example when ADO.NET code - needs to see certain changes within the same transaction. Else, it's preferable - to rely on auto-flushing at transaction completion. - - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - - The type. - An identifier of the persistent instance. - The persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - The type. - The lock mode to obtain. - The lock mode. - the persistent instance, or null if not found - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - Type of the entity. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - Type of the entity. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Load the persistent instance with the given identifier - into the given object, throwing an exception if not found. - - Entity the object (of the target class) to load into. - An identifier of the persistent instance. - If object not found. - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - Type of the entity. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - - The persistent instance to re-read. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - Obtains the specified lock mode for the instance. - - The persistent instance to re-read. - The lock mode to obtain. - In case of Hibernate errors - - - - Obtain the specified lock level upon the given object, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The he persistent instance to lock. - The lock mode to obtain. - If not found - In case of Hibernate errors - - - - Persist the given transient instance. - - The transient instance to persist. - The generated identifier. - In case of Hibernate errors - - - - Persist the given transient instance with the given identifier. - - The transient instance to persist. - The identifier to assign. - In case of Hibernate errors - - - - Update the given persistent instance. - - The persistent instance to update. - In case of Hibernate errors - - - - Update the given persistent instance. - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The persistent instance to update. - The lock mode to obtain. - In case of Hibernate errors - - - - Save or update the given persistent instance, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instance to save or update - (to be associated with the Hibernate Session). - In case of Hibernate errors - - - - Save or update all given persistent instances, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instances to save or update - (to be associated with the Hibernate Session)he entities. - In case of Hibernate errors - - - - Save or update the contents of given persistent object, - according to its id (matching the configured "unsaved-value"?). - Will copy the contained fields to an already loaded instance - with the same id, if appropriate. - - The persistent object to save or update. - (not necessarily to be associated with the Hibernate Session) - - The actually associated persistent object. - (either an already loaded instance with the same id, or the given object) - In case of Hibernate errors - - - - Remove all objects from the Session cache, and cancel all pending saves, - updates and deletes. - - - - - Determines whether the given object is in the Session cache. - - the persistence instance to check. - - true if session cache contains the specified entity; otherwise, false. - - In case of Hibernate errors - - - - Remove the given object from the Session cache. - - The persistent instance to evict. - In case of Hibernate errors - - - - Delete the given persistent instance. - - The persistent instance to delete. - In case of Hibernate errors - - - - Delete the given persistent instance. - - Tthe persistent instance to delete. - The lock mode to obtain. - - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The value of the parameter. - The Hibernate type of the parameter (or null). - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The values of the parameters. - Hibernate types of the parameters (or null) - The number of entity instances deleted. - In case of Hibernate errors - If length for argument values and types are not equal. - - - - Delete all given persistent instances. - - The persistent instances to delete. - - This can be combined with any of the find methods to delete by query - in two lines of code, similar to Session's delete by query methods. - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The HibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - a result object returned by the action, or null - - - - - Execute the action specified by the given action object within a Session. - - The callback object that specifies the Hibernate action. - - a result object returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- In case of Hibernate errors -
- - - Execute the specified action assuming that the result object is a List. - - - This is a convenience method for executing Hibernate find calls or - queries within an action. - - The calback object that specifies the Hibernate action. - A IList returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - a result object returned by the action, or null - - - - - Execute a query for persistent instances. - - a query expressed in Hibernate's query language - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - a query expressed in Hibernate's query language - the value of the parameter - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - a query expressed in Hibernate's query language - the values of the parameters - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - - a List containing 0 or more persistent instances - - In case of Hibernate errors - If values and types are not null and their lengths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Create a close-suppressing proxy for the given Hibernate Session. - The proxy also prepares returned Query and Criteria objects. - - The session. - The session proxy. - - - - Check whether write operations are allowed on the given Session. - - - Default implementation throws an InvalidDataAccessApiUsageException - in case of FlushMode.Never. Can be overridden in subclasses. - - The current Hibernate session. - If write operation is attempted in read-only mode - - - - - Compares if the flush mode enumerations, Spring's - TemplateFlushMode and NHibernates FlushMode have equal - settings. - - The template flush mode. - The NHibernate flush mode. - - Returns true if both are Never, Auto, or Commit, false - otherwise. - - - - - Gets or sets if a new Session should be created when no transactional Session - can be found for the current thread. - - - true if allowed to create non-transaction session; - otherwise, false. - - -

HibernateTemplate is aware of a corresponding Session bound to the - current thread, for example when using HibernateTransactionManager. - If allowCreate is true, a new non-transactional Session will be created - if none found, which needs to be closed at the end of the operation. - If false, an InvalidOperationException will get thrown in this case. -

-
-
- - - Gets or sets a value indicating whether to always - use a new Hibernate Session for this template. - - true if always use new session; otherwise, false. - -

- Default is "false"; if activated, all operations on this template will - work on a new NHibernate ISession even in case of a pre-bound ISession - (for example, within a transaction). -

-

Within a transaction, a new NHibernate ISession used by this template - will participate in the transaction through using the same ADO.NET - Connection. In such a scenario, multiple Sessions will participate - in the same database transaction. -

-

Turn this on for operations that are supposed to always execute - independently, without side effects caused by a shared NHibernate ISession. -

-
-
- - - Gets or sets the template flush mode. - - - Default is Auto. Will get applied to any new ISession - created by the template. - - The template flush mode. - - - - Gets or sets the entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - - - Will get applied to any new ISession created by this object. -

Such an interceptor can either be set at the ISessionFactory level, - i.e. on LocalSessionFactoryObject, or at the ISession level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. -

-
- The interceptor. - If object factory is not set and need to retrieve entity interceptor by name. -
- - - Gets or sets the name of the cache region for queries executed by this template. - - - If this is specified, it will be applied to all IQuery and ICriteria objects - created by this template (including all queries through find methods). -

The cache region will not take effect unless queries created by this - template are configured to be cached via the CacheQueries property. -

-
- The query cache region. -
- - - Gets or sets a value indicating whether to - cache all queries executed by this template. - - - If this is true, all IQuery and ICriteria objects created by - this template will be marked as cacheable (including all - queries through find methods). -

To specify the query region to be used for queries cached - by this template, set the QueryCacheRegion property. -

-
- true if cache queries; otherwise, false. -
- - - Gets or sets the maximum number of rows for this HibernateTemplate. - - The max results. - - This is important - for processing subsets of large result sets, avoiding to read and hold - the entire result set in the database or in the ADO.NET driver if we're - never interested in the entire result in the first place (for example, - when performing searches that might return a large number of matches). -

Default is 0, indicating to use the driver's default.

-
-
- - - Set whether to expose the native Hibernate Session to IHibernateCallback - code. Default is "false": a Session proxy will be returned, - suppressing close calls and automatically applying - query cache settings and transaction timeouts. - - true if expose native session; otherwise, false. - - - - Gets or sets whether to check that the Hibernate Session is not in read-only mode - in case of write operations (save/update/delete). - - - true if check that the Hibernate Session is not in read-only mode - in case of write operations; otherwise, false. - - - Default is "true", for fail-fast behavior when attempting write operations - within a read-only transaction. Turn this off to allow save/update/delete - on a Session with flush mode NEVER. - - - - - Set the object name of a Hibernate entity interceptor that allows to inspect - and change property values before writing to and reading from the database. - - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
- The name of the entity interceptor in the object factory/application context. -
- - - Set the object factory instance. - - The object factory instance - - - - Gets or sets the session factory that should be used to create - NHibernate ISessions. - - The session factory. - - - - Gets or sets the fetch size for this HibernateTemplate. - - The size of the fetch. - This is important for processing - large result sets: Setting this higher than the default value will increase - processing speed at the cost of memory consumption; setting this lower can - avoid transferring row data that will never be read by the application. -

Default is 0, indicating to use the driver's default.

-
-
- - - Gets or sets the proxy factory. - - This may be useful to set if you create many instances of - HibernateTemplate and/or HibernateDaoSupport. This allows the same - ProxyFactory implementation to be used thereby limiting the - number of dynamic proxy types created in the temporary assembly, which - are never garbage collected due to .NET runtime semantics. - - The proxy factory. - - - - Set the ADO.NET exception translator for this instance. - Applied to System.Data.Common.DbException (or provider specific exception type - in .NET 1.1) thrown by callback code, be it direct - DbException or wrapped Hibernate ADOExceptions. -

The default exception translator is either a ErrorCodeExceptionTranslator - if a DbProvider is available, or a FalbackExceptionTranslator otherwise -

-
- The ADO exception translator. -
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Hibernate-specific subclass of InvalidDataAccessResourceUsageException, - thrown on invalid HQL query syntax. - - Mark Pollack (.NET) - $Id: HibernateQueryException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The ex. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Gets the query string that was invalid. - - The query string that was invalid. - - - - NHibnerations actions taken during the transaction lifecycle. - - Mark Pollack (.NET) - $Id: SpringSessionSynchronization.cs,v 1.2 2007/08/29 03:42:06 markpollack Exp $ - - - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Suspend this synchronization. - - -

- Unbind Hibernate resources (SessionHolder) from - - if managing any. -

-
-
- - - Resume this synchronization. - - -

- Rebind Hibernate resources from - - if managing any. -

-
-
- - - Invoked before transaction commit (before - ) - - - If the transaction is defined as a read-only transaction. - - -

- Can flush transactional sessions to the database. -

-

- Note that exceptions will get propagated to the commit caller and - cause a rollback of the transaction. -

-
-
- - - Invoked before transaction commit (before - ) - Can e.g. flush transactional O/R Mapping sessions to the database - - - - This callback does not mean that the transaction will actually be - commited. A rollback decision can still occur after this method - has been called. This callback is rather meant to perform work - that's only relevant if a commit still has a chance - to happen, such as flushing SQL statements to the database. - - - Note that exceptions will get propagated to the commit caller and cause a - rollback of the transaction. - - (note: do not throw TransactionException subclasses here!) - - - - - - Invoked after transaction commit/rollback. - - - Status according to - - - Can e.g. perform resource cleanup, in this case after transaction completion. -

- Note that exceptions will get propagated to the commit or rollback - caller, although they will not influence the outcome of the transaction. -

-
-
- - - Return the order value of this object, where a higher value means greater in - terms of sorting. - - -

- Normally starting with 0 or 1, with indicating - greatest. Same order values will result in arbitrary positions for the affected - objects. -

-

- Higher value can be interpreted as lower priority, consequently the first object - has highest priority. -

-
- The order value. -
- - - Enumeration for the various Hibernate flush modes. - - Mark Pollack (.NET) - $Id: TemplateFlushMode.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - Never flush is a good strategy for read-only units of work. - - - Hibernate will not track and look for changes in this case, - avoiding any overhead of modification detection. -

In case of an existing ISession, TemplateFlushMode.Never will turn - the hibenrate flush mode - to FlushMode.Never for the scope of the current operation, resetting the previous - flush mode afterwards. -

-
-
- - Automatic flushing is the default mode for a Hibernate Session. - - - A session will get flushed on transaction commit, and on certain find - operations that might involve already modified instances, but not - after each unit of work like with eager flushing. -

In case of an existing Session, TemplateFlushMode.Auto - will participate in the existing flush mode, not modifying - it for the current operation. - This in particular means that this setting will not modify an existing - hibernate flush mode FlushMode.Never, in contrast to TemplateFlushMode.Eager. -

-
-
- - - Eager flushing leads to immediate synchronization with the database, - even if in a transaction. - - - This causes inconsistencies to show up and throw - a respective exception immediately, and ADO access code that participates - in the same transaction will see the changes as the database is already - aware of them then. But the drawbacks are: -
    -
  • additional communication roundtrips with the database, instead of a - single batch at transaction commit;
  • -
  • the fact that an actual database rollback is needed if the Hibernate - transaction rolls back (due to already submitted SQL statements).
  • -
-

In case of an existing Session, TemplateFlushMode.Eager - will turn the NHibernate flush mode - to FlushMode.Auto for the scope of the current operation and issue a flush at the - end, resetting the previous flush mode afterwards. -

-
-
- - - Flushing at commit only is intended for units of work where no - intermediate flushing is desired, not even for find operations - that might involve already modified instances. - - -

In case of an existing Session, TemplateFlushMode.Commit - will turn the NHibernate flush mode - to FlushMode.Commit for the scope of the current operation, resetting the previous - flush mode afterwards. The only exception is an existing flush mode - FlushMode.Never, which will not be modified through this setting. -

-
-
- - - An IFactoryObject that creates a local Hibernate SessionFactory instance. - Behaves like a SessionFactory instance when used as bean reference, - e.g. for HibernateTemplate's "SessionFactory" property. - - - The typical usage will be to register this as singleton factory - in an application context and give objects references to application services - that need it. - - Hibernate configuration settings can be set using the IDictionary property 'HibernateProperties'. - - - - Mark Pollack (.NET) - $Id: LocalSessionFactoryObject.cs,v 1.7 2008/03/21 14:12:16 markpollack Exp $ - - - - TODO: consider changing to NamevalueCollection for easier - cut-n-paste from existing App.config based configurations. - - - - - The shared instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Return the singleon session factory. - - - - - Initialize the SessionFactory for the given or the - default location. - - - - - Close the SessionFactory on application context shutdown. - - - - - Subclasses can override this method to perform custom initialization - of the Configuration instance used for ISessionFactory creation. - - - The properties of this LocalSessionFactoryObject will be applied to - the Configuration object that gets returned here. -

The default implementation creates a new Configuration instance. - A custom implementation could prepare the instance in a specific way, - or use a custom Configuration subclass. -

-
-
- - - To be implemented by subclasses that want to to perform custom - post-processing of the Configuration object after this FactoryObject - performed its default initialization. - - The current configuration object. - - - - Subclasses can override this method to perform custom initialization - of the SessionFactory instance, creating it via the given Configuration - object that got prepared by this LocalSessionFactoryObject. - - -

The default implementation invokes Configuration's BuildSessionFactory. - A custom implementation could prepare the instance in a specific way, - or use a custom ISessionFactory subclass. -

-
-
- - - Sets the assemblies to load that contain mapping files. - - The mapping assemblies. - - - - Sets the hibernate configuration files to load, i.e. hibernate.cfg.xml. - - - - - Sets the locations of Spring IResources that contain mapping - files. - - The location of mapping resources. - - - - Return the Configuration object used to build the SessionFactory. - Allows access to configuration metadata stored there (rarely needed). - - The hibernate configuration. - - - - Set NHibernate configuration properties, like "hibernate.dialect". - - The hibernate properties. - -

Can be used to override values in a NHibernate XML config file, - or to specify all necessary properties locally. -

-

Note: Do not specify a transaction provider here when using - Spring-driven transactions. It is also advisable to omit connection - provider settings and use a Spring-set IDbProvider instead. -

-
-
- - - Get or set the DataSource to be used by the SessionFactory. - - The db provider. - - If set, this will override corresponding settings in Hibernate properties. - Note: If this is set, the Hibernate settings should not define - a connection string - (hibernate.connection.connection_string) to avoid meaningless double configuration. - - - - - - Return the type or subclass. - - The type created by this factory - - - - Returns true - - true - - - - Hibernate-specific subclass of UncategorizedDataAccessException, - for Hibernate system errors that do not match any concrete - Spring.Dao exceptions. - - Mark Pollack (.NET) - $Id: HibernateSystemException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Hibernate-specific subclass of ObjectOptimisticLockingFailureException. - - - Converts Hibernate's StaleObjectStateException. - - Juergen Hoeller - Mark Pollack (.NET) - $Id: HibernateOptimisticLockingFailureException.cs,v 1.2 2008/04/08 20:26:37 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The StaleObjectStateException. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Hibernate-specific subclass of ObjectRetrievalFailureException. - - - Converts Hibernate's UnresolvableObjectException, ObjectNotFoundException, - ObjectDeletedException, and WrongClassException. - - Mark Pollack (.NET) - $Id: HibernateObjectRetrievalFailureException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Hibernate-specific subclass of UncategorizedDataAccessException, - for ADO.NET exceptions that Hibernate rethrew and could not be - mapped into the DAO exception heirarchy. - - Mark Pollack (.NET) - $Id: HibernateAdoException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception from the underlying data access API - ADO.NET - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Convenient super class for Hibernate data access objects. - - - Requires a SessionFactory to be set, providing a HibernateTemplate - based on it to subclasses. Can alternatively be initialized directly with - a HibernateTemplate, to reuse the latter's settings such as the SessionFactory, - exception translator, flush mode, etc - - This base call is mainly intended for HibernateTemplate usage. - - This class will create its own HibernateTemplate if only a SessionFactory - is passed in. The "allowCreate" flag on that HibernateTemplate will be "true" - by default. A custom HibernateTemplate instance can be used through overriding - CreateHibernateTemplate. - - - Mark Pollack (.NET) - $Id: HibernateDaoSupport.cs,v 1.2 2007/08/28 15:26:37 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Create a HibernateTemplate for the given ISessionFactory. - - - Only invoked if populating the DAO with a ISessionFactory reference! -

Can be overridden in subclasses to provide a HibernateTemplate instance - with different configuration, or a custom HibernateTemplate subclass. -

-
-
- - - Check if the hibernate template property has been set. - - - - - Get a Hibernate Session, either from the current transaction or - a new one. The latter is only allowed if "allowCreate" is true. - - Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Either rely on a thread-bound - Session (via HibernateInterceptor), or use it in combination with - ReleaseSession. - - In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. - - - if a non-transactional Session should be created when no - transactional Session can be found for the current thread - - Hibernate session. - - If the Session couldn't be created - - - if no thread-bound Session found and allowCreate false - - - - - - Convert the given HibernateException to an appropriate exception from the - org.springframework.dao hierarchy. Will automatically detect - wrapped ADO.NET Exceptions and convert them accordingly. - - HibernateException that occured. - - The corresponding DataAccessException instance - - - The default implementation delegates to SessionFactoryUtils - and convertAdoAccessException. Can be overridden in subclasses. - - - - - Close the given Hibernate Session, created via this DAO's SessionFactory, - if it isn't bound to the thread. - - - Typically used in plain Hibernate code, in combination with the - Session property and ConvertHibernateAccessException. - - The session to close. - - - - Gets or sets the hibernate template. - - Set the HibernateTemplate for this DAO explicitly, - as an alternative to specifying a SessionFactory. - - The hibernate template. - - - - Gets or sets the session factory to be used by this DAO. - Will automatically create a HibernateTemplate for the given SessionFactory. - - The session factory. - - - - Get a Hibernate Session, either from the current transaction or a new one. - The latter is only allowed if the "allowCreate" setting of this object's - HibernateTemplate is true. - - -

Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Use it in combination with - ReleaseSession. -

-

In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. -

-
- The Hibernate session. -
-
-
diff --git a/src/Spring/Spring.Data.NHibernate12/Spring.Data.NHibernate12.xml b/src/Spring/Spring.Data.NHibernate12/Spring.Data.NHibernate12.xml deleted file mode 100644 index a5db6e34..00000000 --- a/src/Spring/Spring.Data.NHibernate12/Spring.Data.NHibernate12.xml +++ /dev/null @@ -1,5627 +0,0 @@ - - - - Spring.Data.NHibernate12 - - - - - Holds the references and configuration settings for a instance. - References are resolved by looking up the given object names in the root obtained by . - - - - - Holds the references and configuration settings for a instance. - - - - - Default value for property. - - - - - Default value for property. - - - - - Initialize a new instance of with default values. - - - Calling this constructor from your derived class leaves and - uninitialized. See and for more. - - - - - Initialize a new instance of with the given sessionFactory - and default values for all other settings. - - - The instance to be used for obtaining instances. - - - Calling this constructor marks all properties initialized. - - - - - Initialize a new instance of with the given values and references. - - - The instance to be used for obtaining instances. - - - Specify the to be set on each session provided by the instance. - - - Set whether to use a single session for each request. See property for details. - - - 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. - - - - - Override this method to resolve an instance according to your chosen strategy. - - - - - Gets the configured instance to be used. - - - If the entity interceptor is not set by the constructor, this property calls - to obtain an instance. This allows derived classes to - override the behaviour of how to obtain the concrete instance. - - - - - Gets the configured instance to be used. - - - If this property is requested for the first time, is called. - This allows derived classes to override the behaviour of how to obtain the concrete instance. - - If the instance cannot be resolved. - - - - Set whether to use a single session for each request. Default is "true". - If set to false, each data access operation or transaction will use - its own session (like without Open Session in View). Each of those - sessions will be registered for deferred close, though, actually - processed at request completion. - - - - - 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. - - - - - The default session factory name to use when retrieving the Hibernate session factory from - the root context. - - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - The configuration section to read setting variables from. - - - - Initializes a new instance. - - The type, who's name will be used to prefix setting variables with - The variable source to obtain settings from. - - - - Resolve the entityInterceptor by looking up - in the root application context. - - The resolved instance or - - - - Resolve the by looking up - in the root application context. - - The resolved instance or - - - - Callback interface for NHibernate code. - - To be used with HibernateTemplate execute - method. The typical implementation will call - Session.load/find/save/update to perform - some operations on persistent objects. - - Mark Pollack (.NET) - $Id: IHibernateCallback.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
- A result object, or null if none. -
- - - An IFactoryObject that creates a local Hibernate SessionFactory instance. - Behaves like a SessionFactory instance when used as bean reference, - e.g. for HibernateTemplate's "SessionFactory" property. - - - The typical usage will be to register this as singleton factory - in an application context and give objects references to application services - that need it. - - Hibernate configuration settings can be set using the IDictionary property 'HibernateProperties'. - - - - Mark Pollack (.NET) - $Id: LocalSessionFactoryObject.cs,v 1.11 2008/03/21 14:12:08 markpollack Exp $ - - - - TODO: consider changing to NamevalueCollection for easier - cut-n-paste from existing App.config based configurations. - - - - - The shared instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Return the singleon session factory. - - The singleon session factory. - - - - Initialize the SessionFactory for the given or the - default location. - - - - - Close the SessionFactory on application context shutdown. - - - - - Subclasses can override this method to perform custom initialization - of the Configuration instance used for ISessionFactory creation. - - - The properties of this LocalSessionFactoryObject will be applied to - the Configuration object that gets returned here. -

The default implementation creates a new Configuration instance. - A custom implementation could prepare the instance in a specific way, - or use a custom Configuration subclass. -

-
- The configuration instance. -
- - - To be implemented by subclasses that want to to perform custom - post-processing of the Configuration object after this FactoryObject - performed its default initialization. - - The current configuration object. - - - - Subclasses can override this method to perform custom initialization - of the SessionFactory instance, creating it via the given Configuration - object that got prepared by this LocalSessionFactoryObject. - - -

The default implementation invokes Configuration's BuildSessionFactory. - A custom implementation could prepare the instance in a specific way, - or use a custom ISessionFactory subclass. -

-
- The ISessionFactory instance. -
- - - Sets the assemblies to load that contain mapping files. - - The mapping assemblies. - - - - Sets the hibernate configuration files to load, i.e. hibernate.cfg.xml. - - - - - Sets the locations of Spring IResources that contain mapping - files. - - The location of mapping resources. - - - - Return the Configuration object used to build the SessionFactory. - Allows access to configuration metadata stored there (rarely needed). - - The hibernate configuration. - - - - Set NHibernate configuration properties, like "hibernate.dialect". - - The hibernate properties. - -

Can be used to override values in a NHibernate XML config file, - or to specify all necessary properties locally. -

-

Note: Do not specify a transaction provider here when using - Spring-driven transactions. It is also advisable to omit connection - provider settings and use a Spring-set IDbProvider instead. -

-
-
- - - Get or set the DataSource to be used by the SessionFactory. - - The db provider. - - If set, this will override corresponding settings in Hibernate properties. - Note: If this is set, the Hibernate settings should not define - a connection string - (hibernate.connection.connection_string) to avoid meaningless double configuration. - - - - - - Gets or sets a value indicating whether to expose a transaction aware session factory. - - - true if want to expose transaction aware session factory; otherwise, false. - - - - - Return the type or subclass. - - The type created by this factory - - - - Returns true - - true - - - - Callback interface (Generic version) for NHibernate code. - - The type of result object - To be used with HibernateTemplate execute - method. The typical implementation will call - Session.load/find/save/update to perform - some operations on persistent objects. - - - Sree Nivask (.NET) - $Id: IHibernateCallback.cs,v 1.2 2007/09/19 22:58:10 markpollack Exp $ - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
- A result object. - The active Hibernate session -
- - - NHibnerations actions taken during the transaction lifecycle. - - Mark Pollack (.NET) - $Id: SpringSessionSynchronization.cs,v 1.1 2007/06/01 02:34:12 markpollack Exp $ - - - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Suspend this synchronization. - - -

- Unbind Hibernate resources (SessionHolder) from - - if managing any. -

-
-
- - - Resume this synchronization. - - -

- Rebind Hibernate resources from - - if managing any. -

-
-
- - - Invoked before transaction commit (before - ) - - - If the transaction is defined as a read-only transaction. - - -

- Can flush transactional sessions to the database. -

-

- Note that exceptions will get propagated to the commit caller and - cause a rollback of the transaction. -

-
-
- - - Invoked before transaction commit (before - ) - Can e.g. flush transactional O/R Mapping sessions to the database - - - - This callback does not mean that the transaction will actually be - commited. A rollback decision can still occur after this method - has been called. This callback is rather meant to perform work - that's only relevant if a commit still has a chance - to happen, such as flushing SQL statements to the database. - - - Note that exceptions will get propagated to the commit caller and cause a - rollback of the transaction. - - (note: do not throw TransactionException subclasses here!) - - - - - - Invoked after transaction commit/rollback. - - - Status according to - - - Can e.g. perform resource cleanup, in this case after transaction completion. -

- Note that exceptions will get propagated to the commit or rollback - caller, although they will not influence the outcome of the transaction. -

-
-
- - - Return the order value of this object, where a higher value means greater in - terms of sorting. - - -

- Normally starting with 0 or 1, with indicating - greatest. Same order values will result in arbitrary positions for the affected - objects. -

-

- Higher value can be interpreted as lower priority, consequently the first object - has highest priority. -

-
- The order value. -
- - - Base class for HibernateTemplate defining common - properties like SessionFactory and flushing behavior. - - -

Not intended to be used directly. See HibernateTemplate. -

-
- Mark Pollack (.NET) - $Id: HibernateAccessor.cs,v 1.7 2008/01/25 15:04:28 markpollack Exp $ -
- - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Apply the flush mode that's been specified for this accessor - to the given Session. - - The current Hibernate Session. - if set to true - if executing within an existing transaction. - - the previous flush mode to restore after the operation, - or null if none - - - - - Flush the given Hibernate Session if necessary. - - The current Hibernate Session. - if set to true - if executing within an existing transaction. - - - - Convert the given HibernateException to an appropriate exception from the - org.springframework.dao hierarchy. Will automatically detect - wrapped ADO.NET Exceptions and convert them accordingly. - - HibernateException that occured. - - The corresponding DataAccessException instance - - - The default implementation delegates to SessionFactoryUtils - and convertAdoAccessException. Can be overridden in subclasses. - - - - - Converts the ADO.NET access exception to an appropriate exception from the - org.springframework.dao hierarchy. Can be overridden in subclasses. - - ADOException that occured, wrapping underlying ADO.NET exception. - - the corresponding DataAccessException instance - - - - - Converts the ADO.NET access exception to an appropriate exception from the - org.springframework.dao hierarchy. Can be overridden in subclasses. - - - - Note that a direct SQLException can just occur when callback code - performs direct ADO.NET access via ISession.Connection(). - - - The ADO.NET exception. - The corresponding DataAccessException instance - - - - Prepare the given IQuery object, applying cache settings and/or - a transaction timeout. - - The query object to prepare. - - - - Apply the given name parameter to the given Query object. - - The query object. - Name of the parameter - The value of the parameter - The NHibernate type of the parameter (or null if none specified) - - - - Prepare the given Criteria object, applying cache settings and/or - a transaction timeout. - - - Note that for NHibernate 1.2 this only works if the - implementation is of the type CriteriaImpl, which should generally - be the case. The SetFetchSize method is not available on the - ICriteria interface - - This is a no-op for NHibernate 1.0.x since - the SetFetchSize method is not on the ICriteria interface and - the implementation class is has internal access. - - To remove the method completely for Spring's NHibernate 1.0 - support while reusing code for NHibernate 1.2 would not be - possible. So now this ineffectual operation is left in tact for - NHibernate 1.0.2 support. - - The criteria object to prepare - - - - Ensure SessionFactory is not null - - If SessionFactory property is null. - - - - Gets or sets if a new Session should be created when no transactional Session - can be found for the current thread. - - - true if allowed to create non-transaction session; - otherwise, false. - - -

HibernateTemplate is aware of a corresponding Session bound to the - current thread, for example when using HibernateTransactionManager. - If allowCreate is true, a new non-transactional Session will be created - if none found, which needs to be closed at the end of the operation. - If false, an InvalidOperationException will get thrown in this case. -

-
-
- - - Gets or sets a value indicating whether to always - use a new Hibernate Session for this template. - - true if always use new session; otherwise, false. - -

- Default is "false"; if activated, all operations on this template will - work on a new NHibernate ISession even in case of a pre-bound ISession - (for example, within a transaction). -

-

Within a transaction, a new NHibernate ISession used by this template - will participate in the transaction through using the same ADO.NET - Connection. In such a scenario, multiple Sessions will participate - in the same database transaction. -

-

Turn this on for operations that are supposed to always execute - independently, without side effects caused by a shared NHibernate ISession. -

-
-
- - - Set whether to expose the native Hibernate Session to IHibernateCallback - code. Default is "false": a Session proxy will be returned, - suppressing close calls and automatically applying - query cache settings and transaction timeouts. - - true if expose native session; otherwise, false. - - - - Gets or sets the template flush mode. - - - Default is Auto. Will get applied to any new ISession - created by the template. - - The template flush mode. - - - - Gets or sets the entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - - - Will get applied to any new ISession created by this object. -

Such an interceptor can either be set at the ISessionFactory level, - i.e. on LocalSessionFactoryObject, or at the ISession level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. -

-
- The interceptor. -
- - - Set the object name of a Hibernate entity interceptor that allows to inspect - and change property values before writing to and reading from the database. - - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
- The name of the entity interceptor in the object factory/application context. -
- - - Gets or sets the session factory that should be used to create - NHibernate ISessions. - - The session factory. - - - - Set the object factory instance. - - The object factory instance. - - - - Gets or sets a value indicating whether to - cache all queries executed by this template. - - - If this is true, all IQuery and ICriteria objects created by - this template will be marked as cacheable (including all - queries through find methods). -

To specify the query region to be used for queries cached - by this template, set the QueryCacheRegion property. -

-
- true if cache queries; otherwise, false. -
- - - Gets or sets the name of the cache region for queries executed by this template. - - - If this is specified, it will be applied to all IQuery and ICriteria objects - created by this template (including all queries through find methods). -

The cache region will not take effect unless queries created by this - template are configured to be cached via the CacheQueries property. -

-
- The query cache region. -
- - - Gets or sets the fetch size for this HibernateTemplate. - - The size of the fetch. - This is important for processing - large result sets: Setting this higher than the default value will increase - processing speed at the cost of memory consumption; setting this lower can - avoid transferring row data that will never be read by the application. -

Default is 0, indicating to use the driver's default.

-
-
- - - Gets or sets the maximum number of rows for this HibernateTemplate. - - The max results. - - This is important - for processing subsets of large result sets, avoiding to read and hold - the entire result set in the database or in the ADO.NET driver if we're - never interested in the entire result in the first place (for example, - when performing searches that might return a large number of matches). -

Default is 0, indicating to use the driver's default.

-
-
- - - Set the ADO.NET exception translator for this instance. - Applied to System.Data.Common.DbException (or provider specific exception type - in .NET 1.1) thrown by callback code, be it direct - DbException or wrapped Hibernate ADOExceptions. -

The default exception translator is either a ErrorCodeExceptionTranslator - if a DbProvider is available, or a FalbackExceptionTranslator otherwise -

-
- The ADO exception translator. -
- - - Gets a Session for use by this template. - - The session. - - - Returns a new Session in case of "alwaysUseNewSession" (using the same ADO.NET connection as a transaction Session, if applicable) - - a pre-bound Session in case of "AllowCreate" is set to false (not the default) - - or a pre-bound Session or new Session if no transactional or other pre-bound Session exists. - - - - - Helper class to determine if the FlushMode enumeration - was changed from its default value - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The flush mode. - - - - Gets or sets a value indicating whether the FlushMode - property was set.. - - true if FlushMode was set; otherwise, false. - - - - Gets or sets the FlushMode. - - The FlushMode. - - - - Generic version of the Helper class that simplifies NHibernate data access code - - -

Typically used to implement data access or business logic services that - use NHibernate within their implementation but are Hibernate-agnostic in their - interface. The latter or code calling the latter only have to deal with - domain objects.

- -

The central method is Execute() supporting Hibernate access code which - implements the HibernateCallback interface. It provides NHibernate Session - handling such that neither the IHibernateCallback implementation nor the calling - code needs to explicitly care about retrieving/closing NHibernate Sessions, - or handling Session lifecycle exceptions. For typical single step actions, - there are various convenience methods (Find, Load, SaveOrUpdate, Delete). -

- -

Can be used within a service implementation via direct instantiation - with a ISessionFactory reference, or get prepared in an application context - and given to services as an object reference. Note: The ISessionFactory should - always be configured as an object in the application context, in the first case - given to the service directly, in the second case to the prepared template. -

- -

This class can be considered as a direct alternative to working with the raw - Hibernate Session API (through SessionFactoryUtils.Session). -

- -

LocalSessionFactoryObject is the preferred way of obtaining a reference - to a specific NHibernate ISessionFactory. -

-
- Sree Nivask (.NET) - Mark Pollack (.NET) - $Id: HibernateTemplate.cs,v 1.3 2008/01/24 17:29:09 markpollack Exp $ -
- - - Interface that specifies a basic set of Hibernate operations. - - - Implemented by HibernateTemplate. Not often used, but a useful option - to enhance testability, as it can easily be mocked or stubbed. -

Provides HibernateTemplate's data access methods that mirror - various Session methods. See the NHibernate ISession documentation - for details on those methods. -

-
- - Sree Nivask (.NET) - Mark Pollack (.NET) - $Id: IHibernateOperations.cs,v 1.2 2007/09/19 22:58:10 markpollack Exp $ -
- - - Interface that specifies a set of Hibernate operations that - are common across versions of Hibernate. - - - Base interface for generic and non generic IHibernateOperations interfaces - Not often used, but a useful option - to enhance testability, as it can easily be mocked or stubbed. -

Provides HibernateTemplate's data access methods that mirror - various Session methods. See the NHibernate ISession documentation - for details on those methods. -

-
- Mark Pollack (.NET) - - $Id: ICommonHibernateOperations.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ -
- - - Remove all objects from the Session cache, and cancel all pending saves, - updates and deletes. - - In case of Hibernate errors - - - - Delete the given persistent instance. - - The persistent instance to delete. - In case of Hibernate errors - - - - Delete the given persistent instance. - - - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - Tthe persistent instance to delete. - The lock mode to obtain. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The value of the parameter. - The Hibernate type of the parameter (or null). - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The values of the parameters. - Hibernate types of the parameters (or null) - The number of entity instances deleted. - In case of Hibernate errors - - - - Flush all pending saves, updates and deletes to the database. - - - Only invoke this for selective eager flushing, for example when ADO.NET code - needs to see certain changes within the same transaction. Else, it's preferable - to rely on auto-flushing at transaction completion. - - In case of Hibernate errors - - - - Load the persistent instance with the given identifier - into the given object, throwing an exception if not found. - - Entity the object (of the target class) to load into. - An identifier of the persistent instance. - If object not found. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - - The persistent instance to re-read. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - Obtains the specified lock mode for the instance. - - The persistent instance to re-read. - The lock mode to obtain. - In case of Hibernate errors - - - - Determines whether the given object is in the Session cache. - - the persistence instance to check. - - true if session cache contains the specified entity; otherwise, false. - - In case of Hibernate errors - - - - Remove the given object from the Session cache. - - The persistent instance to evict. - In case of Hibernate errors - - - - Obtain the specified lock level upon the given object, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The he persistent instance to lock. - The lock mode to obtain. - If not found - In case of Hibernate errors - - - - Persist the given transient instance. - - The transient instance to persist. - The generated identifier. - In case of Hibernate errors - - - - Persist the given transient instance with the given identifier. - - The transient instance to persist. - The identifier to assign. - In case of Hibernate errors - - - - Update the given persistent instance. - - The persistent instance to update. - In case of Hibernate errors - - - - Update the given persistent instance. - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The persistent instance to update. - The lock mode to obtain. - In case of Hibernate errors - - - - Save or update the given persistent instance, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instance to save or update - (to be associated with the Hibernate Session). - In case of Hibernate errors - - - - Save or update the contents of given persistent object, - according to its id (matching the configured "unsaved-value"?). - Will copy the contained fields to an already loaded instance - with the same id, if appropriate. - - The persistent object to save or update. - (not necessarily to be associated with the Hibernate Session) - - The actually associated persistent object. - (either an already loaded instance with the same id, or the given object) - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or if not found. - Obtains the specified lock mode if the instance exists. - - The object type to get. - The id of the object to get. - the persistent instance, or if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - The object type to get. - The lock mode to obtain. - The lock mode. - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - The object type to load. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - The object type to load. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - The object type to load. - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances. - - The object type to find. - a query expressed in Hibernate's query language - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - The object type to find. - a query expressed in Hibernate's query language - the value of the parameter - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - The object type to find. - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - The object type to find. - a query expressed in Hibernate's query language - the values of the parameters - a generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - If values and types are not null and their lenths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The object type to find. - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The object type to find. - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The value of the parameter - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The object type retrieved. - The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The object type retrieved. - The HibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - a result object returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - The object type retrieved. - The callback object that specifies the Hibernate action. - - a result object returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- In case of Hibernate errors -
- - - Execute the action specified by the given action object within a Session. - - The object type retrieved. - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - a result object returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The object type to find. - The delegate callback object that specifies the Hibernate action. - A generic IList returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The object type to find. - The FindHibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - A generic IList returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - The object type to find. - The callback object that specifies the Hibernate action. - - A generic IList returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
-
- - - Execute the action specified by the given action object within a Session assuming that an IList is returned. - - The object type to find. - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - an IList returned by the action, or null - - In case of Hibernate errors - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Allows creation of a new non-transactional session when no - transactional Session can be found for the current thread - The session factory to create sessions. - - - - Initializes a new instance of the class. - - The session factory to create sessions. - if set to true allow creation - of a new non-transactional session when no transactional Session can be found - for the current thread. - - - - Remove all objects from the Session cache, and cancel all pending saves, - updates and deletes. - - - - - Delete the given persistent instance. - - The persistent instance to delete. - In case of Hibernate errors - - - - Delete the given persistent instance. - - Tthe persistent instance to delete. - The lock mode to obtain. - - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The value of the parameter. - The Hibernate type of the parameter (or null). - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The values of the parameters. - Hibernate types of the parameters (or null) - The number of entity instances deleted. - In case of Hibernate errors - - - - Flush all pending saves, updates and deletes to the database. - - - Only invoke this for selective eager flushing, for example when ADO.NET code - needs to see certain changes within the same transaction. Else, it's preferable - to rely on auto-flushing at transaction completion. - - In case of Hibernate errors - - - - Load the persistent instance with the given identifier - into the given object, throwing an exception if not found. - - Entity the object (of the target class) to load into. - An identifier of the persistent instance. - If object not found. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - - The persistent instance to re-read. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - Obtains the specified lock mode for the instance. - - The persistent instance to re-read. - The lock mode to obtain. - In case of Hibernate errors - - - - Determines whether the given object is in the Session cache. - - the persistence instance to check. - - true if session cache contains the specified entity; otherwise, false. - - In case of Hibernate errors - - - - Remove the given object from the Session cache. - - The persistent instance to evict. - In case of Hibernate errors - - - - Obtain the specified lock level upon the given object, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The he persistent instance to lock. - The lock mode to obtain. - If not found - In case of Hibernate errors - - - - Persist the given transient instance. - - The transient instance to persist. - The generated identifier. - In case of Hibernate errors - - - - Persist the given transient instance with the given identifier. - - The transient instance to persist. - The identifier to assign. - In case of Hibernate errors - - - - Update the given persistent instance. - - The persistent instance to update. - In case of Hibernate errors - - - - Update the given persistent instance. - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The persistent instance to update. - The lock mode to obtain. - In case of Hibernate errors - - - - Save or update the given persistent instance, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instance to save or update - (to be associated with the Hibernate Session). - In case of Hibernate errors - - - - Save or update the contents of given persistent object, - according to its id (matching the configured "unsaved-value"?). - Will copy the contained fields to an already loaded instance - with the same id, if appropriate. - - The persistent object to save or update. - (not necessarily to be associated with the Hibernate Session) - - The actually associated persistent object. - (either an already loaded instance with the same id, or the given object) - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - The object type to get. - The id of the object to get. - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - The object type to get. - The lock mode to obtain. - The lock mode. - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - The object type to load. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - The object type to load. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - The object type to load. - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances. - - The object type to find. - a query expressed in Hibernate's query language - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - The object type to find. - a query expressed in Hibernate's query language - the value of the parameter - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - The object type to find. - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - The object type to find. - a query expressed in Hibernate's query language - the values of the parameters - a generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - - a generic List containing 0 or more persistent instances - - In case of Hibernate errors - If values and types are not null and their lengths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The object type to find. - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The object type to find. - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The value of the parameter - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A generic List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The object type to find. - The name of a Hibernate query in a mapping file - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - The object type to find. - A query expressed in Hibernate's query language - The values of the parameters - A generic List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The object type retrieved. - The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The object type retrieved. - The HibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - a result object returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - The object type retrieved. - The callback object that specifies the Hibernate action. - - a result object returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- In case of Hibernate errors -
- - - Execute the action specified by the given action object within a Session. - - The object type retrieved. - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - a result object returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session assuming that an IList is returned. - - The object type to find. - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - an IList returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The object type to find. - The delegate callback object that specifies the Hibernate action. - A generic IList returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The object type to find. - The FindHibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - A generic IList returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - The object type to find. - The callback object that specifies the Hibernate action. - - A generic IList returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning the result object. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
-
- - - Gets or sets if a new Session should be created when no transactional Session - can be found for the current thread. - - - true if allowed to create non-transaction session; - otherwise, false. - - -

HibernateTemplate is aware of a corresponding Session bound to the - current thread, for example when using HibernateTransactionManager. - If allowCreate is true, a new non-transactional Session will be created - if none found, which needs to be closed at the end of the operation. - If false, an InvalidOperationException will get thrown in this case. -

-
-
- - - Gets or sets a value indicating whether to always - use a new Hibernate Session for this template. - - true if always use new session; otherwise, false. - -

- Default is "false"; if activated, all operations on this template will - work on a new NHibernate ISession even in case of a pre-bound ISession - (for example, within a transaction). -

-

Within a transaction, a new NHibernate ISession used by this template - will participate in the transaction through using the same ADO.NET - Connection. In such a scenario, multiple Sessions will participate - in the same database transaction. -

-

Turn this on for operations that are supposed to always execute - independently, without side effects caused by a shared NHibernate ISession. -

-
-
- - - Set whether to expose the native Hibernate Session to IHibernateCallback - code. Default is "false": a Session proxy will be returned, - suppressing close calls and automatically applying - query cache settings and transaction timeouts. - - true if expose native session; otherwise, false. - - - - Gets or sets the template flush mode. - - - Default is Auto. Will get applied to any new ISession - created by the template. - - The template flush mode. - - - - Gets or sets the entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - - - Will get applied to any new ISession created by this object. -

Such an interceptor can either be set at the ISessionFactory level, - i.e. on LocalSessionFactoryObject, or at the ISession level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. -

-
- The interceptor. -
- - - Set the object name of a Hibernate entity interceptor that allows to inspect - and change property values before writing to and reading from the database. - - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
- The name of the entity interceptor in the object factory/application context. -
- - - Gets or sets the session factory that should be used to create - NHibernate ISessions. - - The session factory. - - - - Set the object factory instance. - - The object factory instance - - - - Gets or sets a value indicating whether to - cache all queries executed by this template. - - - If this is true, all IQuery and ICriteria objects created by - this template will be marked as cacheable (including all - queries through find methods). -

To specify the query region to be used for queries cached - by this template, set the QueryCacheRegion property. -

-
- true if cache queries; otherwise, false. -
- - - Gets or sets the name of the cache region for queries executed by this template. - - - If this is specified, it will be applied to all IQuery and ICriteria objects - created by this template (including all queries through find methods). -

The cache region will not take effect unless queries created by this - template are configured to be cached via the CacheQueries property. -

-
- The query cache region. -
- - - Gets or sets the fetch size for this HibernateTemplate. - - The size of the fetch. - This is important for processing - large result sets: Setting this higher than the default value will increase - processing speed at the cost of memory consumption; setting this lower can - avoid transferring row data that will never be read by the application. -

Default is 0, indicating to use the driver's default.

-
-
- - - Gets or sets the maximum number of rows for this HibernateTemplate. - - The max results. - - This is important - for processing subsets of large result sets, avoiding to read and hold - the entire result set in the database or in the ADO.NET driver if we're - never interested in the entire result in the first place (for example, - when performing searches that might return a large number of matches). -

Default is 0, indicating to use the driver's default.

-
-
- - - Set the ADO.NET exception translator for this instance. - Applied to System.Data.Common.DbException (or provider specific exception type - in .NET 1.1) thrown by callback code, be it direct - DbException or wrapped Hibernate ADOExceptions. -

The default exception translator is either a ErrorCodeExceptionTranslator - if a DbProvider is available, or a FalbackExceptionTranslator otherwise -

-
- The ADO exception translator. -
- - - Gets the classic hibernate template for access to non-generic methods. - - The classic hibernate template. - - - - Gets or sets the proxy factory. - - This may be useful to set if you create many instances of - HibernateTemplate and/or HibernateDaoSupport. This allows the same - ProxyFactory implementation to be used thereby limiting the - number of dynamic proxy types created in the temporary assembly, which - are never garbage collected due to .NET runtime semantics. - - The proxy factory. - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Callback interface (Generic version) for NHibernate code that - returns a List of objects. - - The type of result object - To be used with HibernateTemplate execute - method. The typical implementation will call - Session.load/find/save/update to perform - some operations on persistent objects. - - Sree Nivask (.NET) - Mark Pollack (.NET) - $Id: IFindHibernateCallback.cs,v 1.2 2007/09/19 22:58:10 markpollack Exp $ - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
- Collection result object. -
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Convenient super class for Hibernate data access objects. - - - Requires a SessionFactory to be set, providing a HibernateTemplate - based on it to subclasses. Can alternatively be initialized directly with - a HibernateTemplate, to reuse the latter's settings such as the SessionFactory, - exception translator, flush mode, etc - - This base call is mainly intended for HibernateTemplate usage. - - This class will create its own HibernateTemplate if only a SessionFactory - is passed in. The "allowCreate" flag on that HibernateTemplate will be "true" - by default. A custom HibernateTemplate instance can be used through overriding - CreateHibernateTemplate. - - - Sree Nivask (.NET) - Mark Pollack (.NET) - $Id: HibernateDaoSupport.cs,v 1.3 2007/09/19 22:58:10 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Create a HibernateTemplate for the given ISessionFactory. - - - Only invoked if populating the DAO with a ISessionFactory reference! -

Can be overridden in subclasses to provide a HibernateTemplate instance - with different configuration, or a custom HibernateTemplate subclass. -

-
- The new HibernateTemplate instance -
- - - Check if the hibernate template property has been set. - - If HibernateTemplate property is null. - - - - Get a Hibernate Session, either from the current transaction or - a new one. The latter is only allowed if "allowCreate" is true. - - Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Either rely on a thread-bound - Session (via HibernateInterceptor), or use it in combination with - ReleaseSession. - - In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. - - - if a non-transactional Session should be created when no - transactional Session can be found for the current thread - - Hibernate session. - - If the Session couldn't be created - - - if no thread-bound Session found and allowCreate false - - - - - - Convert the given HibernateException to an appropriate exception from the - org.springframework.dao hierarchy. Will automatically detect - wrapped ADO.NET Exceptions and convert them accordingly. - - HibernateException that occured. - - The corresponding DataAccessException instance - - - The default implementation delegates to SessionFactoryUtils - and convertAdoAccessException. Can be overridden in subclasses. - - - - - Close the given Hibernate Session, created via this DAO's SessionFactory, - if it isn't bound to the thread. - - - Typically used in plain Hibernate code, in combination with the - Session property and ConvertHibernateAccessException. - - The session to close. - - - - Gets or sets the hibernate template. - - Set the HibernateTemplate for this DAO explicitly, - as an alternative to specifying a SessionFactory. - - The hibernate template. - - - - Gets or sets the session factory to be used by this DAO. - Will automatically create a HibernateTemplate for the given SessionFactory. - - The session factory. - - - - Get a Hibernate Session, either from the current transaction or a new one. - The latter is only allowed if the "allowCreate" setting of this object's - HibernateTemplate is true. - - -

Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Use it in combination with - ReleaseSession. -

-

In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. -

-
- The Hibernate session. -
- - - Provide support for the open session in view pattern for lazily loaded hibernate objects - used in ASP.NET pages. - - jjx: http://forum.springframework.net/member.php?u=29 - Mark Pollack (.NET) - Erich Eichinger - Harald Radi - $Id: OpenSessionInViewModule.cs,v 1.7 2008/01/21 06:39:12 oakinger Exp $ - - - - Implementation of SessionScope that associates a single session within the using scope. - - - It is recommended to be used in the following type of scenario: - - using (new SessionScope()) - { - ... do multiple operation, possibly in multiple transactions. - } - - At the end of "using", the session is automatically closed. All transactions within the scope use the same session, - if you are using Spring's HibernateTemplate or using Spring's implementation of NHibernate 1.2's - ICurrentSessionContext interface. - - - It is assumed that the session factory object name is called "SessionFactory". In case that you named the object - in different way you can specify your can specify it in the application settings using the key - Spring.Data.NHibernate.Support.SessionScope.SessionFactoryObjectName. Values for EntityInterceptorObjectName - and SingleSessionMode can be specified similarly. - - - Note: - The session is managed on a per thread basis on the thread that opens the scope instance. This means that you must - never pass a reference to a instance over to another thread! - - - Robert M. (.NET) - Harald Radi (.NET) - - - - The logging instance. - - - - - Initializes a new instance of the class in single session mode, - associating a session with the thread. The session is opened lazily on demand. - - - - - Initializes a new instance of the class. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The name of the configuration section to read configuration settings from. - See for more info. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The name of the configuration section to read configuration settings from. - See for more info. - - The type, who's full name is used for prefixing appSetting keys - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The instance to be used for obtaining instances. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - - The instance to be used for obtaining instances. - - - Specify the to be set on each session provided by this instance. - - - Set whether to use a single session for each request. See property for details. - - - Specify the flushmode to be applied on each session provided by this instance. - - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Initializes a new instance of the class. - - An instance holding the scope configuration - - If set to true associate a session with the thread. If false, another - collaborating class will associate the session with the thread, potentially by calling - the Open method on this class. - - - - - Sets a flag, whether this scope is in "open" state on the current logical thread. - - - - - Gets/Sets a flag, whether this scope manages it's own session for the current logical thread or not. - - false if session is managed by this module. false otherwise - - - - Call Close(), - - - - - Opens a new session or participates in an existing session and - registers with spring's . - - - - - Close the current view's session and unregisters - from spring's . - - - - - Set whether to use a single session for each request. Default is "true". - If set to false, each data access operation or transaction will use - its own session (like without Open Session in View). Each of those - sessions will be registered for deferred close, though, actually - processed at request completion. - - - - - 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 or set the configured SessionFactory - - - - - Get or set the configured EntityInterceptor - - - - - Gets a flag, whether this scope is in "open" state on the current logical thread. - - - - - Gets a flag, whether this scope manages it's own session for the current logical thread or not. - - - - - This sessionHolder creates a default session only if it is needed. - - - Although a NHibernateSession deferes creation of db-connections until they are really - needed, instantiation a session is imho still more expensive than this LazySessionHolder. (EE) - - - - - Session holder, wrapping a NHibernate ISession and a NHibernate Transaction. - HibernateTransactionManager binds instances of this class - to the thread, for a given ISessionFactory. - - - Note: This is an SPI class, not intended to be used by applications. - - Mark Pollack (.NET) - $Id: SessionHolder.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - May be used by derived classes to create an empty SessionHolder. - - - When using this ctor in your derived class, you MUST override ! - - - - - Initializes a new instance of the class. - - The session. - - - - Initializes a new instance of the class. - - The key to store the session under. - The hibernate session. - - - - May be overridden in a derived class to e.g. lazily create a session - - - - - Gets the session given key identifier - - The key. - A hibernate session - - - - Gets the session given the key and removes the session from - the dictionary storage. - - The key. - A hibernate session - - - - Adds the session to the dictionary storage using the default key. - - The hibernate session. - - - - Adds the session to the dictionary storage using the supplied key. - - The key. - The hibernate session. - - - - Removes the session from the dictionary storage for the given key. - - The key. - The session that was previously contained in the - dictionary storage. - - - - Determines whether the holder the specified session. - - The session. - - true if the holder contains the specified session; otherwise, false. - - - - - Clear the transaction state of this resource holder. - - - - - Gets the session using the default key - - The hibernate session. - - - - Gets the first session based on iteration over - the IDictionary storage. - - Any hibernate session. - - - - Gets a value indicating whether dictionary of - hibernate sessions is empty. - - - true if this session holder is empty; otherwise, false. - - - - - Gets a value indicating whether this SessionHolder - does not hold non default session. - - - true if does not hold non default session; otherwise, false. - - - - - Gets or sets the hibernate transaction. - - The transaction. - - - - Gets or sets the ADO.NET Connection used to create the session. - - The ADO.NET connection. - - - - Gets or sets the previous flush mode. - - The previous flush mode. - - - - Gets a value indicating whether the PreviousFlushMode property - was set. - - - true if assigned PreviousFlushMode property; otherwise, false. - - - - - Gets the validated session. - - The validated session. - - - - Initialize a new instance. - - - - - Create a new session on demand - - - - - Ensure session is closed (if any) and remove circular references to avoid memory leaks! - - - - - Gets or sets the LazySessionHolder instance for the current request - - - - - Initializes a new instance of the class. Creates a SessionScope, - but does not yet associate a session with a thread, that is lef to the lifecycle of the request. - - - - - Register context handler and look up SessionFactoryObjectName under the application configuration key, - Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName if not using the default value - (i.e. sessionFactory) and look up the SingleSession setting under the application configuration key, - Spring.Data.NHibernate.Support.OpenSessionInViewModule.SingleSession if not using the default value of true. - - The standard HTTP application context - - - - A do nothing dispose method. - - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning an IList of result objects created within the callback. - Note that there's special support for single step actions: - see HibernateTemplate.find etc. -

-
- The type of result object - Sree Nivask (.NET) - $Id: FindHibernateDelegate.cs,v 1.2 2007/09/19 22:58:10 markpollack Exp $ -
- - - PlatformTransactionManager implementation for a single Hibernate SessionFactory. - Binds a Hibernate Session from the specified factory to the thread, potentially - allowing for one thread Session per factory - - - SessionFactoryUtils and HibernateTemplate are aware of thread-bound Sessions and participate in such - transactions automatically. Using either of those is required for Hibernate - access code that needs to support this transaction handling mechanism. - - Supports custom isolation levels at the start of the transaction - , and timeouts that get applied as appropriate - Hibernate query timeouts. To support the latter, application code must either use - HibernateTemplate (which by default applies the timeouts) or call - SessionFactoryUtils.applyTransactionTimeout for each created - Hibernate Query object. - - Note that you can specify a Spring IDbProvider instance which if shared with - a corresponding instance of AdoTemplate will allow for mixing ADO.NET/NHibernate - operations within a single transaction. - - Mark Pollack (.NET) - $Id: HibernateTransactionManager.cs,v 1.7 2007/11/20 14:39:48 markpollack Exp $ - - - - Just needed for entityInterceptorBeanName. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The session factory. - - - - Return the current transaction object. - - The current transaction object. - - If transaction support is not available. - - - In the case of lookup or system errors. - - - - - Check if the given transaction object indicates an existing, - i.e. already begun, transaction. - - - Transaction object returned by - . - - True if there is an existing transaction. - - In the case of system errors. - - - - - Begin a new transaction with the given transaction definition. - - - Transaction object returned by - . - - - instance, describing - propagation behavior, isolation level, timeout etc. - - - Does not have to care about applying the propagation behavior, - as this has already been handled by this abstract manager. - - - In the case of creation or system errors. - - - - - Suspend the resources of the current transaction. - - - Transaction object returned by - . - - - An object that holds suspended resources (will be kept unexamined for passing it into - .) - - - Transaction synchronization will already have been suspended. - - - If suspending is not supported by the transaction manager implementation. - - - in case of system errors. - - - - - Resume the resources of the current transaction. - - - Transaction object returned by - . - - - The object that holds suspended resources as returned by - . - - - Transaction synchronization will be resumed afterwards. - - - If suspending is not supported by the transaction manager implementation. - - - In the case of system errors. - - - - - Perform an actual commit on the given transaction. - - The status representation of the transaction. - -

- An implementation does not need to check the rollback-only flag. -

-
- - In the case of system errors. - -
- - - Perform an actual rollback on the given transaction. - - The status representation of the transaction. - - An implementation does not need to check the new transaction flag. - - - In the case of system errors. - - - - - Set the given transaction rollback-only. Only called on rollback - if the current transaction takes part in an existing one. - - The status representation of the transaction. - - In the case of system errors. - - - - - Gets the ADO.NET IDbTransaction object from the NHibernate ITransaction object. - - The hibernate transaction. - The ADO.NET transaction. Null if could not get the transaction. Warning - messages will be logged in that case. - - - - Convert the given HibernateException to an appropriate exception from - the Spring.Dao hierarchy. Can be overridden in subclasses. - - The HibernateException that occured. - The corresponding DataAccessException instance - - - - Convert the given ADOException to an appropriate exception from the - the Spring.Dao hierarchy. Can be overridden in subclasses. - - The ADOException that occured, wrapping the underlying - ADO.NET thrown exception. - The translator to convert hibernate ADOExceptions. - - The corresponding DataAccessException instance - - - - - Cleanup resources after transaction completion. - - Transaction object returned by - . - - - This implemenation unbinds the SessionFactory and - DbProvider from thread local storage and closes the - ISession. - -

- Called after - and - - execution on any outcome. -

-

- Should not throw any exceptions but just issue warnings on errors. -

-
-
- - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Gets or sets the db provider. - - The db provider. - - - - Gets or sets a Hibernate entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - When getting, return the current Hibernate entity interceptor, or null if none. - - The entity interceptor. - - Resolves an entity interceptor object name via the object factory, - if necessary. - Will get applied to any new Session created by this transaction manager. - Such an interceptor can either be set at the SessionFactory level, - i.e. on LocalSessionFactoryObject, or at the Session level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. - - If object factory is null and need to get entity interceptor via object name. - - - - Sets the object name of a Hibernate entity interceptor that - allows to inspect and change property values before writing to and reading from the database. - - The name of the entity interceptor object. - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
-
- - - Gets or sets the ADO.NET exception translator for this transaction manager. - - - Applied to ADO.NET Exceptions (wrapped by Hibernate's ADOException) - - The ADO exception translator. - - - - Gets the default IAdoException translator, lazily creating it if nece - - The default IAdoException translator. - - - - Gets or sets the SessionFactory that this instance should manage transactions for. - - The session factory. - - - - Set whether to autodetect a ADO.NET connection used by the Hibernate SessionFactory, - if set via LocalSessionFactoryObject's DbProvider. Default is "true". - - - true if [autodetect data source]; otherwise, false. - - -

Can be turned off to deliberately ignore an available IDbProvider, - to not expose Hibernate transactions as ADO.NET transactions for that IDbProvider. -

-
-
- - - The object factory just needs to be known for resolving entity interceptor - It does not need to be set for any other mode of operation. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - - - - Return whether the transaction is internally marked as rollback-only. - - - True of the transaction is marked as rollback-only. - - - - Helper class that simplifies NHibernate data access code - - -

Typically used to implement data access or business logic services that - use NHibernate within their implementation but are Hibernate-agnostic in their - interface. The latter or code calling the latter only have to deal with - domain objects.

- -

The central method is Execute supporting Hibernate access code - implementing the HibernateCallback interface. It provides NHibernate Session - handling such that neither the IHibernateCallback implementation nor the calling - code needs to explicitly care about retrieving/closing NHibernate Sessions, - or handling Session lifecycle exceptions. For typical single step actions, - there are various convenience methods (Find, Load, SaveOrUpdate, Delete). -

- -

Can be used within a service implementation via direct instantiation - with a ISessionFactory reference, or get prepared in an application context - and given to services as an object reference. Note: The ISessionFactory should - always be configured as an object in the application context, in the first case - given to the service directly, in the second case to the prepared template. -

- -

This class can be considered as direct alternative to working with the raw - Hibernate Session API (through SessionFactoryUtils.Session). -

- -

LocalSessionFactoryObject is the preferred way of obtaining a reference - to a specific NHibernate ISessionFactory. -

-
- Mark Pollack (.NET) - $Id: HibernateTemplate.cs,v 1.3 2008/01/24 17:29:16 markpollack Exp $ -
- - - Interface that specifies a basic set of Hibernate operations. - - - Implemented by HibernateTemplate. Not often used, but a useful option - to enhance testability, as it can easily be mocked or stubbed. -

Provides HibernateTemplate's data access methods that mirror - various Session methods. See the NHibernate ISession documentation - for details on those methods. -

-
- - Mark Pollack (.NET) - $Id: IHibernateOperations.cs,v 1.2 2007/09/19 22:58:22 markpollack Exp $ -
- - - Delete all given persistent instances. - - The persistent instances to delete. - - This can be combined with any of the find methods to delete by query - in two lines of code, similar to Session's delete by query methods. - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the specified action assuming that the result object is a List. - - - This is a convenience method for executing Hibernate find calls or - queries within an action. - - The calback object that specifies the Hibernate action. - A IList returned by the action, or null - - In case of Hibernate errors - - - - Execute a query for persistent instances. - - a query expressed in Hibernate's query language - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - a query expressed in Hibernate's query language - the value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - a query expressed in Hibernate's query language - the values of the parameters - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - a List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - - a persistent type. - An identifier of the persistent instance. - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - A persistent class. - An identifier of the persistent instance. - The lock mode. - the persistent instance, or null if not found - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - Type of the entity. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - Type of the entity. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - Type of the entity. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Save or update all given persistent instances, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instances to save or update - (to be associated with the Hibernate Session)he entities. - In case of Hibernate errors - - - - The instance for this class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The default for creating a new non-transactional - session when no transactional Session can be found for the current thread - is set to true. - The session factory to create sessions. - - - - Initializes a new instance of the class. - - The session factory to create sessions. - if set to true allow creation - of a new non-transactional when no transactional Session can be found - for the current thread. - - - - Delegate function that clears the session. - - The hibernate session. - null - - - - Flush all pending saves, updates and deletes to the database. - - - Only invoke this for selective eager flushing, for example when ADO.NET code - needs to see certain changes within the same transaction. Else, it's preferable - to rely on auto-flushing at transaction completion. - - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - - The type. - An identifier of the persistent instance. - The persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity type - with the given identifier, or null if not found. - Obtains the specified lock mode if the instance exists. - - The type. - The lock mode to obtain. - The lock mode. - the persistent instance, or null if not found - the persistent instance, or null if not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - - Type of the entity. - An identifier of the persistent instance. - The persistent instance - If not found - In case of Hibernate errors - - - - Return the persistent instance of the given entity class - with the given identifier, throwing an exception if not found. - Obtains the specified lock mode if the instance exists. - - Type of the entity. - An identifier of the persistent instance. - The lock mode. - The persistent instance - If not found - In case of Hibernate errors - - - - Load the persistent instance with the given identifier - into the given object, throwing an exception if not found. - - Entity the object (of the target class) to load into. - An identifier of the persistent instance. - If object not found. - In case of Hibernate errors - - - - Return all persistent instances of the given entity class. - Note: Use queries or criteria for retrieving a specific subset. - - Type of the entity. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - - The persistent instance to re-read. - In case of Hibernate errors - - - - Re-read the state of the given persistent instance. - Obtains the specified lock mode for the instance. - - The persistent instance to re-read. - The lock mode to obtain. - In case of Hibernate errors - - - - Obtain the specified lock level upon the given object, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The he persistent instance to lock. - The lock mode to obtain. - If not found - In case of Hibernate errors - - - - Persist the given transient instance. - - The transient instance to persist. - The generated identifier. - In case of Hibernate errors - - - - Persist the given transient instance with the given identifier. - - The transient instance to persist. - The identifier to assign. - In case of Hibernate errors - - - - Update the given persistent instance. - - The persistent instance to update. - In case of Hibernate errors - - - - Update the given persistent instance. - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - The persistent instance to update. - The lock mode to obtain. - In case of Hibernate errors - - - - Save or update the given persistent instance, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instance to save or update - (to be associated with the Hibernate Session). - In case of Hibernate errors - - - - Save or update all given persistent instances, - according to its id (matching the configured "unsaved-value"?). - - Tthe persistent instances to save or update - (to be associated with the Hibernate Session)he entities. - In case of Hibernate errors - - - - Save or update the contents of given persistent object, - according to its id (matching the configured "unsaved-value"?). - Will copy the contained fields to an already loaded instance - with the same id, if appropriate. - - The persistent object to save or update. - (not necessarily to be associated with the Hibernate Session) - - The actually associated persistent object. - (either an already loaded instance with the same id, or the given object) - In case of Hibernate errors - - - - Remove all objects from the Session cache, and cancel all pending saves, - updates and deletes. - - - - - Determines whether the given object is in the Session cache. - - the persistence instance to check. - - true if session cache contains the specified entity; otherwise, false. - - In case of Hibernate errors - - - - Remove the given object from the Session cache. - - The persistent instance to evict. - In case of Hibernate errors - - - - Delete the given persistent instance. - - The persistent instance to delete. - In case of Hibernate errors - - - - Delete the given persistent instance. - - Tthe persistent instance to delete. - The lock mode to obtain. - - Obtains the specified lock mode if the instance exists, implicitly - checking whether the corresponding database entry still exists - (throwing an OptimisticLockingFailureException if not found). - - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The value of the parameter. - The Hibernate type of the parameter (or null). - The number of entity instances deleted. - In case of Hibernate errors - - - - Delete all objects returned by the query. - - a query expressed in Hibernate's query language. - The values of the parameters. - Hibernate types of the parameters (or null) - The number of entity instances deleted. - In case of Hibernate errors - If length for argument values and types are not equal. - - - - Delete all given persistent instances. - - The persistent instances to delete. - - This can be combined with any of the find methods to delete by query - in two lines of code, similar to Session's delete by query methods. - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- The delegate callback object that specifies the Hibernate action. - a result object returned by the action, or null - - In case of Hibernate errors -
- - - Execute the action specified by the delegate within a Session. - - The HibernateDelegate that specifies the action - to perform. - if set to true expose the native hibernate session to - callback code. - a result object returned by the action, or null - - - - - Execute the action specified by the given action object within a Session. - - The callback object that specifies the Hibernate action. - - a result object returned by the action, or null - - - Application exceptions thrown by the action object get propagated to the - caller (can only be unchecked). Hibernate exceptions are transformed into - appropriate DAO ones. Allows for returning a result object, i.e. a domain - object or a collection of domain objects. -

Note: Callback code is not supposed to handle transactions itself! - Use an appropriate transaction manager like HibernateTransactionManager. - Generally, callback code must not touch any Session lifecycle methods, - like close, disconnect, or reconnect, to let the template do its work. -

-
- In case of Hibernate errors -
- - - Execute the specified action assuming that the result object is a List. - - - This is a convenience method for executing Hibernate find calls or - queries within an action. - - The calback object that specifies the Hibernate action. - A IList returned by the action, or null - - In case of Hibernate errors - - - - Execute the action specified by the given action object within a Session. - - callback object that specifies the Hibernate action. - if set to true expose the native hibernate session to - callback code. - - a result object returned by the action, or null - - - - - Execute a query for persistent instances. - - a query expressed in Hibernate's query language - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a "?" parameter in the query string. - - a query expressed in Hibernate's query language - the value of the parameter - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding one value - to a "?" parameter of the given type in the query string. - - a query expressed in Hibernate's query language - The value of the parameter. - Hibernate type of the parameter (or null) - - a List containing 0 or more persistent instances - - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to "?" parameters in the query string. - - a query expressed in Hibernate's query language - the values of the parameters - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a number of - values to "?" parameters of the given types in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - Hibernate types of the parameters (or null) - - a List containing 0 or more persistent instances - - In case of Hibernate errors - If values and types are not null and their lengths are not equal - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - a List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding - one value to a named parameter in the query string. - - The name of a Hibernate query in a mapping file - The name of the parameter - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding a - number of values to named parameters in the query string. - - A query expressed in Hibernate's query language - The names of the parameters - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a "?" parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The value of the parameter - Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding a - number of values to "?" parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If values and types are not null and their lengths differ. - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - one value to a named parameter in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - Name of the parameter - The value of the parameter - The Hibernate type of the parameter (or null) - A List containing 0 or more persistent instances - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a named query for persistent instances, binding - number of values to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The names of the parameters - The values of the parameters. - Hibernate types of the parameters (or null) - A List containing 0 or more persistent instances - In case of Hibernate errors - If paramNames length is not equal to values length or - if paramNames length is not equal to types length (when types is not null) - - - - Execute a named query for persistent instances, binding the properties - of the given object to named parameters in the query string. - A named query is defined in a Hibernate mapping file. - - The name of a Hibernate query in a mapping file - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Execute a query for persistent instances, binding the properties - of the given object to named parameters in the query string. - - A query expressed in Hibernate's query language - The values of the parameters - A List containing 0 or more persistent instances - In case of Hibernate errors - - - - Create a close-suppressing proxy for the given Hibernate Session. - The proxy also prepares returned Query and Criteria objects. - - The session. - The session proxy. - - - - Check whether write operations are allowed on the given Session. - - - Default implementation throws an InvalidDataAccessApiUsageException - in case of FlushMode.Never. Can be overridden in subclasses. - - The current Hibernate session. - If write operation is attempted in read-only mode - - - - - Compares if the flush mode enumerations, Spring's - TemplateFlushMode and NHibernates FlushMode have equal - settings. - - The template flush mode. - The NHibernate flush mode. - - Returns true if both are Never, Auto, or Commit, false - otherwise. - - - - - Gets or sets if a new Session should be created when no transactional Session - can be found for the current thread. - - - true if allowed to create non-transaction session; - otherwise, false. - - -

HibernateTemplate is aware of a corresponding Session bound to the - current thread, for example when using HibernateTransactionManager. - If allowCreate is true, a new non-transactional Session will be created - if none found, which needs to be closed at the end of the operation. - If false, an InvalidOperationException will get thrown in this case. -

-
-
- - - Gets or sets a value indicating whether to always - use a new Hibernate Session for this template. - - true if always use new session; otherwise, false. - -

- Default is "false"; if activated, all operations on this template will - work on a new NHibernate ISession even in case of a pre-bound ISession - (for example, within a transaction). -

-

Within a transaction, a new NHibernate ISession used by this template - will participate in the transaction through using the same ADO.NET - Connection. In such a scenario, multiple Sessions will participate - in the same database transaction. -

-

Turn this on for operations that are supposed to always execute - independently, without side effects caused by a shared NHibernate ISession. -

-
-
- - - Gets or sets the template flush mode. - - - Default is Auto. Will get applied to any new ISession - created by the template. - - The template flush mode. - - - - Gets or sets the entity interceptor that allows to inspect and change - property values before writing to and reading from the database. - - - Will get applied to any new ISession created by this object. -

Such an interceptor can either be set at the ISessionFactory level, - i.e. on LocalSessionFactoryObject, or at the ISession level, i.e. on - HibernateTemplate, HibernateInterceptor, and HibernateTransactionManager. - It's preferable to set it on LocalSessionFactoryObject or HibernateTransactionManager - to avoid repeated configuration and guarantee consistent behavior in transactions. -

-
- The interceptor. - If object factory is not set and need to retrieve entity interceptor by name. -
- - - Gets or sets the name of the cache region for queries executed by this template. - - - If this is specified, it will be applied to all IQuery and ICriteria objects - created by this template (including all queries through find methods). -

The cache region will not take effect unless queries created by this - template are configured to be cached via the CacheQueries property. -

-
- The query cache region. -
- - - Gets or sets a value indicating whether to - cache all queries executed by this template. - - - If this is true, all IQuery and ICriteria objects created by - this template will be marked as cacheable (including all - queries through find methods). -

To specify the query region to be used for queries cached - by this template, set the QueryCacheRegion property. -

-
- true if cache queries; otherwise, false. -
- - - Gets or sets the maximum number of rows for this HibernateTemplate. - - The max results. - - This is important - for processing subsets of large result sets, avoiding to read and hold - the entire result set in the database or in the ADO.NET driver if we're - never interested in the entire result in the first place (for example, - when performing searches that might return a large number of matches). -

Default is 0, indicating to use the driver's default.

-
-
- - - Set whether to expose the native Hibernate Session to IHibernateCallback - code. Default is "false": a Session proxy will be returned, - suppressing close calls and automatically applying - query cache settings and transaction timeouts. - - true if expose native session; otherwise, false. - - - - Gets or sets whether to check that the Hibernate Session is not in read-only mode - in case of write operations (save/update/delete). - - - true if check that the Hibernate Session is not in read-only mode - in case of write operations; otherwise, false. - - - Default is "true", for fail-fast behavior when attempting write operations - within a read-only transaction. Turn this off to allow save/update/delete - on a Session with flush mode NEVER. - - - - - Set the object name of a Hibernate entity interceptor that allows to inspect - and change property values before writing to and reading from the database. - - - Will get applied to any new Session created by this transaction manager. -

Requires the object factory to be known, to be able to resolve the object - name to an interceptor instance on session creation. Typically used for - prototype interceptors, i.e. a new interceptor instance per session. -

-

Can also be used for shared interceptor instances, but it is recommended - to set the interceptor reference directly in such a scenario. -

-
- The name of the entity interceptor in the object factory/application context. -
- - - Set the object factory instance. - - The object factory instance - - - - Gets or sets the session factory that should be used to create - NHibernate ISessions. - - The session factory. - - - - Gets or sets the fetch size for this HibernateTemplate. - - The size of the fetch. - This is important for processing - large result sets: Setting this higher than the default value will increase - processing speed at the cost of memory consumption; setting this lower can - avoid transferring row data that will never be read by the application. -

Default is 0, indicating to use the driver's default.

-
-
- - - Gets or sets the proxy factory. - - This may be useful to set if you create many instances of - HibernateTemplate and/or HibernateDaoSupport. This allows the same - ProxyFactory implementation to be used thereby limiting the - number of dynamic proxy types created in the temporary assembly, which - are never garbage collected due to .NET runtime semantics. - - The proxy factory. - - - - Set the ADO.NET exception translator for this instance. - Applied to System.Data.Common.DbException (or provider specific exception type - in .NET 1.1) thrown by callback code, be it direct - DbException or wrapped Hibernate ADOExceptions. -

The default exception translator is either a ErrorCodeExceptionTranslator - if a DbProvider is available, or a FalbackExceptionTranslator otherwise -

-
- The ADO exception translator. -
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Helper class featuring methods for Hibernate Session handling, - allowing for reuse of Hibernate Session instances within transactions. - Also provides support for exception translation. - - Mark Pollack (.NET) - $Id: SessionFactoryUtils.cs,v 1.1 2008/04/08 20:26:30 markpollack Exp $ - - - - The instance for this class. - - - - - The ordering value for synchronizaiton this session resources. - Set to be lower than ADO.NET synchronization. - - - - - Initializes a new instance of the class. - - - - - Get a new Hibernate Session from the given SessionFactory. - Will return a new Session even if there already is a pre-bound - Session for the given SessionFactory. - - - Within a transaction, this method will create a new Session - that shares the transaction's ADO.NET Connection. More specifically, - it will use the same ADO.NET Connection as the pre-bound Hibernate Session. - - The session factory to create the session with. - The Hibernate entity interceptor, or null if none. - The new session. - If could not open Hibernate session - - - - Get a Hibernate Session for the given SessionFactory. Is aware of and will - return any existing corresponding Session bound to the current thread, for - example when using HibernateTransactionManager. Will always create a new - Session otherwise. - - - Supports setting a Session-level Hibernate entity interceptor that allows - to inspect and change property values before writing to and reading from the - database. Such an interceptor can also be set at the SessionFactory level - (i.e. on LocalSessionFactoryObject), on HibernateTransactionManager, or on - HibernateInterceptor/HibernateTemplate. - - The session factory to create the - session with. - Hibernate entity interceptor, or null if none. - AdoExceptionTranslator to use for flushing the - Session on transaction synchronization (can be null; only used when actually - registering a transaction synchronization). - The Hibernate Session - - If the session couldn't be created. - - - If no thread-bound Session found and allowCreate is false. - - - - - Get a Hibernate Session for the given SessionFactory. Is aware of and will - return any existing corresponding Session bound to the current thread, for - example when using . Will create a new Session - otherwise, if allowCreate is true. - - The session factory to create the session with. - if set to true create a non-transactional Session when no - transactional Session can be found for the current thread. - The hibernate session - - If the session couldn't be created. - - - If no thread-bound Session found and allowCreate is false. - - - - - Get a Hibernate Session for the given SessionFactory. - - Is aware of and will return any existing corresponding - Session bound to the current thread, for example whenusing - . Will create a new - Session otherwise, if "allowCreate" is true. -

Throws the orginal HibernateException, in contrast to - . -

- The session factory. - if set to true [allow create]. - The Hibernate Session - - if the Session couldn't be created - - - If no thread-bound Session found and allowCreate is false. - -
- - - Open a new Session from the factory. - - The session factory to create the session with. - Hibernate entity interceptor, or null if none. - the newly opened session - - - - Perform the actual closing of the Hibernate Session - catching and logging any cleanup exceptions thrown. - - The hibernate session to close - - - - Return whether the given Hibernate Session is transactional, that is, - bound to the current thread by Spring's transaction facilities. - - The hibernate session to check - The session factory that the session - was created with, can be null. - - true if the session transactional; otherwise, false. - - - - - Convert the given HibernateException to an appropriate exception from the - Spring.Dao hierarchy. Note that it is advisable to - handle AdoException specifically by using a AdoExceptionTranslator for the - underlying ADO.NET exception. - - The Hibernate exception that occured. - DataAccessException instance - - - - Close the given Session, created via the given factory, - if it is not managed externally (i.e. not bound to the thread). - - The hibernate session to close - The hibernate SessionFactory that - the session was created with. - - - - Close the given Session or register it for deferred close. - - The session. - The session factory. - - - - Initialize deferred close for the current thread and the given SessionFactory. - Sessions will not be actually closed on close calls then, but rather at a - processDeferredClose call at a finishing point (like request completion). - - The session factory. - - - - Return if deferred close is active for the current thread - and the given SessionFactory. - The session factory. - - true if [is deferred close active] [the specified session factory]; otherwise, false. - - If SessionFactory argument is null. - - - - Process Sessions that have been registered for deferred close - for the given SessionFactory. - - The session factory. - If there is no session factory associated with the thread. - - - - Applies the current transaction timeout, if any, to the given - criteria object - - The Hibernate Criteria object. - Hibernate SessionFactory that the Criteria was created for - (can be null). - If criteria argument is null. - - - - Applies the current transaction timeout, if any, to the given - Hibenrate query object. - - The Hibernate Query object. - Hibernate SessionFactory that the Query was created for - (can be null). - If query argument is null. - - - - Gets the Spring IDbProvider given the ISessionFactory. - - The matching is performed by comparing the assembly qualified - name string of the hibernate Driver.ConnectionType to those in - the DbProviderFactory definitions. No connections are created - in performing this comparison. - The session factory. - The corresponding IDbProvider, null if no mapping was found. - If DbProviderFactory's ApplicaitonContext is not - an instance of IConfigurableApplicaitonContext. - - - - Create a IAdoExceptionTranslator from the given SessionFactory. - - If a corresponding IDbProvider is found, a ErrorcodeExceptionTranslator - for the IDbProvider is created. Otherwise, a FallbackException is created. - The session factory to create the translator for - An IAdoExceptionTranslator - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning the result object created within the callback. - Note that there's special support for single step actions: - see HibernateTemplate.find etc. -

-
- The type of result object - Sree Nivask (.NET) - $Id: HibernateDelegate.cs,v 1.2 2007/09/19 22:58:10 markpollack Exp $ -
- - - Hibernate-specific subclass of InvalidDataAccessResourceUsageException, - thrown on invalid HQL query syntax. - - Mark Pollack (.NET) - $Id: HibernateQueryException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The ex. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Gets the query string that was invalid. - - The query string that was invalid. - - - - Implementation of NHibernates 1.2's ICurrentSessionContext interface - that delegates to Spring's SessionFactoryUtils for providing a - Spirng-managed current Session. - - Used by Spring's LocalSessionFactoryBean if told to expose - a transaction-aware SessionFactory. -

This ICurrentSessionContext implementation can also be specified in - custom ISessionFactory setup through the - "hibernate.current_session_context_class" property, with the fully - qualified name of this class as value.

- Juergen Hoeller - Mark Pollack (.NET) - $Id: SpringSessionContext.cs,v 1.2 2007/09/19 22:58:11 markpollack Exp $ - -
- - - Initializes a new instance of the class - - The NHibernate session factory. - - - - Retrieve the Spring-managed Session for the current thread. - - Current session associated with the thread - On errors retrieving thread bound session. - - - - Hibernate-specific subclass of ObjectOptimisticLockingFailureException. - - - Converts Hibernate's StaleObjectStateException. - - Juergen Hoeller - Mark Pollack (.NET) - $Id: HibernateOptimisticLockingFailureException.cs,v 1.1 2008/04/08 20:26:30 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The StaleObjectStateException. - - - - Initializes a new instance of the class. - - The StaleStateException. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Enumeration for the various Hibernate flush modes. - - Mark Pollack (.NET) - $Id: TemplateFlushMode.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - Never flush is a good strategy for read-only units of work. - - - Hibernate will not track and look for changes in this case, - avoiding any overhead of modification detection. -

In case of an existing ISession, TemplateFlushMode.Never will turn - the hibenrate flush mode - to FlushMode.Never for the scope of the current operation, resetting the previous - flush mode afterwards. -

-
-
- - Automatic flushing is the default mode for a Hibernate Session. - - - A session will get flushed on transaction commit, and on certain find - operations that might involve already modified instances, but not - after each unit of work like with eager flushing. -

In case of an existing Session, TemplateFlushMode.Auto - will participate in the existing flush mode, not modifying - it for the current operation. - This in particular means that this setting will not modify an existing - hibernate flush mode FlushMode.Never, in contrast to TemplateFlushMode.Eager. -

-
-
- - - Eager flushing leads to immediate synchronization with the database, - even if in a transaction. - - - This causes inconsistencies to show up and throw - a respective exception immediately, and ADO access code that participates - in the same transaction will see the changes as the database is already - aware of them then. But the drawbacks are: -
    -
  • additional communication roundtrips with the database, instead of a - single batch at transaction commit;
  • -
  • the fact that an actual database rollback is needed if the Hibernate - transaction rolls back (due to already submitted SQL statements).
  • -
-

In case of an existing Session, TemplateFlushMode.Eager - will turn the NHibernate flush mode - to FlushMode.Auto for the scope of the current operation and issue a flush at the - end, resetting the previous flush mode afterwards. -

-
-
- - - Flushing at commit only is intended for units of work where no - intermediate flushing is desired, not even for find operations - that might involve already modified instances. - - -

In case of an existing Session, TemplateFlushMode.Commit - will turn the NHibernate flush mode - to FlushMode.Commit for the scope of the current operation, resetting the previous - flush mode afterwards. The only exception is an existing flush mode - FlushMode.Never, which will not be modified through this setting. -

-
-
- - - Hibernate-specific subclass of UncategorizedDataAccessException, - for Hibernate system errors that do not match any concrete - Spring.Dao exceptions. - - Mark Pollack (.NET) - $Id: HibernateSystemException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Gets called by HibernateTemplate with an active - Hibernate Session. Does not need to care about activating or closing - the Session, or handling transactions. - - -

- Allows for returning a result object created within the callback, i.e. - a domain object or a collection of domain objects. Note that there's - special support for single step actions: see HibernateTemplate.find etc. -

-
-
- - - Hibernate-specific subclass of ObjectRetrievalFailureException. - - - Converts Hibernate's UnresolvableObjectException, ObjectNotFoundException, - ObjectDeletedException, and WrongClassException. - - Mark Pollack (.NET) - $Id: HibernateObjectRetrievalFailureException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Initializes a new instance of the class. - - The ex. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Hibernate-specific subclass of UncategorizedDataAccessException, - for ADO.NET exceptions that Hibernate rethrew and could not be - mapped into the DAO exception heirarchy. - - Mark Pollack (.NET) - $Id: HibernateAdoException.cs,v 1.1 2007/05/31 20:25:13 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception from the underlying data access API - ADO.NET - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Convenient super class for Hibernate data access objects. - - - Requires a SessionFactory to be set, providing a HibernateTemplate - based on it to subclasses. Can alternatively be initialized directly with - a HibernateTemplate, to reuse the latter's settings such as the SessionFactory, - exception translator, flush mode, etc - - This base call is mainly intended for HibernateTemplate usage. - - This class will create its own HibernateTemplate if only a SessionFactory - is passed in. The "allowCreate" flag on that HibernateTemplate will be "true" - by default. A custom HibernateTemplate instance can be used through overriding - CreateHibernateTemplate. - - - Mark Pollack (.NET) - $Id: HibernateDaoSupport.cs,v 1.2 2007/08/28 15:26:37 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Create a HibernateTemplate for the given ISessionFactory. - - - Only invoked if populating the DAO with a ISessionFactory reference! -

Can be overridden in subclasses to provide a HibernateTemplate instance - with different configuration, or a custom HibernateTemplate subclass. -

-
-
- - - Check if the hibernate template property has been set. - - - - - Get a Hibernate Session, either from the current transaction or - a new one. The latter is only allowed if "allowCreate" is true. - - Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Either rely on a thread-bound - Session (via HibernateInterceptor), or use it in combination with - ReleaseSession. - - In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. - - - if a non-transactional Session should be created when no - transactional Session can be found for the current thread - - Hibernate session. - - If the Session couldn't be created - - - if no thread-bound Session found and allowCreate false - - - - - - Convert the given HibernateException to an appropriate exception from the - org.springframework.dao hierarchy. Will automatically detect - wrapped ADO.NET Exceptions and convert them accordingly. - - HibernateException that occured. - - The corresponding DataAccessException instance - - - The default implementation delegates to SessionFactoryUtils - and convertAdoAccessException. Can be overridden in subclasses. - - - - - Close the given Hibernate Session, created via this DAO's SessionFactory, - if it isn't bound to the thread. - - - Typically used in plain Hibernate code, in combination with the - Session property and ConvertHibernateAccessException. - - The session to close. - - - - Gets or sets the hibernate template. - - Set the HibernateTemplate for this DAO explicitly, - as an alternative to specifying a SessionFactory. - - The hibernate template. - - - - Gets or sets the session factory to be used by this DAO. - Will automatically create a HibernateTemplate for the given SessionFactory. - - The session factory. - - - - Get a Hibernate Session, either from the current transaction or a new one. - The latter is only allowed if the "allowCreate" setting of this object's - HibernateTemplate is true. - - -

Note that this is not meant to be invoked from HibernateTemplate code - but rather just in plain Hibernate code. Use it in combination with - ReleaseSession. -

-

In general, it is recommended to use HibernateTemplate, either with - the provided convenience operations or with a custom HibernateCallback - that provides you with a Session to work on. HibernateTemplate will care - for all resource management and for proper exception conversion. -

-
- The Hibernate session. -
-
-
diff --git a/src/Spring/Spring.Data/Spring.Data.xml b/src/Spring/Spring.Data/Spring.Data.xml deleted file mode 100644 index 3640e377..00000000 --- a/src/Spring/Spring.Data/Spring.Data.xml +++ /dev/null @@ -1,10944 +0,0 @@ - - - - Spring.Data - - - - - This is the central interface in Spring.NET's transaction support. - - -

- Applications can use this directly, but it is not primarily meant as an API. - Typically, applications will work with either - or the AOP transaction - interceptor. -

-

- For implementers, - is a good starting point. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: IPlatformTransactionManager.cs,v 1.10 2007/08/01 18:53:05 markpollack Exp $ -
- - - Return a currently active transaction or create a new one. - - -

- Note that parameters like isolation level or timeout will only be applied - to new transactions, and thus be ignored when participating in active ones. - Furthermore, they aren't supported by every transaction manager: - a proper implementation should throw an exception when custom values - that it doesn't support are specified. -

-
- - instance (can be null for - defaults), describing propagation behavior, isolation level, timeout etc. - - - In case of lookup, creation, or system errors. - - - A representing the new or current transaction. - -
- - - Commit the given transaction, with regard to its status. - - -

- If the transaction has been marked rollback-only programmatically, - perform a rollback. -

-

- If the transaction wasn't a new one, omit the commit to take part - in the surrounding transaction properly. -

-
- - The instance returned by the - () method. - - - In case of commit or system errors - -
- - - Roll back the given transaction, with regard to its status. - - -

- If the transaction wasn't a new one, just set it rollback-only - to take part in the surrounding transaction properly. -

-
- - The instance returned by the - () method. - - - In case of system errors. - -
- - - An AOP Alliance providing - declarative transaction management using the common Spring.NET transaction infrastructure. - - -

- That class contains the necessary calls into Spring.NET's underlying - transaction API: subclasses such as this are responsible for calling - superclass methods such as - - in the correct order, in the event of normal invocation return or an exception. -

-

- s are thread-safe. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: TransactionInterceptor.cs,v 1.12 2007/09/07 04:46:53 markpollack Exp $ -
- - - Superclass for transaction aspects, such as the AOP Alliance-compatible - . - - -

- This enables the underlying Spring transaction infrastructure to be used - to easily implement an aspect for any aspect system. -

-

- Subclasses are responsible for calling methods in this class in the correct order. -

-

- Uses the Strategy design pattern. A - implementation will perform the actual transaction management -

-

- A transaction aspect is serializable if its - and - are serializable. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: TransactionAspectSupport.cs,v 1.15 2008/05/27 19:06:57 markpollack Exp $ -
- - - The name in thread local storage where the TransactionInfo object is located - - - - - The currently referenced by - this aspect - - - - - The currently - referenced by this aspect. - - - - - Creates a new instance of the - class. - - - - - Checks that the required properties are set. - - - - - Create a transaction if necessary - - Method about to execute - Type that the method is on - - A object, - whether or not a transaction was created. -

- The - - property on the - - class can be used to tell if there was a transaction created. -

-
-
- - - Creates the transaction if necessary. - - The source transaction attribute. - The joinpoint identification. - Transaction Info for declarative transaction management. - - - - Identifies the method by providing the qualfied method name. - - The method info. - qualified mehtod name. - - - - Execute after the successful completion of call, but not after an exception was handled. - - -

- Do nothing if we didn't create a transaction. -

-
- - The - - about the current transaction. - -
- - - Handle a exception, closing out the transaction. - - -

- We may commit or roll back, depending on our configuration. -

-
- - The - - about the current transaction. - - The encountered. -
- - - Resets the - - for this thread. - - - - Call this in all cases: exceptions or normal return. - - - - The - - about the current transaction. May be null. - - - - - Gets and sets the for - this aspect. - - - - - Gets and sets the - for - this aspect. - - - - - Returns the - of the current method invocation. - - - Mainly intended for code that wants to set the current transaction - rollback-only but not throw an application exception. - - - If the transaction info cannot be found, because the method was invoked - outside of an AOP invocation context. - - - - - Subclasses can use this to return the current - . - - - Only subclasses that cannot handle all operations in one method - need to use this mechanism to get at the current - . - An around advice such as an AOP Alliance - can hold a reference to the - - throughout the aspect method. - A - will be returned even if no transaction was created. The - - property can be used to query this. - - - If no transaction has been created by an aspect. - - - - - Set properties with method names as keys and transaction attribute - descriptors (parsed via ) as values: - e.g. key = "MyMethod", value = "PROPAGATION_REQUIRED,readOnly". - - - - Method names are always applied to the target class, no matter if defined in an - interface or the class itself. - -

- Internally, a - - will be created from the given properties. -

-
-
- - - Opaque object used to hold transaction information. - - -

- Subclasses must pass it back to method on this class, but not see its internals. -

-
-
- - - Creates a new instance of the - - class for the supplied . - - The transaction attributes to associate with any transaction. - The info for diagnostic display of joinpoint - - - - Binds this - - instance to the thread local storage variable for the current thread and - backs up the existing - - object for the current thread. - - - - - Restores the previous - - object to the current thread. - - - - - Does this instance currently have a transaction? - - True if this instance has a transaction. - - - - Gets and sets the for this object. - - - - - Gets the current - for this - - object. - - - - - Gets the joinpoint identification. - - The joinpoint identification. - - - - AOP Alliance invoke call that handles all transaction plumbing. - - - The method that is to execute in the context of a transaction. - - The return value from the method invocation. - - - - Tag class. Its class means it has the opposite behaviour to the - superclass. - - Rod Johnson - Griffin Caprio (.NET) - $Id: NoRollbackRuleAttribute.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Rule determining whether or not a given exception (and any subclasses) should - cause a rollback. - - -

- Multiple such rules can be applied to determine whether a transaction should commit - or rollback after an exception has been thrown. -

-
- Griffin Caprio (.NET) - $Id: RollbackRuleAttribute.cs,v 1.7 2008/03/31 20:09:59 markpollack Exp $ -
- - - Canonical instance representing default behavior for rolling back on - all s. - - - - - Creates a new instance of the - class - for the named . - - The exception name. - -

- As always, the should be the full - assembly qualified version. -

-
-
- - - Creates a new instance of the - class - for the suplied . - - -

- The exception class must be or a subclass. -

-

- This is the preferred way to construct a - , - matching the exception class and subclasses. -

-
- - The class that will trigger a rollback. - -
- - - Return the depth to the matching superclass execption . - - - A return value of 0 means that the matches. - - - The of exception to find. - - - Return -1 if there's no match. Otherwise, return depth. Lowest depth wins. - - - - - Return the depth to the matching superclass execption . - - - A return value of 0 means that the s - matches. - - - The exception object to find. - - - Return -1 if there's no match. Otherwise, return depth. Lowest depth wins. - - - - - Returns a representation of this instance. - - - A containing the exception covered by this instance. - - - - - Override of . - - The hashcode of the exception name covered by this instance. - - - - Override of . - - The object to compare. - True if the input object is equal to this instance. - - - - Strongly typed Equals() implementation. - - - The to compare. - - - True if the input object is equal to the supplied . - - - - - Returns the name of the exception. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - The class that will trigger a rollback. - - - - - Callback delegate to process each row of data in a result set to an object. - - The IDataReader to map - the number of the current row. - An abrirary object, typically derived from data - in the result set. - - - - This is the central class in the Spring.Data.Generic namespace. - It simplifies the use of ADO.NET and helps to avoid commons errors. - - Mark Pollack (.NET) - $Id: AdoTemplate.cs,v 1.19 2007/12/07 22:56:22 markpollack Exp $ - - - - Base class for AdoTemplate and other ADO.NET DAO helper classes defining - common properties like DbProvider. - - Mark Pollack (.NET) - Juergen Hoeller - - - - Prepare the command setting the transaction timeout. - - - - - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Creates the data reader wrapper for use in AdoTemplate callback methods. - - The reader to wrap. - The data reader used in AdoTemplate callbacks - - - - Creates the a db parameters collection, adding to the collection a parameter created from - the method parameters. - - The name of the parameter - The type of the parameter. - The size of the parameter, for use in defining lengths of string values. Use - 0 if not applicable. - The parameter value. - A collection of db parameters with a single parameter in the collection based - on the method parameters - - - - Creates a new instance of - - a new instance of - - - - Derives the parameters of a stored procedure, not including the return parameter. - - Name of the procedure. - The stored procedure parameters. - - - - Derives the parameters of a stored procedure including the return parameter - - Name of the procedure. - if set to true to include return parameter. - The stored procedure parameters - - - - An instance of a DbProvider implementation. - - - - - Gets or sets a value indicating whether to lazily initialize the - IAdoExceptionTranslator for this accessor, on first encounter of a - exception from the data provider. Default is "true"; can be switched to - "false" for initialization on startup. - - true if to lazy initialize the IAdoExceptionTranslator; - otherwise, false. - - - - Gets or sets the exception translator. If no custom translator is provided, a default - is used. - - The exception translator. - - - - Gets or set the System.Type to use to create an instance of IDataReaderWrapper - for the purpose of having defaults values to use in case of DBNull values read - from IDataReader. - - The type of the data reader wrapper. - - - - Gets or sets the command timeout for IDbCommands that this AdoTemplate executes. - - Default is 0, indicating to use the database provider's default. - Any timeout specified here will be overridden by the remaining - transaction timeout when executing within a transaction that has a - timeout specified at the transaction level. - - The command timeout. - - - - Interface that defines ADO.NET related database operations using generics - - Mark Pollack (.NET) - $Id: IAdoOperations.cs,v 1.9 2007/12/04 06:48:21 markpollack Exp $ - - - - Execute the query with the specified command text returning a scalar result - - No parameters are used. As with - IDbCommand.ExecuteScalar, it returns the first column of the first row in the resultset - returned by the query. Extra columns or row are ignored. - The command type - The command text to execute. - The first column of the first row in the result set. - - - - Execute the query with the specified command text and parameter returning a scalar result - - The command type - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters returning a scalar result - - The command type - The command text to execute. - The parameter collection to map. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters set via the - command setter, returning a scalar result - - The command type - The command text to execute. - The command setter. - The first column of the first row in the result set - - - - Execute the query with a command created via IDbCommandCreator and - parameters - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example StoredProcedure/AdoScalar. - - - The callback to create a IDbCommand. - A dictionary containing output parameters, if any - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The parameter collection to map. - The number of rows affected. - - - - Executes a non query with parameters set via the - command setter, returning the number of rows affected. - - The command type. - The command text to execute. - The command setter. - The number of rows affected. - - - - Executes a non query with a command created via IDbCommandCreator and - parameters. - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example StoredProcedure/AdoScalar. - - - The callback to create a IDbCommand. - The number of rows affected. - - - - Execute a query given IDbCommand's type and text, reading a - single result set on a per-row basis with a . - - The type of command. - The text of the query. - callback that will extract results - one row at a time. - - - - - Execute a query given IDbCommand's type and text and provided parameter - information, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - - - - Execute a query given IDbCommand's type and text and provided IDbParameters, - reading a single result set on a per-row basis with a . - - Type of the command. - The text of the query. - callback that will extract results - one row at a time. - The parameter collection to map. - - - - Execute a query given IDbCommand's type and text by - passing the created IDbCommand to a ICommandSetter implementation - that knows how to bind values to the IDbCommand, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The command setter. - - - - Execute a ADO.NET operation on a command object using a generic interface based callback. - - The type of object returned from the callback. - the callback to execute based on DbCommand - An object returned from callback - - - - Execute a ADO.NET operation on a command object using a generic interface based callback. - - The type of object returned from the callback. - The callback to execute based on IDbCommand - An object returned from callback - - - - Execute a ADO.NET operation on a command object using a generic delegate callback. - - The type of object returned from the callback. - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - The delegate called with a DbCommand object. - A result object returned by the action or null - - - - Execute a ADO.NET operation on a command object using a generic delegate callback. - - The type of object returned from the callback. - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - The delegate called with a IDbCommand object. - A result object returned by the action or null - - - - Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, - using the interface based callback IDbCommandCallback. - - The type of object returned from the callback. - The command creator. - The callback to execute based on IDbCommand - A result object returned by the action or null - - - - Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - The type of object returned from the callback. - The data adapter callback. - A result object returned by the callback or null - - - - Execute ADO.NET operations on a IDbDataAdapter object using an delgate based callback. - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - The type of object returned from the callback. - The delegate called with a IDbDataAdapter object. - A result object returned by the callback or null - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The provider. - - - - Initializes a new instance of the class. - - The database provider. - if set to false - lazily initialize the ErrorCodeExceptionTranslator. - - - - Initializes a new instance of the class. - - Useful if you have a subclass of Spring.Data.Core.AdoTemplate. - The classic ADO template. - - - - Execute a ADO.NET operation on a command object using a interface based callback. - - the callback to execute - object returned from callback - - - - Execute a ADO.NET operation on a command object using a delegate callback. - - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - The delegate called with a command object. - A result object returned by the action or null - - - - Execute a ADO.NET operation on a command object using a interface based callback. - - the callback to execute - object returned from callback - - - - Execute a ADO.NET operation on a command object using a delegate callback. - - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - The delegate called with a command object. - A result object returned by the action or null - - - - Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, - using the interface based callback IDbCommandCallback. - - The type of object returned from the callback. - The command creator. - The callback to execute based on IDbCommand - - A result object returned by the action or null - - - - - Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. - - The type of object returned from the callback. - The data adapter callback. - - A result object returned by the callback or null - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - - - - Execute ADO.NET operations on a IDbDataAdapter object using an delgate based callback. - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - The type of object returned from the callback. - The delegate called with a IDbDataAdapter object. - A result object returned by the callback or null - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The parameter collection to map. - The number of rows affected. - - - - Executes a non query with parameters set via the - command setter, returning the number of rows affected. - - The command type. - The command text to execute. - The command setter. - The number of rows affected. - - - - Executes a non query with a command created via IDbCommandCreator and - parameters. - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example StoredProcedure/AdoScalar. - - - The callback to create a IDbCommand. - The number of rows affected. - - - - Execute the query with the specified command text. - - No parameters are used. As with - IDbCommand.ExecuteScalar, it returns the first column of the first row in the result set - returned by the query. Extra columns or row are ignored. - The command type - The command text to execute. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameter returning a scalar result - - The command type - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters returning a scalar result - - The command type - The command text to execute. - The parameter collection to map. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters set via the - command setter, returning a scalar result - - The command type - The command text to execute. - The command setter. - The first column of the first row in the result set - - - - Execute the query with a command created via IDbCommandCreator and - parameters - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example for StoredProcedure/AdoScalar. - - The callback to create a IDbCommand. - A dictionary containing output parameters, if any - - - - Execute a query given IDbCommand's type and text by - passing the created IDbCommand to a ICommandSetter implementation - that knows how to bind values to the IDbCommand, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The command setter. - - - - Execute a query given IDbCommand's type and text, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - - - - Execute a query given IDbCommand's type and text and provided parameter - information, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - - - - Execute a query given IDbCommand's type and text and provided IDbParameters, - reading a single result set on a per-row basis with a . - - Type of the command. - The text of the query. - callback that will extract results - one row at a time. - The parameter collection to map. - - - - Checks if DbProvider is not null and creates ExceptionTranslator if not LazyInit. - - - - - Creates the data reader wrapper for use in AdoTemplate callback methods. - - The reader to wrap. - The data reader used in AdoTemplate callbacks - - - - Derives the parameters of a stored procedure including the return parameter - - Name of the procedure. - if set to true to include return parameter. - The stored procedure parameters - - - - An instance of a DbProvider implementation. - - - - - Gets or sets a value indicating whether to lazily initialize the - IAdoExceptionTranslator for this accessor, on first encounter of a - exception from the data provider. Default is "true"; can be switched to - "false" for initialization on startup. - - true if to lazy initialize the IAdoExceptionTranslator; - otherwise, false. - - - - Gets or sets the exception translator. If no custom translator is provided, a default - is used. - - The exception translator. - - - - Gets or set the System.Type to use to create an instance of IDataReaderWrapper - for the purpose of having defaults values to use in case of DBNull values read - from IDataReader. - - The type of the data reader wrapper. - - - - Gets the 'Classic' AdoTemplate in Spring.Data - - - Useful to access methods that return non-generic collections. - - The 'Classic; AdoTemplate in Spring.Data. - - - - Gets or sets the command timeout for IDbCommands that this AdoTemplate executes. It also - sets the value of the contained 'ClassicAdoTemplate'. - - The command timeout. - Default is 0, indicating to use the database provider's default. - Any timeout specified here will be overridden by the remaining - transaction timeout when executing within a transaction that has a - timeout specified at the transaction level. - - - - - Generic callback interface for code that operates on a - IDbCommand. - - The return type from executing the - callback - -

Allows you to execute any number of operations - on a single IDbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in IDbCommand - has been created by the framework and will have its - Connection property set and the Transaction property - set based on the transaction context.

-

As an alternative to using this interface you can use - the delegate version which is particularly nice when using - anonymous delegates for writing more terse code and having - easy access to the variables in the calling class.

-

See for a version that has the - base class DbCommand as the callback argument.

-
- Mark Pollack -
- - - Called by AdoTemplate.Execute with an active ADO.NET IDbCommand. - The calling code does not need to care about closing the - command or the connection, or - about handling transactions: this will all be handled by - Spring's AdoTemplate - - An active IDbCommand instance - The result object - - - - Interface to be implemented by objects that can provide SQL strings - - Typically implemented by IDbCommandCreator and - ICommandCallbacks that want to expose the CommandText they - use to create their ADO.NET commands, to allow for better - contextual information in case of exceptions - Mark Pollack(.NET) - Juergen Hoeller - - - - Generic callback interface for code that operates on a - IDbCommand. - - -

Allows you to execute any number of operations - on a single IDbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in IDbCommand - has been created by the framework.

-
- Mark Pollack -
- - - Called by AdoTemplate.Execute with an active ADO.NET IDbCommand. - The calling code does not need to care about closing the - command or the connection, or - about handling transactions: this will all be handled by - Spring's AdoTemplate - - An active IDbCommand instance - The result object - - - - Callback delegate to process all result sets and row in an - AdoTemplate query method. - - The type returned from the result set mapping. - The IDataReader to extract data from. - Implementations should not close this: it will be closed - by the AdoTemplate. - An arbitrary result object or null if none. - - - - Provides database metdata information. - - Mark Pollack (.NET) - $Id: DbMetadata.cs,v 1.13 2007/11/21 18:01:45 markpollack Exp $ - - - - Provides minimal database metadata information to support the - functionality in Spring.NET ADO.NET Framework. - - - Mark Pollack (.NET) - $Id: IDbMetadata.cs,v 1.8 2007/11/21 18:01:45 markpollack Exp $ - - - - Gets a descriptive name of the product. - - Example: Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0 - The name of the product. - - - - Gets the type of the connection. The fully qualified type name is given since some providers, - notably for SqlServerCe, do not use the same namespace for all data access types. - - Example: System.Data.SqlClient.SqlCommand, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the connection. - - - - Gets the type of the command. - - Example: System.Data.SqlClient.SqlCommand, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the command. - - - - Gets the type of the parameter. - - Example: System.Data.SqlClient.SqlParameter, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the parameter. - - - - Gets the type of the data adapter. - - Example: System.Data.SqlClient.SqlDataAdapter, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the data adapter. - - - - Gets the type of the command builder. - - Example: System.Data.SqlClient.SqlCommandBuilder, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the command builder. - - - - Gets the type of the exception. - - Example: System.Data.SqlClient.SqlException, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the exception. - - - - Gets the error code exception expression. - - Example Errors[0].Number.ToString() for Sql Server - The error code exception expression. - - - - Gets the command builder derive parameters method. - - If the value 'not supported' is specified then this method will throw an ArgumentException - Example: DeriveParameters - The command builder derive parameters method. - - - - Provide the prefix used to indentify named parameters in SQL text. - - @ for Sql Server - - - - Does the driver require the use of the parameter prefix when - specifying the name of the parameter in the Command's - Parameter collection. - - If true, then commamd.Parameters["@parameterName"] is - used, otherwise, command.Parameters["parameterName"]. - - - - - Gets a value indicating whether the Provider requires - the use of a named prefix in the SQL string. - - - The OLE DB/ODBC .NET Provider does not support named parameters for - passing parameters to an SQL Statement or a stored procedure called - by an IDbCommand when CommandType is set to Text. - - - true if use parameter prefix in SQL; otherwise, false. - - - - - For providers that allow you to choose between binding parameters - to a command by name (true) or by position (false). - - - - - Gets the type of the parameter db. - - Example: System.Data.SqlDbType, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the parameter db. - - - - Gets the parameter db type property. - - Example: SqlDbType for SqlServer - The parameter db type property. - - - - Gets the parameter is nullable property. - - Example: IsNullable for Sql Server - The parameter is nullable property. - - - - Gets or sets the error codes. - - The collection of error codes to map error code integer values to Spring's DAO exception hierarchy - The error codes. - - - - Initializes a new instance of the class. - - Name of the product. - Name of the assembly. - Type of the connection. - Type of the command. - Type of the parameter. - Type of the data adapter. - Type of the command builder. - The command builder derive parameters method. - Type of the parameter db. - The parameter db type property. - The parameter is nullable property. - The parameter name prefix. - Type of the exception. - if set to true [use parameter name prefix in parameter collection]. - if set to true [use parameter prefix in SQL]. - if set to true [bind by name]. - The error code exception expression. - - - - Gets a value indicating whether to use param name prefix in parameter collection. - - - true if should use param name prefix in parameter collection; otherwise, false. - - - - - Gets the name of the assembly. - - Example: System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The name of the assembly. - - - - Gets a descriptive name of the product. - - Example: Microsoft SQL Server, provider V2.0.0.0 in framework .NET V2.0 - The name of the product. - - - - Gets the type of the connection. The fully qualified type name is given since some providers, - notably for SqlServerCe, do not use the same namespace for all data access types. - - Example: System.Data.SqlClient.SqlCommand, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the connection. - - - - Gets the type of the command. - - Example: System.Data.SqlClient.SqlCommand, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the command. - - - - Gets the type of the parameter. - - Example: System.Data.SqlClient.SqlParameter, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the parameter. - - - - Gets the type of the data adapter. - - Example: System.Data.SqlClient.SqlDataAdapter, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the data adapter. - - - - Gets the type of the command builder. - - Example: System.Data.SqlClient.SqlCommandBuilder, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the command builder. - - - - Gets the command builder derive parameters method. - - If the value 'not supported' is specified then this method will throw an ArgumentException - Example: DeriveParameters - The command builder derive parameters method. - - - - Provide the prefix used to indentify named parameters in SQL text. - - @ for Sql Server - - - - Gets the type of the exception. - - Example: System.Data.SqlClient.SqlException, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the exception. - - - - Does the driver require the use of the parameter prefix when - specifying the name of the parameter in the Command's - Parameter collection. - - - If true, then commamd.Parameters["@parameterName"] is - used, otherwise, command.Parameters["parameterName"]. - - - - - Gets a value indicating whether the Provider requires - the use of a named prefix in the SQL string. - - - true if use parameter prefix in SQL; otherwise, false. - - - The OLE DB/ODBC .NET Provider does not support named parameters for - passing parameters to an SQL Statement or a stored procedure called - by an IDbCommand when CommandType is set to Text. - - - - - For providers that allow you to choose between binding parameters - to a command by name (true) or by position (false). - - - - - - Gets the type of the parameter db. - - Example: System.Data.SqlDbType, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - The type of the parameter db. - - - - Gets the parameter db type property. - - Example: SqlDbType for SqlServer - The parameter db type property. - - - - Gets the parameter is nullable property. - - Example: IsNullable for Sql Server - The parameter is nullable property. - - - - Gets or sets the error codes. - - The collection of error codes to map error code integer values to Spring's DAO exception hierarchy - The error codes. - - - - Gets the error code exception expression. - - Example Errors[0].Number.ToString() for Sql Server - The error code exception expression. - - - - Exception thrown on a pessimistic locking violation. - - - Serves as a superclass for more specific exceptions, like - CannotAcquireLockException and DeadlockLoserDataAccessException - - - This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. - - - Rod Johnson - Mark Pollack (.NET) - $Id: PessimisticLockingFailureException.cs,v 1.1 2008/04/08 20:26:43 markpollack Exp $ - - - - Exception thrown on concurrency failure. This exception should be - sublassed to indicate the type of failure - optimistic locking, - failure to acquire lock, etc. - - -

- This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. -

-
- Thomas Risberg - Griffin Caprio (.NET) - $Id: ConcurrencyFailureException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Root of the hierarchy of data access exceptions - - Rod Johnson - Griffin Caprio (.NET) - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Helper class that simplifies programmatic transaction demarcation and - transaction exception handling. - - -

- The central methods are - - and - supporting transactional code wrapped in the delegate instance. It handles the - transaction lifecycle and possible exceptions such that neither the delegate - implementation nor the calling code needs to explicitly handle transactions. -

-

- Can be used within a service implementation via direct instantiation with - a transaction manager reference, or get prepared in an application context - and given to services as object reference. -

- - The transaction manager should always be configured as an object in the application - context, in the first case given to the service directly, in the second case to the - prepared template. - -

- Supports setting the propagation behavior and the isolation level by name, - for convenient configuration in context definitions. -

-
- Juergen Hoeller - Mark Pollack (.NET) - Griffin Caprio (.NET) - $Id: TransactionTemplate.cs,v 1.13 2007/08/01 18:53:14 markpollack Exp $ -
- - - Default implementation of the - interface, offering object-style configuration and sensible default values. - - -

- Base class for both and - . -

-
- Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: DefaultTransactionDefinition.cs,v 1.15 2007/12/07 08:10:03 markpollack Exp $ -
- - - Interface for classes that define transaction properties. Base interface for - . - - -

- Note that isolation level, timeout and read-only settings will only - get applied when starting a new transaction. As only - and - can actually cause that, it doesn't make sense - to specify any of those settings else. Furthermore, not all transaction - managers will support those features and thus throw respective exceptions - when given non-default values. -

-
- Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: ITransactionDefinition.cs,v 1.9 2007/12/07 08:10:03 markpollack Exp $ -
- - - Return the propagation behavior of type - . - - - - - Return the isolation level of type . - - -

- Only makes sense in combination with - and - . -

-

- Note that a transaction manager that does not support custom isolation levels - will throw an exception when given any other level than - . -

-
-
- - - Return the transaction timeout. - - -

- Must return a number of seconds, or -1. - Only makes sense in combination with - and - . - Note that a transaction manager that does not support timeouts will - throw an exception when given any other timeout than -1. -

-
-
- - - Get whether to optimize as read-only transaction. - - -

- This just serves as hint for the actual transaction subsystem, - it will not necessarily cause failure of write accesses. -

-

- Only makes sense in combination with - and - . -

-

- A transaction manager that cannot interpret the read-only hint - will not throw an exception when given ReadOnly=true. -

-
-
- - - Return the name of this transaction. Can be null. - - - This will be used as a transaction name to be shown in a - transaction monitor, if applicable. In the case of Spring - declarative transactions, the exposed name will be the fully - qualified type name + "." method name + assembly (by default). - - - - - Gets the enterprise services interop option. - - The enterprise services interop option. - - - - The default transaction timeout. - - - - - Prefix for Propagation settings. - - - - - Prefix for IsolationLevel settings. - - - - - Prefix for transaction timeout values in description strings. - - - - - Marker for read-only transactions in description strings. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class - with the supplied - behaviour. - - - The desired behavior. - - - - - An override of the default method. - - The to compare to. - True if the objects are equal. - - - - An override of the default method that returns the - hashcode of the - - property. - - - The hashcode of the - - property. - - - - - An override of the default method that returns a string - representation of the - - property. - - - A string representation of the - - property. - - - - - Gets / Sets the propagation - behavior. - - - - - Return the isolation level of type . - - -

- Only makes sense in combination with - and - . -

-

- Note that a transaction manager that does not support custom isolation levels - will throw an exception when given any other level than - . -

-
-
- - - Return the transaction timeout. - - -

- Must return a number of seconds, or -1. - Only makes sense in combination with - and - . - Note that a transaction manager that does not support timeouts will - throw an exception when given any other timeout than -1. -

-
-
- - - Get whether to optimize as read-only transaction. - - -

- This just serves as hint for the actual transaction subsystem, - it will not necessarily cause failure of write accesses. -

-

- Only makes sense in combination with - and - . -

-

- A transaction manager that cannot interpret the read-only hint - will not throw an exception when given ReadOnly=true. -

-
-
- - - Return the name of this transaction. Can be null. - - - - This will be used as a transaction name to be shown in a - transaction monitor, if applicable. In the case of Spring - declarative transactions, the exposed name will be the fully - qualified type name + "." method name + assembly (by default). - - - - - Gets the enterprise services interop option. - - The enterprise services interop option. - - - - Returns a representation of the - - property. - - - - - Interface specifying basic transaction exectuion operations. - - - Implemented by . Not often used directly, - but a useful option to enhance testability, as it can easily be mocked or stubbed. - - Juergen Hoeller - Mark Pollac (.NET) - $Id: ITransactionOperations.cs,v 1.1 2007/08/01 18:53:14 markpollack Exp $ - - - - Executes the the action specified by the given delegate callback within a transaction. - - Allows for returning a result object created within the transaction, that is, - a domain object or a collection of domain objects. An exception thrown by the callback - is treated as a fatal exception that enforces a rollback. Such an exception gets - propagated to the caller of the template. - - The delegate that specifies the transactional action. - A result object returned by the callback, or null if one - - In case of initialization or system errors. - - - - - Executes the action specified by the given callback object within a transaction. - - Allows for returning a result object created within the transaction, that is, - a domain object or a collection of domain objects. An exception thrown by the callback - is treated as a fatal exception that enforces a rollback. Such an exception gets - propagated to the caller of the template. - - The callback object that specifies the transactional action. - A result object returned by the callback, or null if one - - In case of initialization or system errors. - - - - - Creates a new instance of the - class. - - -

- Mainly targeted at configuration by an object factory. -

- - The - - property must be set before any calls to the - - or - method. - -
- -
- - - Creates a new instance of the - class. - - -

- Mainly targeted at configuration by an object factory. -

-
- - The transaction management strategy to be used. - -
- - - Ensures that the - - has been set. - - - - - Executes the the action specified by the given delegate callback within a transaction. - - The delegate that specifies the transactional action. - - A result object returned by the callback, or null if one - - Allows for returning a result object created within the transaction, that is, - a domain object or a collection of domain objects. An exception thrown by the callback - is treated as a fatal exception that enforces a rollback. Such an exception gets - propagated to the caller of the template. - - - In case of initialization or system errors. - - - - - Executes the action specified by the given callback object within a transaction. - - The callback object that specifies the transactional action. - - A result object returned by the callback, or null if one - - Allows for returning a result object created within the transaction, that is, - a domain object or a collection of domain objects. An exception thrown by the callback - is treated as a fatal exception that enforces a rollback. Such an exception gets - propagated to the caller of the template. - - - In case of initialization or system errors. - - - - - Perform a rollback, handling rollback exceptions properly. - - The object representing the transaction. - The thrown application exception or error. - - - - Gets and sets the to - be used. - - - - - Interface that specifies means to programmatically manage - transaction savepoints in a generic fashion. - - -

- Note that savepoints can only work within an active transaction. - Just use this programmatic savepoint handling for advanced needs; - else, a subtransaction with a value - of is preferable. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: ISavepointManager.cs,v 1.5 2006/05/17 17:48:25 bbaia Exp $ -
- - - Create a new savepoint. - - - The name of the savepoint to create. - - - You can roll back to a specific savepoint - via , - and explicitly release a savepoint that you don't need anymore via - . -

- Note that most transaction managers will automatically release - savepoints at transaction completion. -

-
- - If the savepoint could not be created, - either because the backend does not support it or because the - transaction is not in an appropriate state. - - - A savepoint object, to be passed into - - or . - -
- - - Roll back to the given savepoint. - - - The savepoint will be automatically released afterwards. - - The savepoint to roll back to. - - If the rollback failed. - - - - - Explicitly release the given savepoint. - - -

- Note that most transaction managers will automatically release - savepoints at transaction completion. -

-

- Implementations should fail as silently as possible if - proper resource cleanup will still happen at transaction completion. -

-
- The savepoint to release. - - If the release failed. - -
- - - This interface adds a - - specification to . - - Griffin Caprio (.NET) - $Id: ITransactionAttribute.cs,v 1.6 2007/12/29 00:28:53 markpollack Exp $ - - - - Decides if rollback is required for the supplied . - - The to evaluate. - True if the exception causes a rollback, false otherwise. - - - - Transaction attribute approach to rolling back on all exceptions, no other - exceptions by default. - - Rod Johnson - Griffin Caprio (.NET) - $Id: DefaultTransactionAttribute.cs,v 1.9 2007/12/29 00:28:53 markpollack Exp $ - - - - Prefix for rollback-on-exception rules in description strings. - - - - - Prefix for commit-on-exception rules in description strings. - - - - - Creates a new instance of the - - class. - - - - - Creates a new instance of the - - class, setting the propagation behavior to the supplied value. - - - The desired transaction propagation behaviour. - - - - - Decides if rollback is required for the supplied . - - -

- The default behavior is to rollback on any exception. - Consistent with 's behavior. -

-
- The to evaluate. - True if the exception causes a rollback, false otherwise. -
- - - Return a description of this transaction attribute. - - -

- The format matches the one used by the - , - to be able to feed any result into a - instance's properties. -

-
-
- - - Miscellaneous utility methods for manipulating parameter objects. - - Mark Pollack (.NET) - $Id: ParameterUtils.cs,v 1.12 2007/10/11 04:41:00 markpollack Exp $ - - - - The shared log instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Copies the parameters from IDbParameters to the parameter collection in IDbCommand - - The command. - The spring param collection. - - - - Copies the parameters in IDbCommand to IDbParameters - - The spring param collection. - The command. - - - - Interface to be implemented by classes that can translate between properietary SQL exceptions - and Spring.NET's data access strategy-agnostic . - - -

- Implementations can be generic (for example, ADO.NET Exceptions) or proprietary (for example, - using SQL Server or Oracle error codes) for greater precision. -

-
- Rod Johnson - Griffin Caprio (.NET) - Mark Pollack - $Id: IAdoExceptionTranslator.cs,v 1.2 2006/11/29 07:18:46 markpollack Exp $ -
- - - Translate the given into a generic data access exception. - - A readable string describing the task being attempted. - The SQL query or update that caused the problem. May be null. - - The encountered by the ADO.NET implementation. - - - A appropriate for the supplied - . - - - - - Transaction Manager that uses EnterpriseServices to access the - MS-DTC. It requires the support of 'Services without Components' - functionality which is available on Win 2003 and Win XP SP2. - - Mark Pollack (.NET) - $Id: ServiceDomainPlatformTransactionManager.cs,v 1.6 2007/12/04 19:43:16 markpollack Exp $ - - - - Abstract base class that allows for easy implementation of concrete platform transaction managers. - - -

Provides the following workflow handling: -

    -
  • Determines if there is an existing transaction
  • -
  • Applies the appropriate propagation behavior
  • -
  • Suspends and resumes transactions if necessary
  • -
  • Checks the rollback-only flag on commit
  • -
  • Applies the appropriate modification on rollback (actual rollback or setting rollback-only)
  • -
  • Triggers registered synchronization callbacks (if transaction synchronization is active)
  • -
-

-

- Transaction synchronization is a generic mechanism for registering - callbacks that get invoked at transaction completion time. The same mechanism - can also be used for custom synchronization efforts. -

-

- The state of this class is serializable. It's up to subclasses if - they wish to make their state to be serializable. - They should implement if they need - to restore any transient state. -

-
- Juergen Hoeller - Mark Pollack (.NET) - Griffin Caprio (.NET) -
- - - Return the current transaction object. - - The current transaction object. - - If transaction support is not available. - - - In the case of lookup or system errors. - - - - - Check if the given transaction object indicates an existing transaction - (that is, a transaction which has already started). - - - The result will be evaluated according to the specified propagation - behavior for the new transaction. An existing transaction might get - suspended (in case of PROPAGATION_REQUIRES_NEW), or the new transaction - might participate in the existing one (in case of PROPAGATION_REQUIRED). - Default implementation returns false, assuming that detection of or - participating in existing transactions is generally not supported. - Subclasses are of course encouraged to provide such support. - - Transaction object returned by - . - - True if there is an existing transaction. - - In the case of system errors. - - - - - Begin a new transaction with the given transaction definition. - - - Does not have to care about applying the propagation behavior, - as this has already been handled by this abstract manager. - - - Transaction object returned by - . - - - instance, describing - propagation behavior, isolation level, timeout etc. - - - In the case of creation or system errors. - - - - - Suspend the resources of the current transaction. - - - Transaction synchronization will already have been suspended. - - Default implementation throws a TransactionSuspensionNotSupportedException, - assuming that transaction suspension is generally not supported. - - - - Transaction object returned by - . - - - An object that holds suspended resources (will be kept unexamined for passing it into - .) - - - If suspending is not supported by the transaction manager implementation. - - - in case of system errors. - - - - - Resume the resources of the current transaction. - - Transaction synchronization will be resumed afterwards. - - Default implementation throws a TransactionSuspensionNotSupportedException, - assuming that transaction suspension is generally not supported. - - - - Transaction object returned by - . - - - The object that holds suspended resources as returned by - . - - - If suspending is not supported by the transaction manager implementation. - - - In the case of system errors. - - - - - Perform an actual commit on the given transaction. - - The status representation of the transaction. - -

- An implementation does not need to check the rollback-only flag. -

-
- - In the case of system errors. - -
- - - Perform an actual rollback on the given transaction. - - The status representation of the transaction. - - An implementation does not need to check the new transaction flag. - - - In the case of system errors. - - - - - Set the given transaction rollback-only. Only called on rollback - if the current transaction takes part in an existing one. - - Default implementation throws an IllegalTransactionStateException, - assuming that participating in existing transactions is generally not - supported. Subclasses are of course encouraged to provide such support. - - The status representation of the transaction. - - In the case of system errors. - - - - - Return whether to use a savepoint for a nested transaction. Default is true, - which causes delegation to - for holding a savepoint. - - - -

- Subclasses can override this to return false, causing a further - invocation of - - despite an already existing transaction. -

-
-
- - - Cleanup resources after transaction completion. - - - Transaction object returned by - . - - -

- Called after - and - - execution on any outcome. -

-

- Should not throw any exceptions but just issue warnings on errors. -

-

- Default implementation does nothing. -

-
-
- - - Return a currently active transaction or create a new one. - - -

- This implementation handles propagation behavior. -

-

- Delegates to - , - , - and - . -

-

- Note that parameters like isolation level or timeout will only be applied - to new transactions, and thus be ignored when participating in active ones. - Furthermore, they aren't supported by every transaction manager: - a proper implementation should throw an exception when custom values - that it doesn't support are specified. -

-
- - instance (can be null for - defaults), describing propagation behavior, isolation level, timeout etc. - - - In case of lookup, creation, or system errors. - - - representing the new or current transaction. - -
- - - This implementation of commit handles participating in existing transactions - and programmatic rollback requests. - - - - - ITransactionStatus object returned by the - () method. - - - In case of commit or system errors. - - - - - Roll back the given transaction, with regard to its status. - - -

- This implementation handles participating in existing transactions. -

-

- Delegates to - , - and - . -

-

- If the transaction wasn't a new one, just set it rollback-only - to take part in the surrounding transaction properly. -

-
- - ITransactionStatusObject returned by the - () method. - - - In case of system errors. - -
- - - Determines the timeout to use for the given definition. Will fall back to this manager's default - timeout if the transaction definition doesn't specify a non-default value. - - The transaction definition. - the actual timeout to use. - - - - Suspend the given transaction. Suspends transaction synchronization first, - then delegates to the doSuspend template method. - - the current transaction object - an object that holds suspended resources - - - - Resume the given transaction. Delegates to the doResume template method - first, then resuming transaction synchronization. - - the current transaction object - the object that holds suspended resources, as returned by suspend - - - - Invoke doRollback, handling rollback exceptions properly. - - object representing the transaction - the thrown application exception or error - - in case of a rollback error - - - - - Trigger beforeCommit callback. - - object representing the transaction - - - - Trigger beforeCompletion callback. - - object representing the transaction - - - - Trigger afterCompletion callback, handling exceptions properly. - - object representing the transaction - - Completion status according to - - - - - Clean up after completion, clearing synchronization if necessary, - and invoking doCleanupAfterCompletion. - - object representing the transaction - - - - Sets and gets when this transaction manager should activate the thread-bound - transaction synchronization support. Default is "always". - - -

- Note that transaction synchronization isn't supported for - multiple concurrent transactions by different transaction managers. - Only one transaction manager is allowed to activate it at any time. -

- -
-
- - - Sets and gets whether nested transactions are allowed. Default is false. - - -

- Typically initialized with an appropriate default by the - concrete transaction manager subclass. -

-
-
- - - Sets and gets a flag that determines whether or not the - - method must be invoked if a call to the - - method fails. Default is false. - - - Typically not necessary and thus to be avoided as it can override the - commit exception with a subsequent rollback exception. - - - - - Gets or sets a value indicating whether to fail early in case of the transaction being - globally marked as rollback-only. - - - Default is "false", only causing an UnexpectedRollbackException at the - outermost transaction boundary. Switch this flag on to cause an - UnexpectedRollbackException as early as the global rollback-only marker - has been first detected, even from within an inner transaction boundary. - - - true if fail early on global rollback; otherwise, false. - - - - - Gets or sets the default timeout that this transaction manager should apply if there - is no timeout specified at the transaction level, in seconds. - - Returns DefaultTransactionDefinition.TIMEOUT_DEFAULT to indicate the - underlying transaction infrastructure's default timeout. - The default timeout. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - This is indented only for unit testing purposes and should not be - called by production application code. - The tx adapter. - - - - Gets or sets a value indicating whether tracking is enabled. - - true if tracking is enabled; otherwise, false. - - - - Gets or sets a text string that corresponds to the application ID under which tracker information is reported. - The default value is 'Spring.NET' - - The name of the tracking app. - - - - Gets or sets a text string that corresponds to the context name under which tracker information is reported. - - The name of the tracking component. - - - - Interface to be implemented by transaction objects that are able to - return an internal rollback-only marker, typically from a another - transaction that has participated and marked it as rollback-only. - - -

- Autodetected by , - to always return a current rollbackOnly flag even if not resulting from the current - . -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: ISmartTransactionObject.cs,v 1.6 2007/08/29 03:42:20 markpollack Exp $ -
- - - Return whether the transaction is internally marked as rollback-only. - - True of the transaction is marked as rollback-only. - - - - Exception thrown on mismatch between CLS type and database type: - for example on an attempt to set an object of the wrong type - in an RDBMS column. - - Rod Johnson - Griffin Caprio (.NET) - $Id: TypeMismatchDataAccessException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ - - - - Root for exceptions thrown when we use a data access resource incorrectly. - - -

- Thrown for example on specifying bad SQL when using a RDBMS. - Resource-specific subclasses will probably be supplied by data access packages. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: InvalidDataAccessResourceUsageException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Data access exception thrown when a resource fails completely: - for example, if we can't connect to a database using ADO.NET. - - Rod Johnson - Griffin Caprio (.NET) - $Id: DataAccessResourceFailureException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown when we couldn't cleanup after a data access operation, - but the actual operation went OK. - - -

- For example, this exception or a subclass might be thrown if an ADO.NET - connection couldn't be closed after it had been used successfully. -

-

- Note that data access code might perform resource cleanup in a - finally block and therefore log cleanup failure rather than rethrow it, - to keep the original data access exception, if any. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: CleanupFailureDataAccessException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown on failure to complete a transaction in serialized mode due to - update conflicts. - - -

- This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: CannotSerializeTransactionException.cs,v 1.6 2008/04/08 20:26:43 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Internal class that manages resources and transaction synchronizations per thread. - - - Supports one resource per key without overwriting, i.e. a resource needs to - be removed before a new one can be set for the same key. - Supports a list of transaction synchronizations if synchronization is active. -

- Resource management code should check for thread-bound resources via GetResource(). - It is normally not supposed - to bind resources to threads, as this is the responsiblity of transaction managers. - A further option is to lazily bind on first use if transaction synchronization - is active, for performing transactions that span an arbitrary number of resources. -

-

- Transaction synchronization must be activated and deactivated by a transaction - manager via - InitSynchronization - and - ClearSynchronization. - This is automatically supported by - . -

-

- Resource management code should only register synchronizations when this - manager is active, and perform resource cleanup immediately else. - If transaction synchronization isn't active, there is either no current - transaction, or the transaction manager doesn't support synchronizations. -

- Note that this class uses following naming convention for the - named 'data slots' for storage of thread local data, 'Spring.Transaction:Name' - where Name is either -
- Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: TransactionSynchronizationManager.cs,v 1.19 2008/02/17 13:17:13 markpollack Exp $ -
- - - Check if there is a resource for the given key bound to the current thread. - - key to check - if there is a value bound to the current thread - - - - Retrieve a resource for the given key that is bound to the current thread. - - key to check - a value bound to the current thread, or null if none. - - - - Bind the given resource for teh given key to the current thread - - key to bind the value to - value to bind - - - - Unbind a resource for the given key from the current thread - - key to check - the previously bound value - if there is no value bound to the thread - - - - Activate transaction synchronization for the current thread. - - - Called by transaction manager at the beginning of a transaction. - - - If synchronization is already active. - - - - - Deactivate transaction synchronization for the current thread. - - - Called by transaction manager on transaction cleanup. - - - If synchronization is not active. - - - - - Clears the entire transaction synchronization state for the current thread, registered - synchronizations as well as the various transaction characteristics. - - - - - Register a new transaction synchronization for the current thread. - - - Typically called by resource management code. - - - If synchronization is not active. - - - - - Return all resources that are bound to the current thread. - - Main for debugging purposes. Resource manager should always - invoke HasResource for a specific resource key that they are interested in. - - IDictionary with resource keys and resource objects or empty - dictionary if none is bound. - - - - Return an unmodifiable list of all registered synchronizations - for the current thread. - - - A list of - instances. - - - If synchronization is not active. - - - - - Return if transaction synchronization is active for the current thread. - - - Can be called before - InitSynchronization - to avoid unnecessary instance creation. - - - - - Gets or sets a value indicating whether the - current transaction is read only. - - - Called by transaction manager on transaction begin and on cleanup. - Return whether the current transaction is marked as read-only. - To be called by resource management code when preparing a newly - created resource (for example, a Hibernate Session). -

Note that transaction synchronizations receive the read-only flag - as argument for the beforeCommit callback, to be able - to suppress change detection on commit. The present method is meant - to be used for earlier read-only checks, for example to set the - flush mode of a Hibernate Session to FlushMode.Never upfront. -

-
- - true if current transaction read only; otherwise, false. - -
- - - Gets or sets the name of the current transaction, if any. - - Called by the transaction manager on transaction begin and on cleanup. - To be called by resource management code for optimizations per use case, for - example to optimize fetch strategies for specific named transactions. - The name of the current transactio or null if none set. - - - - Gets or sets a value indicating whether there currently is an actual transaction - active. - - This indicates wheter the current thread is associated with an actual - transaction rather than just with active transaction synchronization. - Called by the transaction manager on transaction begin and on cleanup. - To be called by resource management code that wants to discriminate between - active transaction synchronization (with or without backing resource transaction; - also on PROPAGATION_SUPPORTS) and an actual transaction being active; on - PROPAGATION_REQUIRES, PROPAGATION_REQUIRES_NEW, etC) - - true if [actual transaction active]; otherwise, false. - - - - - Gets or sets the current transaction isolation level, if any. - - Called by the transaction manager on transaction begin and on cleanup. - The current transaction isolation level. If no current transaction is - active, retrun IsolationLevel.Unspecified - - - - Type converter for - objects. - - - Takes s of the form -

PROPAGATION_NAME,ISOLATION_NAME,readOnly,timeout_NNNN,+Exception1,-Exception2

-

where only propagation code is required. For example:

-

PROPAGATION_MANDATORY,ISOLATION_DEFAULT

-

- The tokens can be in any order. Propagation and isolation codes - must use the names of the values in the - enumeration. Timeout values are in seconds. If no timeout is specified, the transaction - manager will apply a default timeout specific to the particular transaction manager. -

-

- A "+" before an exception name substring indicates that transactions should commit even - if this exception is thrown; a "-" that they should roll back. -

-
- Mark Pollack - $Id: TransactionAttributeConverter.cs,v 1.1 2007/12/29 00:28:53 markpollack Exp $ -
- - - Returns whether this converter can convert an object of the given type to an ITransactionAttribute, using the specified context. - - An that provides a format context. - A that represents the type you want to convert from. - - true if this converter can perform the conversion; otherwise, false. - - - - - Converts from string to ITransactionAttribute - - The context. - The culture. - The string value to convert - An ITransactionAttribute instance - - - - Uses and System.Transactions.Transaction.Current to provide - necessary state and operations to TxScopeTransactionManager. - - Mark Pollack (.NET) - $Id: DefaultTransactionScopeAdapter.cs,v 1.1 2007/11/30 18:38:47 markpollack Exp $ - - - - Provides the necessary transactional state and operations for TxScopeTransactionManager to - work with TransactionScope and Transaction.Current. - - Introduced for purposes of unit testing. - Mark Pollack (.NET) - $Id: ITransactionScopeAdapter.cs,v 1.1 2007/11/30 18:38:47 markpollack Exp $ - - - - Creates the transaction scope. - - The tx scope option. - The tx options. - The interop option. - - - - Call Complete() on the TransactionScope object created by this instance. - - - - - Call Disponse() on the TransactionScope object created by this instance. - - - - - Gets a value indicating whether there is a new transaction or an existing transaction. - - - true if this instance is existing transaction; otherwise, false. - - - - - Gets a value indicating whether rollback only has been called (i.e. Rollback() on the - Transaction object) and therefore voting that the transaction will be aborted. - - true if rollback only; otherwise, false. - - - - Call Complete() on the TransactionScope object created by this instance. - - - - - Call Disponse() on the TransactionScope object created by this instance. - - - - - Creates the transaction scope. - - The tx scope option. - The tx options. - The interop option. - - - - Gets a value indicating whether there is a new transaction or an existing transaction. - - - true if this instance is existing transaction; otherwise, false. - - - - - Gets a value indicating whether rollback only has been called (i.e. Rollback() on the - Transaction object) and therefore voting that the transaction will be aborted. - - true if rollback only; otherwise, false. - - - - Callback interface to process all result sets and rows in - an AdoTemplate query method. - - Implementations of this interface perform the work - of extracting results but don't need worry about managing - ADO.NET resources, such as closing the reader or transaction management. -

- This interface is mainly used within the ADO.NET - framework. An IResultSetExtractor is usually a simpler choice - for result set (DataReader) processing, in particular a - RowMapperResultSetExtractor in combination with a IRowMapper. -

- Note: in contracts to a IRowCallbackHandler, a ResultSetExtractor - is usually stateless and thus reusable, as long as it doesn't access - stateful resources or keep result state within the object. - -
- -
- - - Implementations must implement this method to process all - result set and rows in the IDataReader. - - The IDataReader to extract data from. - Implementations should not close this: it will be closed - by the AdoTemplate. - An arbitrary result object or null if none. The - extractor will typically be stateful in the latter case. - - - - Custom data reader implementations often delegate to an underlying - instance. This interface captures that relationship for reuse in - the framework. - - Implementations will typically add behavior to standard IDataReader methods, - for example, by providing default values for DbNull values. - See as an example. - - Mark Pollack (.NET) - $Id: IDataReaderWrapper.cs,v 1.2 2007/10/30 15:24:44 markpollack Exp $ - - - - The underlying reader implementation to delegate to for accessing data - from a returned result sets. - - The wrapped reader. - - - - Convenient super class for ADO.NET data access objects using generics. - - - Requires a IDBProvider to be set, providing a - AdoTemplate based on it to subclasses. - This base class is mainly intended for AdoTemplate usage. - - - - - Generic base class for DAOs, defining template methods for DAO initialization. - - - Extended by Spring's specific DAO support classes, such as: - AdoDaoSupport, HibernateDaoSupport, etc. - - Mark Pollack (.NET) - $Id: DaoSupport.cs,v 1.3 2006/11/13 07:04:45 markpollack Exp $ - - - - The shared instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Abstract subclasses must override this to check their configuration. - - -

Implementors should be marked as sealed, to make it clear that - concrete subclasses are not supposed to override this template method themselves. -

-
-
- - - Concrete subclasses can override this for custom initialization behavior. - - - Gets called after population of this instance's object properties. - Exception thrown if InitDao fails will be rethrown as - a ObjectInitializationException. - - - - - Create a AdoTemplate for a given DbProvider - Only invoked if populating the DAO with a DbProvider reference. - - - Can be overriden in subclasses to provide AdoTemplate instances - with a different configuration, or a cusotm AdoTemplate subclass. - - The DbProvider to create a AdoTemplate for - - - - Convenience method to create a parameters builder. - - Virtual for sublcasses to override with custom - implementation. - A new DbParameterBuilder - - - - The DbProvider instance used by this DAO - - - - - Set the AdoTemplate for this DAO explicity, as - an alternative to specifying a IDbProvider - - - - - IDbProvider implementation that delegates all calls to a given target - IDbProvider - - Mark Pollack - $Id: DelegatingDbProvider.cs,v 1.1 2008/01/29 22:19:20 markpollack Exp $ - - - - Factory interface to create provider specific ADO.NET objects. - - - - - Returns a new command object for executing SQL statments/Stored Procedures - against the database. - - An new - - - - Returns a new instance of the providers CommandBuilder class. - - In .NET 1.1 there was no common base class or interface - for command builders, hence the return signature is object to - be portable (but more loosely typed) across .NET 1.1/2.0 - A new Command Builder - - - - Returns a new connection object to communicate with the database. - - A new - - - - Returns a new adapter objects for use with offline DataSets. - - A new - - - - Returns a new parameter object for binding values to parameter - placeholders in SQL statements or Stored Procedure variables. - - A new - - - - Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText. - - In most cases this adds the parameter prefix to the name passed into this method. - The unformatted name of the parameter. - The parameter name formatted foran IDbCommand.CommandText. - - - - Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be - part of a IDataParameterCollection. - - The unformatted name of the parameter. - The parameter name formatted for an IDataParameter - - - - Extracts the provider specific error code as a string. - - The data access exception. - The provider specific error code - - - - Determines whether the provided exception is in fact related - to database access. This can be provider dependent in .NET 1.1 since - there isn't a common base class for ADO.NET exceptions. - - The exception thrown when performing data access - operations. - - true if is a valid data access exception for the specified - exception; otherwise, false. - - - - - Return metadata information about the database provider - - - - - Connection string used to create connections. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The target db provider. - - - - Returns a new command object for executing SQL statments/Stored Procedures - against the database. - - An new - - - - Returns a new instance of the providers CommandBuilder class. - - In .NET 1.1 there was no common base class or interface - for command builders, hence the return signature is object to - be portable (but more loosely typed) across .NET 1.1/2.0 - A new Command Builder - - - - Returns a new connection object to communicate with the database. - - A new - - - - Returns a new adapter objects for use with offline DataSets. - - A new - - - - Returns a new parameter object for binding values to parameter - placeholders in SQL statements or Stored Procedure variables. - - A new - - - - Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText. - - In most cases this adds the parameter prefix to the name passed into this method. - The unformatted name of the parameter. - The parameter name formatted foran IDbCommand.CommandText. - - - - Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be - part of a IDataParameterCollection. - - The unformatted name of the parameter. - The parameter name formatted for an IDataParameter - - - - Extracts the provider specific error code as a string. - - The data access exception. - The provider specific error code - - - - Determines whether the provided exception is in fact related - to database access. This can be provider dependent in .NET 1.1 since - there isn't a common base class for ADO.NET exceptions. - - The exception thrown when performing data access - operations. - - true if is a valid data access exception for the specified - exception; otherwise, false. - - - - - Invoked by an - after it has injected all of an object's dependencies. - - -

- This method allows the object instance to perform the kind of - initialization only possible when all of it's dependencies have - been injected (set), and to throw an appropriate exception in the - event of misconfiguration. -

-

- Please do consult the class level documentation for the - interface for a - description of exactly when this method is invoked. In - particular, it is worth noting that the - - and - callbacks will have been invoked prior to this method being - called. -

-
- - In the event of misconfiguration (such as the failure to set a - required property) or if initialization fails. - -
- - - Gets or sets the target IDbProvider that this IDbProvider should delegate to - - The target db provider. - - - - Return metadata information about the database provider - - - - - Connection string used to create connections. - - - - - Exception thrown when SQL specified is invalid. - - Mark Pollack (.NET) - $Id: BadSqlGrammarException.cs,v 1.3 2006/11/29 07:18:45 markpollack Exp $ - - - - SQL that led to the problem - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - A message about the exception. - - - - Initializes a new instance of the class. - - A message about the exception. - The inner exception. - - - - Initializes a new instance of the class. - - name of the current task. - The offending SQL statment - The root cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - When overridden in a derived class, sets the - with information about the exception. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is a null reference ( in Visual Basic). - - - - Exception thrown on an optimistic locking violation. - - -

- This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: OptimisticLockingFailureException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Enumeration of status values when synchronizing transactions. - - Griffin Caprio - $Id: TransactionSynchronizationStatus.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Completion status in case of proper commit. - - - - - Completion status in case of proper rollback. - - - - - Completion status in case of heuristic mixed completion or system error. - - - - - Adapter for the - interface. - - - Contains empty implementations of all interface methods, for easy overriding of - single methods. - - Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: TransactionSynchronizationAdapter.cs,v 1.7 2006/12/06 00:02:25 markpollack Exp $ - - - - Interface for transaction synchronization callbacks. - - - Supported by . - - Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: ITransactionSynchronization.cs,v 1.7 2006/11/24 05:57:46 markpollack Exp $ - - - - Suspend this synchronization. - - -

- Supposed to unbind resources from - - if managing any. -

-
-
- - - Resume this synchronization. - - -

- Supposed to rebind resources from - - if managing any. -

-
-
- - - Invoked before transaction commit (before - ) - Can e.g. flush transactional O/R Mapping sessions to the database - - - - This callback does not mean that the transaction will actually be - commited. A rollback decision can still occur after this method - has been called. This callback is rather meant to perform work - that's only relevant if a commit still has a chance - to happen, such as flushing SQL statements to the database. - - - Note that exceptions will get propagated to the commit caller and cause a - rollback of the transaction. - - (note: do not throw TransactionException subclasses here!) - - - - If the transaction is defined as a read-only transaction. - - - - - Invoked after transaction commit. - - Can e.g. commit further operations that are supposed to follow on - a successful commit of the main transaction. - Throws exception in case of errors; will be propagated to the caller. - Note: To not throw TransactionExeption sbuclasses here! - - - - - - Invoked before transaction commit/rollback (after - , - even if - - threw an exception). - - -

- Can e.g. perform resource cleanup. -

-

- Note that exceptions will get propagated to the commit caller - and cause a rollback of the transaction. -

-
-
- - - Invoked after transaction commit/rollback. - - - Status according to - - - Can e.g. perform resource cleanup, in this case after transaction completion. -

- Note that exceptions will get propagated to the commit or rollback - caller, although they will not influence the outcome of the transaction. -

-
-
- - - Suspend this synchronization. - - -

- Supposed to unbind resources from - - if managing any. -

-
-
- - - Resume this synchronization. - - -

- Supposed to unbind resources from - - if managing any. -

-
-
- - - Invoked before transaction commit (before - ) - - - If the transaction is defined as a read-only transaction. - - -

- Can flush transactional sessions to the database. -

-

- Note that exceptions will get propagated to the commit caller and - cause a rollback of the transaction. -

-
-
- - - Invoked after transaction commit. - - Can e.g. commit further operations that are supposed to follow on - a successful commit of the main transaction. - Throws exception in case of errors; will be propagated to the caller. - Note: To not throw TransactionExeption sbuclasses here! - - - - - Invoked before transaction commit/rollback (after - , - even if - - threw an exception). - - -

- Can e.g. perform resource cleanup. -

-

- Note that exceptions will get propagated to the commit caller - and cause a rollback of the transaction. -

-
-
- - - Invoked after transaction commit/rollback. - - - Status according to - - - Can e.g. perform resource cleanup, in this case after transaction completion. -

- Note that exceptions will get propagated to the commit or rollback - caller, although they will not influence the outcome of the transaction. -

-
-
- - - Compares the current instance with another object of the same type. - - - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance is less than obj. Zero This instance is equal to obj. Greater than zero This instance is greater than obj. - - - An object to compare with this instance. - obj is not the same type as this instance. 2 - - - - Exception that gets thrown when an invalid isolation level is specified, - i.e. an isolation level that the transaction manager implementation - doesn't support. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: InvalidIsolationLevelException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Superclass for exceptions caused by inappropriate usage of - a Spring.NET transaction API. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: TransactionUsageException.cs,v 1.6 2006/05/18 21:37:51 markpollack Exp $ - - - - Base class for all transaction exceptions. - - Rod Johnson - Griffin Caprio (.NET) - $Id: TransactionException.cs,v 1.7 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the TransactionException class. - - - - - Creates a new instance of the TransactionException class, with the specified message. - - - A message about the exception. - - - - - Creates a new instance of the TransactionException class with the specified message - and root cause. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the TransactionException class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Type converter for - objects. - - - Takes s of the form -

PROPAGATION_NAME,ISOLATION_NAME,readOnly,timeout_NNNN,+Exception1,-Exception2

-

where only propagation code is required. For example:

-

PROPAGATION_MANDATORY,ISOLATION_DEFAULT

-

- The tokens can be in any order. Propagation and isolation codes - must use the names of the values in the - enumeration. Timeout values are in seconds. If no timeout is specified, the transaction - manager will apply a default timeout specific to the particular transaction manager. -

-

- A "+" before an exception name substring indicates that transactions should commit even - if this exception is thrown; a "-" that they should roll back. -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: TransactionAttributeEditor.cs,v 1.7 2007/12/07 07:30:48 markpollack Exp $ -
- - - Parses the input properties string into a valid - instance - - - The string defining the transactional properties. - - - - - Gets the - from this editor. - - - - - Summary description for DbProviderUtils. - - - - - Dispose of the given Connection, created via the given IDbProvider, - if it is not managed externally (that is, not bound to the thread). - - The connection to close if necessary. If - this is null the call will be ignored. - The IDbProvider the connection came from - - - - Get a ADO.NET Connection/Transaction Pair for the given IDbProvider. - Changes any exception into the Spring hierarchy of generic data access - exceptions, simplifying calling code and making any exception that is - thrown more meaningful. - - - Is aware of a corresponding Connection/Transaction bound to the current thread, for example - when using AdoPlatformTransactionManager. Will bind a IDbConnection to the thread - if transaction synchronization is active - - The provider. - A Connection/Transaction pair. - - - - Get a ADO.NET Connection/Transaction Pair for the given IDbProvider. - Same as but throwing original provider - exception. - - - Is aware of a corresponding Connection/Transaction bound to the current thread, for example - when using AdoPlatformTransactionManager. Will bind a IDbConnection to the thread - if transaction synchronization is active - - The provider. - - - - - Do the connection mgmt. - - - - - - - Applies the current transaction timeout, if any, to the given ADO.NET IDbCommand object. - - The command. - The db provider. - - - - Applies the specified timeout - overridden by the current transaction timeout, if any, to to the - given ADO.NET IDb command object. - - The command. - The db provider the command was obtained from. - The timeout to apply (or 0 for no timeout outside of a transaction. - - - - Place together the mapping logic to a plain .NET object - for one result set within the same class. - - Mark Pollack (.NET) - $Id: AdoQuery.cs,v 1.7 2007/07/25 08:25:20 markpollack Exp $ - - - - A "AdoOperation" is a thread-safe, reusable object representing - an ADO Query, "NonQuery" (Create, Update, Delete), stored procedure - or DataSet manipualtions. - - - Subclasses should set Command Text and add parameters before invoking - Compile(). The order in which parameters are added is generally - significant when using providers or functionality that do not use - named parameters. - - - Mark Pollack (.NET) - $Id: AdoOperation.cs,v 1.14 2007/12/07 08:09:52 markpollack Exp $ - - - - Abstract base class providing common functionality for generic and non - generic implementations of "AdoOperation" subclasses. - - Mark Pollack (.NET) - $Id: AbstractAdoOperation.cs,v 1.1 2007/07/24 21:01:11 markpollack Exp $ - - - - Has this operation been compiled? Compilation means at - least checking that a IDbProvider and sql have been provided, - but subclasses may also implement their own custom validation. - - - - - Object enabling us to create IDbCommands - efficiently, based on this class's declared parameters. - - - - - Ensures compilation if used in an IApplicationContext - - - - - Compiles this operation. Ignores subsequent attempts to compile. - - - - - Check whether this operation has been compiled already; - lazily compile it if not already compiled. - - Automatically called by ValidateParameters and ValidateNamedParameters - - - - Validates the named parameters passed to an AdoTemplate ExecuteXXX method based on - declared parameters. - - - Subclasses should invoke this method very every ExecuteXXX method. - - The parameter dictionary supplied. May by null. - - - - Subclasses must implement to perform their own compilation. - Invoked after this class's compilation is complete. - Subclasses can assume that SQL has been supplied and that - a IDbProvider has been supplied. - - - - - Hook method that subclasses may override to react to compilation. - This implementation does nothing. - - - - - Gets or sets the type of the command. - - The type of the command. - - - - Gets or sets the db provider. - - The db provider. - - - - Gets or sets the SQL to execute - - The SQL. - - - - Gets or sets the declared parameters. - - The declared parameters. - - - - Gets a value indicating whether this is compiled. - - Compilation means that the operation is fully configured, - and ready to use. The exact meaning of compilation will vary between subclasses. - true if compiled; otherwise, false. - - - - Sets the command timeout for IDbCommands that this AdoTemplate executes. - - Default is 0, indicating to use the database provider's default. - Any timeout specified here will be overridden by the remaining - transaction timeout when executing within a transaction that has a - timeout specified at the transaction level. - - The command timeout. - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - Database provider to use. - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - Database provider to use. - SQL query or stored procedure name. - - - - Compiles this operation. Ignores subsequent attempts to compile. - - - - - Gets or sets the ADO template. - - The ADO template. - - - - Gets or sets the db provider. - - The db provider. - - - - Sets the command timeout for IDbCommands that this AdoTemplate executes. - - Default is 0, indicating to use the database provider's default. - Any timeout specified here will be overridden by the remaining - transaction timeout when executing within a transaction that has a - timeout specified at the transaction level. - - The command timeout. - - - - Initializes a new instance of the class. - - - - - Generic callback delegate for code that operates on a DbCommand. - - -

Allows you to execute any number of operations - on a single DbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in DbCommand - has been created by the framework and will have its - Connection property set and the Transaction property - set based on the transaction context.

-
- The return type from executing the - callback - The ADO.NET DbCommand object - The object returned from processing with the - provided DbCommand - Mark Pollack -
- - - Generic callback interface for code that operates on a - IDbDataAdapter. - - -

Allows you to execute any number of operations - on a IDbDataAdapter, for example to Fill a DataSet - or other more advanced operations such as the transfering - data between two different DataSets. -

-

Note that the passed in IDbDataAdapter - has been created by the framework and its SelectCommand - will be populated with values for CommandType and Text properties - along with Connection/Transaction properties based on the - calling transaction context. -

- Execute(IDataAdapterCallback dataAdapterCallback) - method. -
- Mark Pollack (.NET) - $Id: IDataAdapterCallback.cs,v 1.1 2007/12/04 06:48:21 markpollack Exp $ -
- - - Called by AdoTemplate.Execute with an preconfigured - ADO.NET IDbDataAdapter instance with its SelectCommand - property populated with CommandType and Text values - along with Connection/Transaction properties based on the - calling transaction context. - - An active IDbDataAdapter instance - The result object - - - - ADO.NET based implementation of the - interface. - - Mark Pollack (.NET) - $Id: AdoPlatformTransactionManager.cs,v 1.7 2007/11/30 18:42:11 markpollack Exp $ - - - - Return the current transaction object. - - The current transaction object. - - If transaction support is not available. - - - In the case of lookup or system errors. - - - - - Check if the given transaction object indicates an existing, - i.e. already begun, transaction. - - - Transaction object returned by - . - - True if there is an existing transaction. - - In the case of system errors. - - - - - Begin a new transaction with the given transaction definition. - - - Transaction object returned by - . - - - instance, describing - propagation behavior, isolation level, timeout etc. - - - Does not have to care about applying the propagation behavior, - as this has already been handled by this abstract manager. - - - In the case of creation or system errors. - - - - - Suspend the resources of the current transaction. - - Transaction object returned by - . - - An object that holds suspended resources (will be kept unexamined for passing it into - .) - - - Transaction synchronization will already have been suspended. - - - If suspending is not supported by the transaction manager implementation. - - - in case of system errors. - - - - - Resume the resources of the current transaction. - - Transaction object returned by - . - The object that holds suspended resources as returned by - . - - Transaction synchronization will be resumed afterwards. - - - If suspending is not supported by the transaction manager implementation. - - - In the case of system errors. - - - - - Perform an actual commit on the given transaction. - - The status representation of the transaction. - -

- An implementation does not need to check the rollback-only flag. -

-
- - In the case of system errors. - -
- - - Perform an actual rollback on the given transaction. - - The status representation of the transaction. - - An implementation does not need to check the new transaction flag. - - - In the case of system errors. - - - - - Set the given transaction rollback-only. Only called on rollback - if the current transaction takes part in an existing one. - - The status representation of the transaction. - - In the case of system errors. - - - - - Invoked by an - after it has injected all of an object's dependencies. - - - If DbProvider is null. - - - - - DbProvider transaction (state) object, representing a ConnectionHolder. - Used as a transaction object by AdoPlatformTransactionManager - - Derives from AdoTransactionObjectSupport to inherit the capability - to manage Savepoints. - - - - - - Convenient base class for ADO.NET transaction aware objects. - - - Can contain a ConnectionHolder object. - - Mark Pollack (.NET) - $Id: AdoTransactionObjectSupport.cs,v 1.7 2007/11/28 05:54:47 markpollack Exp $ - - - - The shared log instance for this class (and derived classes). - - - - - Create a new savepoint. - - - The name of the savepoint to create. - - - You can roll back to a specific savepoint - via , - and explicitly release a savepoint that you don't need anymore via - . -

- Note that most transaction managers will automatically release - savepoints at transaction completion. -

-
- - If the savepoint could not be created, - either because the backend does not support it or because the - transaction is not in an appropriate state. - - - A savepoint object, to be passed into - - or . - -
- - - Roll back to the given savepoint. - - - The savepoint will be automatically released afterwards. - - The savepoint to roll back to. - - If the rollback failed. - - - - - Explicitly release the given savepoint. - - -

- Note that most transaction managers will automatically release - savepoints at transaction completion. -

-

- Implementations should fail as silently as possible if - proper resource cleanup will still happen at transaction completion. -

-
- The savepoint to release. - - If the release failed. - -
- - - Return whether the transaction is internally marked as rollback-only. - - - True of the transaction is marked as rollback-only. - - - - Sets the rollback only. - - - - - Return whether the transaction is internally marked as rollback-only. - - - True of the transaction is marked as rollback-only. - - - - Miscellaneous utility methods for DAO implementations. - Useful with any data access technology. - - Mark Pollack (.NET) - $Id: DataAccessUtils.cs,v 1.1 2006/12/02 20:50:21 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Exception that gets thrown when an invalid timeout is specified, - for example when the transaction manager implementation doesn't support timeouts. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: InvalidTimeoutException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Invalid timeout value. - - - - - Creates a new instance of the - class - with the specified message and timeout value. - - - A message about the exception. - - The (possibly invalid) timeout value. - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Override of - to allow for private serialization. - - - The - that holds the serialized object data about the exception. - - - The - that contains contextual information about the source or destination. - - - - - Returns the invalid timeout for this exception. - - - - - ITransactionAttribute that delegates all calls to a give target attribute except for the - name, which is specified in the constructor. - - - - - Initializes a new instance of the class. - - The target attribute. - The identification. - - - - Decides if rollback is required for the supplied . - - The to evaluate. - - True if the exception causes a rollback, false otherwise. - - - - - Return a description of this transaction attribute. - - -

- The format matches the one used by the - , - to be able to feed any result into a - instance's properties. -

-
-
- - - Return the propagation behavior of type - . - - - - - - Return the isolation level of type . - - - -

- Only makes sense in combination with - and - . -

-

- Note that a transaction manager that does not support custom isolation levels - will throw an exception when given any other level than - . -

-
-
- - - Return the transaction timeout. - - - -

- Must return a number of seconds, or -1. - Only makes sense in combination with - and - . - Note that a transaction manager that does not support timeouts will - throw an exception when given any other timeout than -1. -

-
-
- - - Get whether to optimize as read-only transaction. - - - -

- This just serves as hint for the actual transaction subsystem, - it will not necessarily cause failure of write accesses. -

-

- Only makes sense in combination with - and - . -

-

- A transaction manager that cannot interpret the read-only hint - will not throw an exception when given ReadOnly=true. -

-
-
- - - Return the name of this transaction. - - - - The exposed name will be the fully - qualified type name + "." method name + assembly (by default). - - - - - Gets the enterprise services interop option. - - The enterprise services interop option. - - - - IObjectDefinitionParser implementation that allows users to easily configure all the - infrastructure objects required to enable attribute-driven transction demarcation. - - Rob Harrop - Juergen Hoeller - Mark Pollack (.NET) - - - - Object property name for injection the TransactionInterceptor - - - - - The 'proxy-target-type' attribute - - - - - The 'order' property/attribute - - - - - Central template method to actually parse the supplied XmlElement - into one or more IObjectDefinitions. - - The element that is to be parsed into one or more s - The the object encapsulating the current state of the parsing process; - provides access to a - - The primary IObjectDefinition resulting from the parsing of the supplied XmlElement - - - - - Configures the auto proxy creator. - - The parser context. - The element. - - - - Gets a value indicating whether an ID should be generated instead of read - from the passed in XmlElement. - - true if should generate id; otherwise, false. - Note that this flag is about always generating an ID; the parser - won't even check for an "id" attribute in this case. - - - - - A class that contains the properties of ServiceConfig used by ServiceDomainPlatformTransactionManager. - - This is done to enhance testability of the transaction manager since ServiceConfig does not override Equals or Hashcode - Mark Pollack (.NET) - $Id $ - - - - Implementation of the custom configuration parser for database definitions. - - Mark Pollack - $Id: DatabaseNamespaceParser.cs,v 1.3 2007/08/08 00:34:33 bbaia Exp $ - - - - Initializes a new instance of the class. - - - - - Parse the specified element and register any resulting - IObjectDefinitions with the IObjectDefinitionRegistry that is - embedded in the supplied ParserContext. - - The element to be parsed into one or more IObjectDefinitions - The object encapsulating the current state of the parsing - process. - - The primary IObjectDefinition (can be null as explained above) - - - Implementations should return the primary IObjectDefinition - that results from the parse phase if they wish to used nested - inside (for example) a <property> tag. - Implementations may return null if they will not - be used in a nested scenario. - - - - - - Gets the name of the object type for the specified element. This has already been aliased - in the static constructor. - - The element. - The name of the object type. - - - - Miscellaneous utility methods for DAO implementations. - Useful with any data access technology. - - Mark Pollack (.NET) - $Id: DataAccessUtils.cs,v 1.3 2006/12/02 07:35:23 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Generic exception thrown when the current process was - a deadlock loser, and its transaction rolled back. - - Rod Johnson - Griffin Caprio (.NET) - $Id: DeadlockLoserDataAccessException.cs,v 1.6 2008/04/08 20:26:43 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown if certain expected data could not be retrieved, e.g. - when looking up specific data via a known identifier. - - -

- This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: DataRetrievalFailureException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Callback delegate for performing actions within a transactional context. - - -

To be used with 's Execute - methods. -

-

- Typically used to gather various calls to transaction-unaware low-level - services into a higher-level method implementation with transaction - demarcation. -

-
- The status of the transaction, can be used to - trigger a rollback the current transaction by settings its - RollbackOnly property to true. - A result object or null. -
- - - Interface used by - to source transaction attributes. - - -

- Implementations know how to source transaction attributes, whether from configuration, - metadata attributes at source level, or anywhere else. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: ITransactionAttributeSource.cs,v 1.7 2006/05/18 21:37:51 markpollack Exp $ -
- - - Return the for this - method. - - The method to check. - - The target . May be null, in which case the declaring - class of the supplied must be used. - - - A or - null if the method is non-transactional. - - - - - Exception that represents a transaction failure caused by heuristics. - - Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: HeuristicCompletionException.cs,v 1.6 2006/05/18 21:37:51 markpollack Exp $ - - - - The outcome state of the transaction: have some or all resources been committed? - - - - - Returns a representation of the supplied - . - - - The value that - is to be stringified. - - A representation. - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class - with the specified - and inner exception. - - - The - for the transaction. - - - The inner exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Override of - to allow for private serialization. - - - The - that holds the serialized object data about the exception. - - - The - that contains contextual information about the source or destination. - - - - - Returns the transaction's outcome state. - - - - - Using reflection on VS.NET 2005 a generated typed dataset, apply the - connection/transaction pair associated with the current Spring based - transaction scope. - - This avoids the limitations of using System.Transaction - based transaction scope for multiple operation on typed datasets withone one - transaction. Reflection was used rather than partial classes to provide - a general solution that can be written and applied once. - Usage within a DAO method, FindAll() is shown below. Note: Convenience methods - to simplify calling syntax maybe provided in the future, it is a trade off on type - safety calling the typed adapter defined outside the anonymous method as - compared to casting inside a "DoInDbAdapter(object dbAdapter) method. - - public PrintGroupMappingDataSet FindAll() - { - - PrintGroupMappingTableAdapter adapter = new PrintGroupMappingTableAdapter(); - PrintGroupMappingDataSet printGroupMappingDataSet = new PrintGroupMappingDataSet(); - - - printGroupMappingDataSet = AdoTemplate.Execute(delegate(IDbCommand command) - { - TypedDataSetUtils.ApplyConnectionAndTx(adapter, command); - adapter.Fill(printGroupMappingDataSet.PrintGroupMapping); - return printGroupMappingDataSet; - }) - as PrintGroupMappingDataSet; - - return printGroupMappingDataSet; - } - - See http://www.code-magazine.com/articleprint.aspx?quickid=0605031 for a - more complete discussion. - - - $Id: - - - - Applies the connection and tx to the provided typed dataset. The connection and transaction - used are taken from the Spring's current transactional context. See ConnectionUtils.GetConnectionTxPair - for more information - - The typed data set adapter. - The db provider. - - - - Applies the connection and tx to the provided typed dataset. - - Generated dataset to not inherit from a common base - class so that we must pass in the generic object type. - The typed data set adapter. - The IDbCommand managed by Spring and set with - the connection/transaction of the current Spring transaction scope. - - - - Connection holder, wrapping a ADO.NET connection and transaction. - - AdoTransactionManager binds instances of this class to the - thread for a given DbProvider. - Jurgen Hoeller - Mark Pollack (.NET) - - - - Convenient base class for resource holders. - - -

- Features rollback-only support transactions. Can expire after a certain number of - seconds or milliseconds, to determine transactional timeouts. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - $Id: ResourceHolderSupport.cs,v 1.9 2007/01/30 20:12:29 markpollack Exp $ -
- - - Clear the transaction state of this resource holder. - - - - - Increase the reference count by one because the holder has been requested. - - - - - Decrease the reference count by one because the holder has been released. - - - - - Mark the resource as synchronized with a transaction. - - - - - Get or set whether the resource is synchronized with a transaction. - - true if synchronized; otherwise, false. - - - - Return the expiration deadline of this object. - - - - - Return whether this object has an associated timeout. - - - - - Return the time to live for this object in seconds. - - -

- Rounds up eagerly, e.g. '9.00001' to '10'. -

-
- - If no deadline has been set. - -
- - - Return the time to live for this object in milliseconds. - - - If no deadline has been set. - - - - - Sets the timeout for this object in milliseconds. - - Number of milliseconds until expiration. - - - - Sets the timeout for this object in seconds. - - Number of seconds until expiration. - - - - Return wheterh there are still open references to this holder - - - - - Create a new ConnectionHolder - - The connection to hold - The transaction to hold - - - - Summary description for AdoUtils. - - - - - Order value for TransactionSynchronization objects that clean up - ADO.NET Connections. - - - - - Property dispose of the command. Useful in finally or catch blocks. - - command to dispose - - - - Lifecycle callback methods that can be registered when - performing Fill operations with AdoTemplate. - - -

- The methods let you set various properties and invoke - methods on the DataSet before and after it gets filled by a DataAdapter. - For example, EnforceConstraints, BeginLoadData, and EndLoadData - can be called to optimize the loading of large DataSets with - many related tables. -

-

Vendors may expose other propriety methods on their DataSet - implementation, downcast to access this specific functionality. -

-
- Mark Pollack (.NET) - $Id: IDataSetFillLifecycleProcessor.cs,v 1.3 2006/11/29 07:18:45 markpollack Exp $ -
- - - Called before a DataAdapter is used to fill a DataSet - the the provided tablename. - - The DataSet to be filled with a DataTable - The table collection to be filled - - - - Called after a DataAdapter is used to fill a DataSet - the the provided tablename. - - The DataSet to be filled with a DataTable - The table collection to be filled - - - - TransactionManager that uses TransactionScope provided by System.Transactions. - - Mark Pollack (.NET) - $Id: TxScopeTransactionManager.cs,v 1.5 2007/12/04 19:43:16 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - This is indented only for unit testing purposes and should not be - called by production application code. - The tx adapter. - - - - No-op initialization - - - - - The transaction resource object that encapsulates the state and functionality - contained in TransactionScope and Transaction.Current via the ITransactionScopeAdapter - property. - - - - - Initializes a new instance of the class. - Will create an instance of . - - - - - Gets or sets the transaction scope adapter. - - The transaction scope adapter. - - - - Return whether the transaction is internally marked as rollback-only. - - - True of the transaction is marked as rollback-only. - - - - Create DbProviders based on configuration information in assembly resource - dbproviders.xml - - - - - TODO: Provide over-ride resource location. - TODO: Add error codes to provider. - - Mark Pollack (.NET) - $Id: DbProviderFactory.cs,v 1.12 2007/08/16 20:38:43 markpollack Exp $ - - - - The shared log instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Gets the DbProvider given an identifying name. - - - Familiar names for the .NET 2.0 provider model are supported, i.e. - System.Data.SqlClient. Refer to the documentation for a complete - listing of supported DbProviders and their names. You may - also use the method GetDbProviderClasses or obtain the - underlying IApplicationContext to progammatically obtain information - about supported providers. - - Name of the provider invariant. - - - - - Gets the application context that contains the definitions of the - various providers. - - This method should rarely, if ever, be used in - application code. It is used by the framework itself - to map other data access products abstractions for a 'DbProvider/DataSource' - onto Spring's model. - The application context. - - - - Data access exception thrown when something unintended appears to have - happened with an update, but the transaction hasn't already been rolled back. - - -

- Thrown, for example, when we wanted to update 1 row in an RDBMS but actually - updated 3. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: IncorrectUpdateSemanticsDataAccessException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - Return whether or not data was updated. - - True if data was updated (as opposed to being incorrectly - updated). If this property returns false, there's nothing to roll back. - - - - - Data access exception thrown when a result was not of the expected size, - for example when expecting a single row but getting 0 or more than 1 rows. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: IncorrectResultSizeDataAccessException.cs,v 1.6 2007/11/20 04:03:48 markpollack Exp $ - - - - Exception thrown on incorrect usage of the API, such as failing to "compile" a query - object that needed compilation before execution. - - -

- This represents a problem in our data access framework, not the underlying data access - infrastructure. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: InvalidDataAccessApiUsageException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - The expected result size. - The actual result size (or -1 if unknown). - - - - Creates a new instance of the - class. - > - - A message about the exception. - - The expected result size. - The actual result size (or -1 if unknown). - - - - Initializes a new instance of the class. - - A message about the exception - The expected result size. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Override of - to allow for private serialization. - - - The - that holds the serialized object data about the exception. - - - The - that contains contextual information about the source or destination. - - - - Return the expected result size. - - - Return the actual result size (or -1 if unknown). - - - - Enumeration describing Spring.NET's - transaction propagation settings. - - Griffin Caprio (.NET) - $Id: TransactionPropagation.cs,v 1.7 2007/05/29 20:00:33 markpollack Exp $ - - - - Support a current transaction, create a new one if none exists. - - -

- Analogous to System.EnterpriseServices.TransactionOption value of the same name. - This is typically the default setting of a transaction definition. -

-
-
- - - Support a current transaction, execute non-transactionally if none exists. - - -

- Analogous to System.EnterpriseServices.TransactionOption.Supported. -

-
-
- - - Support a current transaction, throw an exception if none exists. - - -

- No corresponding System.EnterpriseServices.TransactionOption value. -

-
-
- - - Create a new transaction, suspending the current transaction if one exists. - - -

- Analogous to System.EnterpriseServices.TransactionOption value of the same name. -

-
-
- - - Execute non-transactionally, suspending the current transaction if one exists. - - -

- Analogous to System.EnterpriseServices.TransactionOption value of the same name. -

-
-
- - - Execute non-transactionally, throw an exception if a transaction exists. - - -

- Analogous to System.EnterpriseServices.TransactionOption.Disabled. -

-
-
- - - Execute within a nested transaction if a current transaction exists, else - behave like . - - -

- There is no analogous feature in TransactionOption. -

-
-
- - - Callback interface for transactional code. - - -

To be used with 's Execute - methods. -

-

- Typically used to gather various calls to transaction-unaware low-level - services into a higher-level method implementation with transaction - demarcation. -

-
- Juergen Hoeller - Mark Pollack (.NET) - $Id: ITransactionCallback.cs,v 1.4 2007/08/01 23:32:39 markpollack Exp $ -
- - - Gets called by TransactionTemplate.Execute within a - transaction context. - - The associated transaction status. - A result object or null. - - - - Exception thrown when we can't classify a SQLException into - one of our generic data access exceptions. - - Mark Pollack (.NET) - $Id: UncategorizedAdoException.cs,v 1.4 2006/11/29 07:18:46 markpollack Exp $ - - - - Normal superclass when we can't distinguish anything more specific - than "something went wrong with the underlying resource": for example, - a SQLException from Sql Server that we can't pinpoint more precisely. - - Rod Johnson - Griffin Caprio (.NET) - $Id: UncategorizedDataAccessException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - SQL that led to the problem - - - - - The error code, if available, that was unable to be categorized. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - A message about the exception. - - - - Initializes a new instance of the class. - - A message about the exception. - The inner exception. - - - - Initializes a new instance of the class. - - name of the current task. - the underlying error code that could not be translated - The offending SQL statment - The root cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - When overridden in a derived class, sets the - with information about the exception. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is a null reference ( in Visual Basic). - - - - A data reader implementation that mapps DBNull values to sensible defaults. - - IDataRecord methods are virtual. - Mark Pollack (.NET) - $Id: NullMappingDataReader.cs,v 1.2 2006/10/08 04:56:06 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The data reader to delegate operations to. - - - - Gets the 32-bit signed integer value of the specified field. - - The index of the field to find. - - The 32-bit signed integer value of the specified field or 0 if null - - The index passed was outside the range of 0 through . - - - - Return the value of the specified field, null if value equals DBNull.Value - - The index of the field to find. - - The which will contain the field value upon return. - Returns null if value equals DBNull.Value - - - The index passed was outside the range of 0 through . - - - - - Return whether the specified field is set to null. - - The index of the field to find. - - if the specified field is set to null, otherwise - . - - The index passed was outside the range of 0 through . - - - - Gets the with the specified name. - Returns null if value equals DBNull.Value - - - - - - Gets the with the specified i. - Returns null if value equals DBNull.Value - - Return the object or null if the value equals DBNull.Value - - - - Encapsulate Command.ExecuteNonQuery operations within a reusable class. - - Mark Pollack (.NET) - The default CommandType is CommandType.Text - $Id: AdoNonQuery.cs,v 1.3 2007/07/25 08:25:20 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Generic callback interface for code that operates on a - DbCommand. - - The return type from executing the - callback - -

Allows you to execute any number of operations - on a single DbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in DbCommand - has been created by the framework and will have its - Connection property set and the Transaction property - set based on the transaction context.

-
- Mark Pollack -
- - - Called by AdoTemplate.Execute with an active ADO.NET IDbCommand. - The calling code does not need to care about closing the - command or the connection, or - about handling transactions: this will all be handled by - Spring's AdoTemplate - - An active IDbCommand instance - The result object - - - - A "AdoOperation" is a thread-safe, reusable object representing - an ADO Query, "NonQuery" (Create, Update, Delete), stored procedure - or DataSet manipualtions. - - - Subclasses should set Command Text and add parameters before invoking - Compile(). The order in which parameters are added is generally - significant when using providers or functionality that do not use - named parameters. - - - Mark Pollack (.NET) - $Id: AdoOperation.cs,v 1.2 2007/07/25 13:32:39 oakinger Exp $ - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - Database provider to use. - - - - Initializes a new instance of the class. - - A DbProvider, SQL and any parameters must be supplied - before invoking the compile method and using this object. - - Database provider to use. - SQL query or stored procedure name. - - - - Compiles this operation. Ignores subsequent attempts to compile. - - - - - Gets or sets the ADO template. - - The ADO template. - - - - Gets or sets the db provider. - - The db provider. - - - - Sets the command timeout for IDbCommands that this AdoTemplate executes. - - Default is 0, indicating to use the database provider's default. - Any timeout specified here will be overridden by the remaining - transaction timeout when executing within a transaction that has a - timeout specified at the transaction level. - - The command timeout. - - - - Fatal exception thrown when we can't connect to an RDBMS using ADO.NET - - Rod Johnson - Mark Pollack (.NET) - $Id: CannotGetAdoConnectionException.cs,v 1.1 2006/11/24 05:57:46 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - A message about the exception. - - - - Initializes a new instance of the class. - - A message about the exception. - The inner exception. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Assists in creating a collection of parameters by keeping track of all - IDbParameters its creates. After creating a number of parameters ask for the collection - with the GetParameters methods. - - This builder is stateful, you must create a new one for each collection - of parameters you would like to create. - Mark Pollack (.NET) - $Id: DbParametersBuilder.cs,v 1.2 2007/05/01 00:37:10 markpollack Exp $ - - - - A builder to create a collection of ADO.NET parameters. - - The chaining of IDbParameter methods does the - building of the parameter details while the builder class - itself keeps track of the collection. - - Mark Pollack (.NET) - $Id: IDbParametersBuilder.cs,v 1.1 2006/12/02 07:38:15 markpollack Exp $ - - - - Creates a IDbParameter object and adds it to an internal collection for - later retrieval via the GetParameters method. - - - - - - Gets all the parameters created and configured via the Create method. - - An instance of IDbParameters - - - - The shared log instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - Advisor driven by a , used to exclude - a from methods that - are non-transactional. - - -

- Because the AOP framework caches advice calculations, this is normally - faster than just letting the - run and find out itself that it has no work to do. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: TransactionAttributeSourceAdvisor.cs,v 1.11 2007/12/07 08:10:03 markpollack Exp $ -
- - - Initializes a new instance of the class. - - -

- This is an abstract class, and as such has no publicly - visible constructors. -

-
-
- - - Creates a new instance of the - class. - - - The pre-configured transaction interceptor. - - - - - Tests the input method to see if it's covered by the advisor. - - The method to match. - The to match against. - - True if the supplied is covered by the advisor. - - - - - Sets the tx attribute source. - - The transaction interceptor. - - - - Sets the transaction interceptor. - - The transaction interceptor. - - - - Callback to process each row of data in a result set to an object. - - Implementations of this interface perform the actual work - of mapping rows, but don't need worry about managing - ADO.NET resources, such as closing the reader. -

- Typically used for AdoTemplate's query methods (with RowMapperResultSetExtractor - adapters). RowMapper objects are typically stateless and thus - reusable; they are ideal choices for implementing row-mapping logic in a single - place. -

-

Alternatively, consider subclassing MappingSqlQuery from the Spring.Data.Object - namespace: Instead of working with separate AdoTemplate and RowMapper objects, - you can have executable query objects (containing row-mapping logic) there. -

-
- Mark Pollack (.NET) - $Id: IRowMapper.cs,v 1.6 2007/06/28 18:48:19 markpollack Exp $ -
- - - Implementations must implement this method to map each row of data in the - result set (DataReader). This method should not call Next() on the - DataReader; it should only extract the values of the current row. - - The IDataReader to map (pre-initialized for the current row) - The number of the current row. - The result object for the current row. - - - - Called by the AdoTemplate class to allow implementations - to set any necessary parameters on the command object. - The CommandType and CommandText will have already been supplied. - - Mark Pollack (.NET) - $Id: ICommandSetter.cs,v 1.5 2006/12/02 07:35:23 markpollack Exp $ - - - - Provides a name to a ResultSetProcessor for use with AdoOperation subclasses - such as StoredProcedure. - - Mark Pollack (.NET) - $Id: NamedResultSetProcessor.cs,v 1.2 2007/07/25 13:32:31 oakinger Exp $ - - - - Initializes a new instance of the class with a - IRowCallback instance - - The name of the associated row callback for use with output - result set mappers. - A row callback instance. - - - - Initializes a new instance of the class with a - IRowMapper instance - - The name of the associated row mapper. - A IRowMapper instance. - - - - Initializes a new instance of the class with a - IResultSetExtractor instance - - The name of the associated result set extractor. - A IResultSetExtractor instance. - - - - Exception to be thrown when a transaction has timed out. - - - - - Create a new instance - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - NamespaceParser allowing for the configuration of - declarative transaction management using either XML or using attributes. - - This namespace handler is the central piece of functionality in the - Spring transaction management facilities and offers two appraoches - to declaratively manage transactions. - - One approach uses transaction semantics defined in XML using the - <tx:advice> elements, the other uses attributes - in combination with the <tx:annotation-driven> element. - Both approached are detailed in the Spring reference manual. - - - - - Register the for the 'advice' and - 'attribute-driven' tags. - - - - - The for the <tx:advice> tag. - - Rob Harrop - Juergen Hoeller - Adrian Colyer - Mark Pollack (.NET) - $Id: TxAdviceObjectDefinitionParser.cs,v 1.2 2007/06/18 10:31:19 bbaia Exp $ - - - - A superclass for object based abstractions of RDBMS stored procedures. - - Mark Pollack (.NET) - $Id: StoredProcedure.cs,v 1.9 2007/07/25 08:25:20 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Execute the stored procedure using 'ExecuteScalar' - - Value of input parameters. - Dictionary with any named output parameters and the value of the - scalar under the key "scalar". - - - - Reusable query in which concrete subclasses must implement the - MapRow method to map each row of a single result set into an - object. - - - Simplifies MappingAdoQueryWithContext API by dropping parameters and - context. Most subclasses won't care about parameters. If you don't use - contextual information, subclass this instead of MappingSqlQueryWithContext. - - Mark Pollack (.NET) - $Id: MappingAdoQuery.cs,v 1.4 2007/07/17 04:33:44 markpollack Exp $ - - - - Reusable query in which concrete subclasses must implement the - MapRow method to map each row of a single result set into an - object. - - The MapRow method is also passed the input parameters and - a dictionary to provide the method with calling context information - (if necessary). If you do not need these additional parameters, use - the subclass MappingAdoQuery. - - Mark Pollack (.NET) - $Id: MappingAdoQueryWithContext.cs,v 1.3 2007/07/17 04:33:44 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Callback to process each row of data in an AdoOperation's Query method. - - - Implementations of this interface perform the actual work of extracting - results. In contrast to a IResultSetExtractor, a IRowCallback object is typically - stateful. It keeps the result state within the object, to be available - for later inspection. - - - - - - Implementations must implement this method to process each row of data - in the data reader. - - - This method should not advance the cursor by calling Read() - on IDataReader but only extract the current values. The - caller does not need to care about closing the reader, command, connection, or - about handling transactions: this will all be handled by - Spring's AdoTemplate - - An active IDataReader instance - The result object - - - - Convenient super class for ADO.NET data access objects. - - - Requires a IDBProvider to be set, providing a - AdoTemplate based on it to subclasses. - This base class is mainly intended for AdoTemplate usage. - - - - - Create a AdoTemplate for a given DbProvider - Only invoked if populating the DAO with a DbProvider reference. - - - Can be overriden in subclasses to provide AdoTemplate instances - with a different configuration, or a cusotm AdoTemplate subclass. - - The DbProvider to create a AdoTemplate for - - - - Convenience method to create a parameters builder. - - Virtual for sublcasses to override with custom - implementation. - A new DbParameterBuilder - - - - The DbProvider instance used by this DAO - - - - - Set the AdoTemplate for this DAO explicity, as - an alternative to specifying a IDbProvider - - - - - Implemenation of of DbProvider that uses metadata to create provider specific ADO.NET objects. - - $Id: - - - - Initializes a new instance of the class. - - The db metadata. - - - - Returns a new command object for executing SQL statments/Stored Procedures - against the database. - - An new - - - - Returns a new instance of the providers CommandBuilder class. - - A new Command Builder - In .NET 1.1 there was no common base class or interface - for command builders, hence the return signature is object to - be portable (but more loosely typed) across .NET 1.1/2.0 - - - - Returns a new connection object to communicate with the database. - - A new - - - - Returns a new adapter objects for use with offline DataSets. - - A new - - - - Returns a new parameter object for binding values to parameter - placeholders in SQL statements or Stored Procedure variables. - - A new - - - - Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText. - - The unformatted name of the parameter. - - The parameter name formatted foran IDbCommand.CommandText. - - In most cases this adds the parameter prefix to the name passed into this method. - - - - Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be - part of a IDataParameterCollection. - - The unformatted name of the parameter. - - The parameter name formatted for an IDataParameter - - - - - Extracts the provider specific error code as a string. - - The data access exception. - The provider specific error code - - - - Determines whether the provided exception is in fact related - to database access. This can be provider dependent in .NET 1.1 since - there isn't a common base class for ADO.NET exceptions. - - The exception thrown when performing data access - operations. - - true if is a valid data access exception for the specified - exception; otherwise, false. - - - - - Determines whether is data access exception in .NET 1.1 for the specified exception. - - The candidate exception. - - true if is data access exception in .NET 1.1 for the specified exception; otherwise, false. - - - - - Return metadata information about the database provider - - - - - - Connection string used to create connections. - - - - - - Exception thrown when an attempt to insert or update data - results in violation of an integrity constraint. - - -

- Note that this is not purely a relational concept; unique primary keys are - required by most database types. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: DataIntegrityViolationException.cs,v 1.5 2006/05/18 21:37:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Represents a transaction's current state. - - Griffin Caprio (.NET) - $Id: TransactionOutcomeState.cs,v 1.4 2006/05/18 21:37:51 markpollack Exp $ - - - - The transaction state is unknown. - - - - - The transaction has been committed. - - - - - The transaction has been rolled back. - - - - - The transaction is in an unknown, mixed state. - - - - - Enumeration containing the state of transaction synchronization. - - Griffin Caprio (.NET) - $Id: TransactionSynchronizationState.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Always activate transaction synchronization, even for "empty" transactions - that result from . - - with no existing backend transaction. - - - - Activate transaction synchronization only for actual transactions, - i.e. not for empty ones that result from . - - with no - existing backend transaction. - - - - Never active transaction synchronization. - - - - - Simple convenience class for TransactionCallback implementation. - Allows for implementing a DoInTransaction version without result, - i.e. without the need for a return statement. - - Mark Pollack (.NET) - $Id: TransactionCallbackWithoutResult.cs,v 1.3 2006/06/21 14:07:30 markpollack Exp $ - - - - Gets called by TransactionTemplate.execute within a transactional context - when no return value is required. - - The status. - - Does not need to care about transactions itself, although it can retrieve - and influence the status of the current transaction via the given status - object, e.g. setting rollback-only. - A RuntimeException thrown by the callback is treated as application - exception that enforces a rollback. An exception gets propagated to the - caller of the template. - - - - - Gets called by TransactionTemplate.Execute within a - transaction context. - - The associated transaction status. - a result object or null - - - - Exception thrown when a transaction can't be created using an - underlying transaction API such as COM+. - - Rod Johnson - Griffin Caprio (.NET) - $Id: CannotCreateTransactionException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Provides the necessary transactional state and operations for ServiceDomainTransactionManager to - work with ServiceDomain and ContextUtil. - - Introduced for purposes of unit testing. - Mark Pollack (.NET) - $Id $ - - - - Creates the context specified by the ServiceConfig object and pushes it onto the context stack to - become the current context. - - A ServiceConfig that contains the configuration information for the services to be used within the enclosed code. - - - - Leaves this ServiceDomain. The current context is then popped from the context stack, and the - context that was running when Enter was called becomes the current context. - - One of the TransactionStatus values - - - - Sets the consistent bit and the done bit to true in the COM+ context - - - - - Sets the consistent bit to false and the done bit to true in the COM+ context. - - - - - Gets or sets the consistent bit in the COM+ context. - - My transaction vote. - - - - Gets a value indicating whether the current context is transactional. - - - true if this instance is existing transaction; otherwise, false. - - - - - This interface creates a IDbDataAdapterCommand. - Implementations are responsible - for configuring the created command with appropriate - select and actions commands along with their parameters. - - - Generally used to to support the DataSet functionality in - the Spring.Data.Objects namespace. - - Mark Pollack (.NET) - $Id: IDbDataAdapterCreator.cs,v 1.3 2007/12/07 08:09:52 markpollack Exp $ - - - - Creates the data adapter. - - A new IDbDataAdapter instance - - - - Helper class that can efficiently create multiple IDbCommand - objects with different parameters based on a SQL statement and a single - set of parameter declarations. - - Mark Pollack (.NET) - $Id: IDbCommandCreatorFactory.cs,v 1.11 2007/08/06 20:13:39 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - One of the central callback interfaces used by the AdoTemplate class - This interface creates a IDbCommand. Implementations are responsible - for configuring the created command with command type, command text and - any necessary parameters. - - Mark Pollack (.NET) - $Id: IDbCommandCreator.cs,v 1.6 2007/08/06 20:13:39 markpollack Exp $ - - - - Creates a IDbCommand. - - The IDbProvider reference that can be used to create the command in a - provider independent manner. The provider supplied is the same as used in configuration of AdoTemplate. - - - - - Generic callback to process each row of data in a result set to an object. - - Implementations of this interface perform the actual work - of mapping rows, but don't need worry about managing - ADO.NET resources, such as closing the reader. -

- Typically used for AdoTemplate's query methods (with RowMapperResultSetExtractor - adapters). RowMapper objects are typically stateless and thus - reusable; they are ideal choices for implementing row-mapping logic in a single - place. -

-

Alternatively, consider subclassing MappingSqlQuery from the Spring.Data.Object - namespace: Instead of working with separate AdoTemplate and RowMapper objects, - you can have executable query objects (containing row-mapping logic) there. -

-
- Mark Pollack (.NET) - $Id: IRowMapper.cs,v 1.4 2007/06/28 18:48:18 markpollack Exp $ -
- - - Implementations must implement this method to map each row of data in the - result set (DataReader). This method should not call Next() on the - DataReader; it should only extract the values of the current row. - - The IDataReader to map (pre-initialized to the current row) - The number of the current row.. - The specific typed result object for the current row. - - - - Callback interface to process all results sets and rows in - an AdoTemplate query method. - - Implementations of this interface perform the work - of extracting results but don't need worry about managing - ADO.NET resources, such as closing the reader. -

- This interface is mainly used within the ADO.NET - framework. An IResultSetExtractor is usually a simpler choice - for result set (DataReader) processing, in particular a - RowMapperResultSetExtractor in combination with a IRowMapper. -

- Note: in contracts to a IRowCallbackHandler, a ResultSetExtractor - is usually stateless and thus reusable, as long as it doesn't access - stateful resources or keep result state within the object. - -
- -
- - - Implementations must implement this method to process all - result set and rows in the IDataReader. - - The IDataReader to extract data from. - Implementations should not close this: it will be closed - by the AdoTemplate. - An arbitrary result object or null if none. The - extractor will typically be stateful in the latter case. - - - - Generic callback delegate for code that operates on a IDbCommand. - - -

Allows you to execute any number of operations - on a single IDbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in DbCommand - has been created by the framework and will have its - Connection property set and the Transaction property - set based on the transaction context.

-
- The return type from executing the - callback - The ADO.NET DbCommand object - The object returned from processing with the - provided DbCommand - Mark Pollack - $Id: IDbCommandDelegate.cs,v 1.1 2007/06/27 21:41:57 markpollack Exp $ -
- - - Exception thrown when a general transaction system error is encountered, - for instance on commit or rollback. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: TransactionSystemException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Simple implementation of the - interface that allows attributes to be stored per method in a map. - - Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: MethodMapTransactionAttributeSource.cs,v 1.14 2008/05/27 19:06:57 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Add an attribute for a transactional method. - - - Method names can end or start with "*" for matching multiple methods. - - The class and method name, separated by a dot. - The attribute to be associated with the method. - - - - Add an attribute for a transactional method. - - - Method names can end or start with "*" for matching multiple methods. - - The target interface or class. - The mapped method name. - - The attribute to be associated with the method. - - - - - Add an attribute for a transactional method. - - The transactional method. - - The attribute to be associated with the method. - - - - - Does the supplied match the supplied ? - - - The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, - as well as direct equality. This behaviour can (of course) be overridden in - derived classes. - - The method name of the class. - The name in the descriptor. - True if the names match. - - - - Return the for this - method. - - The method to check. - - The target . May be null, in which case the declaring - class of the supplied must be used. - - - A or - null if the method is non-transactional. - - - - - Set a name/attribute map, consisting of "FQCN.method, AssemblyName" method names - (e.g. "MyNameSpace.MyClass.MyMethod, MyAssembly") and ITransactionAttribute - instances (or Strings to be converted to instances). - - -

- The key values of the supplied - must adhere to the following form:
- FQCN.methodName, Assembly. -

- - MyNameSpace.MyClass.MyMethod, MyAssembly - -
-
- - - Encapsulate Command ExecuteScalar operations within a reusable class. - - The default CommandType is CommandType.Text - Mark Pollack (.NET) - $Id: AdoScalar.cs,v 1.3 2007/07/25 08:25:20 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Exception thrown when a result set has been accessed in an invalid fashion. - - Mark Pollack (.NET) - $Id: InvalidResultSetAccessException.cs,v 1.2 2007/12/07 08:09:52 markpollack Exp $ - - - - SQL that led to the problem - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - A message about the exception. - - - - Initializes a new instance of the class. - - A message about the exception. - The inner exception. - - - - Initializes a new instance of the class. - - name of the current task. - The offending SQL statment - The root cause. - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - When overridden in a derived class, sets the - with information about the exception. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is a null reference ( in Visual Basic). - - - - Gets the SQL that caused the exception - - The SQL that caused the exception. - - - - An adapter for a target IDbProvider, applying the specified user credentials - to the connection string for every GetConnection call. - - - - - Sets the user credentials for current thread. The given username and password - strings will be added to the connection string for all subsequent GetConnection - requests. This will override any statically specified user credentials, that is, - set by the properties Username nad Password. - - The username part of the connection string. - The password part of the connection string. - - - - Removes the user credentials from current thread. Use statically specified - credentials afterwards. - - - - - Returns a new connection object to communicate with the database. - Determine if there are currently thread-bound credentials, using them if - available, falling back to the statically specified username and password - (i.e. values of the properties 'Username' and 'Password') otherwise. - The username and password will be concatenated on the connection string - using string in the Separator property - - A new - - - - Sets the username string that will be appended to the connection string. - - The username. - - - - Sets the password string that will be appended to the connection string. - - The password. - - - - Sets the separator used to separate elements of the connection string. Default is ';'. - - - The separator used to separate elements in the connection string. - - - - A parameter interface used by - - Mark Pollack (.NET) - $Id: IDbParameter.cs,v 1.6 2006/12/02 07:35:23 markpollack Exp $ - - - - Holds ADO.NET error codes for a particular provider. - - - Used by ErrorCodeExceptionTranslator. The embedded resource - "dbProviders.xml" in Spring.Data.Common contains default - ErrorCodes instances for various providers. - - Mark Pollack (.NET) - $Id: ErrorCodes.cs,v 1.1 2007/08/01 18:53:06 markpollack Exp $ - - - - The shared log instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - - - - .NET Attribute for describing transactional behavior of methods in a class. - - This attribute type is generally directly comparable - to Spring's class and - in fact will - directly convert the data to a - so that Spring's transaction support code does not have to know about - attributes. If no rules are relevant to the exception it will be treaded - like DefaultTransactionAttribute, (rolling back on all exceptions). - - The default property values are TransactionPropagation.Required, IsolationLevel.ReadCommitted, - DefaultTransactionDefinition.TIMEOUT_DEFAULT (can be changed, by default is the default - value of the underlying transaction subsystem) - ReadOnly = false, and Type.EmtptyTypes specified for Rollbackfor and NoRollbackFor exception - types. - - - Mark Pollack (.NET) - $Id: TransactionAttribute.cs,v 1.8 2007/12/07 07:30:48 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The transaction propagation. - - - - Initializes a new instance of the class. - - The transaction propagation. - The isolation level. - - - - Initializes a new instance of the class. - - The isolation level. - - - - Gets the transaction propagation. - - Defaults to TransactionPropagation.Required - The transaction propagation. - - - - Gets the isolation level. - - Defaults to IsolationLevel.Unspecified - The isolation level. - - - - Gets or sets the timeout. - - Defaults to the default timeout of the underlying transaction system. - The timeout. - - - - Gets or sets a value indicating whether the transaction is readonly. - - Defaults to false - true if read-only; otherwise, false. - - - - Gets or sets the zero or more exception types which - indicating which exception types must cause a transaction - rollback. - - This is the preferred way to construct a rollback rule, - matching the exception class and subclasses. - The rollback types. - - - - Gets or sets zero or more exceptions types which - indicationg which exception type must not - cause a transaction rollback. - - This is the preferred way to construct a rollback rule, - matching the exception type. - The no rollback for. - - - - Gets or sets the enterprise services interop option. - - The enterprise services interop option. - - - - Exception thrown when the existence or non-existence of a transaction - amounts to an illegal state according to the transaction propagation - behavior that applies. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: IllegalTransactionStateException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - A simple holder for the current Connection/Transaction objects - to use within a given AdoTemplate Execute operation. Used internally. - - - - - Initializes a new instance of the class. - - The connection. - The transaction. - - - - Gets the connection. - - The connection. - - - - Gets the transaction. - - The transaction. - - - - Reusable query in which concrete subclasses must implement the - abstract MapRow method to map each row of a single result set into an - object. - - The MapRow method is also passed the input parameters and - a dictionary to provide the method with calling context information - (if necessary). If you do not need these additional parameters, use - the subclass MappingAdoQuery. - - Mark Pollack (.NET) - $Id: MappingAdoQueryWithContext.cs,v 1.2 2007/07/25 13:32:39 oakinger Exp $ - - - - Place together the mapping logic to a plain .NET object - for one result set within the same class. - - Mark Pollack (.NET) - $Id: AdoQuery.cs,v 1.3 2007/07/25 13:32:39 oakinger Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The database provider. - The SQL to execute - - - - Convenient method to execute query without parameters or calling context. - - The type parameter for the returned collection - List of mapped objects - - - - Convenient method to execute query with parameters but without calling context. - - The type parameter for the returned collection - The parameters for the query. - - - - - Convenient method to execute query with parameters and access to output parameter values. - - The type parameter for the returned collection - The parameters for the query. - The returned output parameters. - - - - - Central execution method. All named parameter execution goes through this method. - - the type parameter for the returned collection - The in params. - The out params. - The calling context. - - - - - Initializes a new instance of the class. - - - - - A implementation that - creates instances of the class. - - Typically used as a convenience for retrieving shared - in a Spring XML configuration file as compared to - using explict factory method support. - - - - - Creates a new instance of the class. - - - - - Return an instance of and IDbProvider as configured by this factory - managed by this factory. - - - The same (singleton) instance of the IDbProvider managed by - this factory. - - - - If this method is being called in the context of an enclosing IoC container and - returns , the IoC container will consider this factory - object as not being fully initialized and throw a corresponding (and most - probably fatal) exception. - - - - - - Validates that the provider name is specified. - - - Invoked by an - after it has injected all of an object's dependencies. - - - In the event of not setting the ProviderName. - - - - - Validates the properties. - - - - - Return the type of - - - - - Returns true, as the the object managed by this factory is a singleton. - - - - - - Gets or sets the name of the database provider. - - The name of the database provider. - - - - Gets or sets the connection string. - - The connection string. - - - - Exception thrown if a mapped object could not be retrieved via its identifier. - Provides information about the persistent class and the identifier. - - Mark Pollack (.NET) - $Id: ObjectRetrievalFailureException.cs,v 1.1 2006/12/13 18:40:11 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Initializes a new instance of the class. - - A message about the exception. - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception from the underlying data access API - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - When overridden in a derived class, sets the - with information about the exception. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is a null reference ( in Visual Basic). - - - - Proxy factory object for simplified declarative transaction handling. - - -

- Alternative to the standard AOP - with a . -

-

- This class is intended to cover the typical case of declarative - transaction demarcation: namely, wrapping a (singleton) target object with a - transactional proxy, proxying all the interfaces that the target implements. -

-

- Internally, a - instance is used, but the user of this class does not have to care. Optionally, an - can be specified to cause conditional invocation of - the underlying . -

-

- The - - and - - properties can be set to add additional interceptors to the mix. -

-
- Juergen Hoeller - Dmitriy Kopylenko - Rod Johnson - Griffin Caprio (.NET) - $Id: TransactionProxyFactoryObject.cs,v 1.7 2007/08/01 17:56:16 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Returns the object wrapped by this proxy factory. - - The target object proxy. - - - - Method run after all the properties have been set for this object. - Responsible for actual proxy creation. - - - - - Set the target or . - - - The target. If this is an implementation of the - interface, it is used as our ; otherwise it is - wrapped in a . - - An for this object. - - - - Set the transaction manager for this factory. - - - It is this instance that will perform actual transaction management: this class is - just a way of invoking it. - - - - - Set the target object, i.e. the object to be wrapped with a transactional proxy. - - -

- The target may be any object, in which case a - will - be created. If it is a , no wrapper - is created: this enables the use of a pooling - or prototype . -

-
-
- - - Specify the set of interfaces being proxied. - - -

- If left null (the default), the AOP infrastructure works - out which interfaces need proxying by analyzing the target, - proxying all of the interfaces that the target object implements. -

-
-
- - - Set properties with method names as keys and transaction attribute - descriptors as values. - - -

- The various transaction attribute descriptors are parsed via - an instance of the - class. -

- - Method names are always applied to the target class, no matter if defined in an - interface or the class itself. - -

- Internally, a - - will be created from the given properties. -

-
- -

- An example string (method name and transaction attributes) might be: -

-

- key = "myMethod", value = "PROPAGATION_REQUIRED,readOnly". -

-
-
- - - Set the transaction attribute source which is used to find transaction - attributes. - - -

- If specifying a property value, an - appropriate - implementation will create a - - from the value. -

-
-
- - - Set a pointcut, i.e an object that can cause conditional invocation - of the - depending on method and attributes passed. - - - - Additional interceptors are always invoked. - - - - - - Set additional interceptors (or advisors) to be applied before the - implicit transaction interceptor. - - - - - Set additional interceptors (or advisors) to be applied after the - implicit transaction interceptor. - - -

- Note that this is just necessary if you rely on those interceptors in general. -

-
-
- - - Specify the to use. - - The default instance is the global AdvisorAdapterRegistry. - - - - Returns the object for this proxy factory. - - - - - Is this object a singleton? Always returns true in this implementation. - - - - - Implementation of that uses - s. - - Rod Johnson - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: AttributesTransactionAttributeSource.cs,v 1.6 2007/08/08 20:59:50 markpollack Exp $ - - - - Abstract implementation of - - that caches attributes for methods, and implements a default fallback policy. - - -

- The default fallback policy applied by this class is: - - - most specific method - - - target class attribute - - - declaring method - - - declaring class - - -

-

- Defaults to using class's transaction attribute if none is associated - with the target method. Any transaction attribute associated with the - target method completely overrides a class transaction attribute. -

-

- This implementation caches attributes by method after they are first used. - If it's ever desirable to allow dynamic changing of transaction attributes - (unlikely) caching could be made configurable. Caching is desirable because - of the cost of evaluating rollback rules. -

-
- Rod Johnson - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: AbstractFallbackTransactionAttributeSource.cs,v 1.8 2007/09/20 12:31:01 bbaia Exp $ -
- - - Canonical value held in cache to indicate no transaction attibute was found - for this method, and we don't need to look again. - - - - - Cache of s, keyed by method and target class. - - - - - Creates a new instance of the - - class. - - -

- This is an class, and as such exposes no public constructors. -

-
-
- - - Subclasses should implement this to return all attributes for this method. - May return null. - - - We need all because of the need to analyze rollback rules. - - The method to retrieve attributes for. - The transactional attributes associated with the method. - - - - Subclasses should implement this to return all attributes for this class. - May return null. - - - The to retrieve attributes for. - - - All attributes associated with the supplied . - - - - - Return the transaction attribute for this method invocation. - - - Defaults to the class's transaction attribute if no method - attribute is found - - method for the current invocation. Can't be null - target class for this invocation. May be null. - for this method, or null if the method is non-transactional - - - - Return the transaction attribute, given this set of attributes - attached to a method or class. Return null if it's not transactional. - - - Protected rather than private as subclasses may want to customize - how this is done: for example, returning a - - affected by the values of other attributes. - This implementation takes into account - s, if - the TransactionAttribute is a RuleBasedTransactionAttribute. - - - Attributes attached to a method or class. May be null, in which case a null - will be returned. - - - The configured transaction attribute, or null - if none was found. - - - - - Initializes a new instance of the class. - - - - - - implementation. - - - We need all because of the need to analyze rollback rules. - - The method to retrieve attributes for. - The transactional attributes associated with the method. - - - - - implementation. - - - The to retrieve attributes for. - - - All attributes associated with the supplied . - - - - - Implementation of IAdoExceptionTranslator that analyzes provider specific - error codes and translates into the DAO exception hierarchy. - - This class loads the obtains error codes from - the IDbProvider metadata property ErrorCodes - which defines error code mappings for various providers. - - Mark Pollack (.NET) - $Id: ErrorCodeExceptionTranslator.cs,v 1.11 2007/12/06 20:14:30 markpollack Exp $ - - - - The shared log instance for this class (and derived classes). - - - - - Initializes a new instance of the class. - - The data provider. - - - - Initializes a new instance of the class. - - The data provider. - The error code collection. - - - - Translate the given into a generic data access exception. - - A readable string describing the task being attempted. - The SQL query or update that caused the problem. May be null. - - The encountered by the ADO.NET implementation. - - - A appropriate for the supplied - . - - - - - Subclasses can override this method to attempt a custom mapping from a data access Exception - to DataAccessException. - - Readable text describing the task being attempted. - SQL query or update that caused the problem. May be null. - The error code extracted from the generic data access exception for - a particular provider. - The exception thrown from a data access operation. - - null if no custom translation was possible, otherwise a DataAccessException - resulting from custom translation. This exception should include the exception parameter - as a nested root cause. This implementation always returns null, meaning that - the translator always falls back to the default error codes. - - - - - Builds the message. - - The task. - The SQL. - The exception. - - - - - Determines whether the specified exception is valid data access exception. - - The exception. - - true if is valid data access exception; otherwise, false. - - - - - Logs the translation. - - The task. - The SQL. - The error code. - The exception. - if set to true [b]. - - - - Sets the db provider. - - The db provider. - - - - Gets the error codes for the provider - - The error codes. - - - - Gets or sets the fallback translator to use in case error code based translation - fails. - - The fallback translator. - - - - Generic callback interface for code that operates on a - IDbDataAdapter. - - -

Allows you to execute any number of operations - on a IDbDataAdapter, for example to Fill a DataSet - or other more advanced operations such as the transfering - data between two different DataSets. -

-

Note that the passed in IDbDataAdapter - has been created by the framework and its SelectCommand - will be populated with values for CommandType and Text properties - along with Connection/Transaction properties based on the - calling transaction context. -

- Execute(IDataAdapterCallback dataAdapterCallback) - method. -
- Mark Pollack (.NET) - $Id: IDataAdapterCallback.cs,v 1.3 2007/12/04 06:49:17 markpollack Exp $ -
- - - Called by AdoTemplate.Execute with an preconfigured - ADO.NET IDbDataAdapter instance with its SelectCommand - property populated with CommandType and Text values - along with Connection/Transaction properties based on the - calling transaction context. - - An active IDbDataAdapter instance - The result object - - - - Callback delegate to process each row of data in a result set to an object. - - The type of the object returned from the mapping operation. - The IDataReader to map - the number of the current row. - An abrirary object, typically derived from data - in the result set. - - - - Adapter implementation of the ResultSetExtractor interface that delegates - to a RowMapper which is supposed to create an object for each row. - Each object is added to the results List of this ResultSetExtractor. - - - Useful for the typical case of one object per row in the database table. - The number of entries in the results list will match the number of rows. -

- Note that a RowMapper object is typically stateless and thus reusable; - just the RowMapperResultSetExtractor adapter is stateful. -

-

- As an alternative consider subclassing MappingAdoQuery from the - Spring.Data.Objects namespace: Instead of working with separate - AdoTemplate and IRowMapper objects you can have executable - query objects (containing row-mapping logic) there. -

-
- Mark Pollack (.NET) - $Id: RowMapperResultSetExtractor.cs,v 1.1 2007/08/03 19:51:11 markpollack Exp $ -
- - - Initializes a new instance of the class. - - - - - Determines whether this collection contains the specified parameter name. - - Name of the parameter. - - true if contains the specified parameter name; otherwise, false. - - - - - Add an instance of . - - - - - - Add a parameter specifying the all the individual properties of a - IDbDataParameter. - - - - - - - - - - - - The newly created parameter - - - - - - - - - - - - - - - The newly created parameter - - - - Adds a value to the parameter collection - - This method can not be used with stored procedures for - providers that require named parameters. However, it is of - great convenience for other cases. - The value of the parameter. - Index of added parameter. - - - - Adds a range of vlaues to the parameter collection. - - This method can not be used with stored procedures for - providers that require named parameters. However, it is of - great convenience for other cases. - - - - - Gets the underlying standard ADO.NET for the specified parameter name. - - - - - Gets the underlying standard ADO.NET for the specified index. - - - - - Returns the underlying standard ADO.NET parameters collection. - - - - - Callback delegate for code that operates on a IDbCommand. - - the ADO.NET command object. - -

Allows you to execute any number of operations - on a single IDbCommand, for example a single ExecuteScalar - call or repeated execute calls with varying parameters. -

-

Used internally by AdoTemplate, but also useful for - application code. Note that the passed in IDbCommand - has been created by the framework and will have its - Connection property set and the Transaction property - set based on the transaction context.

-
- Mark Pollack -
- - - Exception thrown when attempting to suspend an existing transaction - but transaction suspension is not supported by the underlying backend. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: TransactionSuspensionNotSupportedException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Default implementation of the interface, - used by . - - -

- Holds all status information that - - needs internally, including a generic transaction object determined by - the concrete transaction manager implementation. -

-

- Supports delegating savepoint-related methods to a transaction object - that implements the interface. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: DefaultTransactionStatus.cs,v 1.14 2007/12/06 06:23:33 markpollack Exp $ -
- - - Representation of the status of a transaction, - consisting of a transaction object and some status flags. - - -

- Transactional code can use this to retrieve status information, - and to programmatically request a rollback (instead of throwing - an exception that causes an implicit rollback). -

-

- Derives from the interface to provide access - to savepoint management facilities. Note that savepoint management - is just available if the actual transaction manager supports it. -

-
- Juergen Hoeller - Griffin Caprio (.NET) - Mark Pollack (.NET) - $Id: ITransactionStatus.cs,v 1.11 2007/08/01 18:53:05 markpollack Exp $ -
- - - Returns true if the transaction is new, else false if participating - in an existing transaction. - - - - - Gets / sets if the transaction is rollback-only. - - -

- This instructs the transaction manager that the only possible outcome of - the transaction may be a rollback, proceeding with the normal application - workflow though (i.e. no exception). -

-

- For transactions managed by a - or - . - An alternative way to trigger a rollback is throwing an transaction exception. -

-
-
- - - Gets the current transaction object. - - - Returns the current transaction object for a given connection. -

- Used to associate with the property. -

-
-
- - - Creates a new instance of the - class. - - The underlying transaction object that can hold state for the internal - transaction implementation. - True if the transaction is new, else false if participating in an existing transaction. - True if a new transaction synchronization has been opened for the given - . - True if the transaction is read only. - if set to true, enable debug log in tx managers. - The suspended resources for the given . - - - - Determines whether there is an actual transaction active. - - - true if there is an actual transaction active; otherwise, false. - - - - - This implementation delegates to the underlying transaction object - (if it implements the interface) - to create a savepoint. - - - If the underlying transaction does not support savepoints. - - - - - This implementation delegates to the underlying transaction object - (if it implements the interface) - to rollback to the supplied . - - The savepoint to rollback to. - - - - This implementation delegates to the underlying transaction object - (if it implements the interface) - to release the supplied . - - The savepoint to release. - - - - Create a savepoint and hold it for the transaction. - - - If the underlying transaction does not support savepoints. - - - - - Roll back to the savepoint that is held for the transaction. - - - If no save point has been created. - - - - - Release the savepoint that is held for the transaction. - - - If no save point has been created. - - - - - Gets a value indicating whether the progress of this transaction is debugged. - This is used by AbstractPlatformTransactionManager as an optimization, to prevent repeated - calls to log.IsDebug. Not really intended for client code. - true if debug; otherwise, false. - - - - Returns the underlying transaction object. - - - - - Gets or sets a value indicating whether the Transaction is completed, that is commited or rolled back. - - true if completed; otherwise, false. - - - - Returns true if the underlying transaction is read only. - - - - - Flag indicating if a new transaction synchronization has been opened - for this transaction. - - - - - Returns suspended resources for this transaction. - - - - - Gets and sets the savepoint for the current transaction, if any. - - - - - Returns a flag indicating if the transaction has a savepoint. - - - - - Return the underlying transaction as a - , if possible. - - - If the underlying transaction does not support savepoints. - - - - - Return true if the underlying transaction implements the - interface. - - - - - Returns true if the transaction is new, else false if participating - in an existing transaction. - - - - - Determine the rollbackOnly flag via checking both this - - and the transaction object, provided that the latter implements the - interface. - - The property can only be set to true. - - - - Determine the rollback-only flag via checking this TransactionStatus. Will only - return true if the application set the property RollbackOnly to true on this - TransactionStatus object. - - true if [local rollback only]; otherwise, false. - - - - Editor that can convert values into - instances. - - - The transaction attribute string must be parseable by the - in this package. -

- Strings must be specified in the following syntax:
- FQCN.methodName=<transaction attribute string> (sans <>). -

- - ExampleNamespace.ExampleClass.MyMethod=PROPAGATION_MANDATORY,ISOLATION_DEFAULT - - - The specified class must be the one where the methods are defined; in the case of - implementing an interface, the interface class name must be specified. - -

- This will register all overloaded methods for a given name. Does not support explicit - registration of certain overloaded methods. Supports wildcard style mappings (in - the form "xxx*"), e.g. "Notify*" for "Notify" and "NotifyAll". -

-
- Rod Johnson - Juergen Hoeller - Griffin Caprio (.NET) - $Id: TransactionAttributeSourceEditor.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Parses the input properties into a valid - - instance - - The properties string to be parsed. - - - - Gets the - from this instance. - - - - - Internal class to parse property values. - - - - - Creates a new instance of the - class. - - The property values to be parsed. - - - - Indexer to return values based on index value. - - - - - Returns the collection of keys for properties. - - - - - implementation - that works out whether a given exception should cause transaction rollback by applying - a number of rollback rules, both positive and negative. - - - If no rules are relevant to the exception, it behaves like the - class - (rolling back on runtime exceptions).. -

- The - creates objects of this class. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: RuleBasedTransactionAttribute.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ -
- - - Creates a new instance of the - - class. - - - The desired transaction propagation behaviour. - - - The rollback rules list for this transaction attribute. - - - - - Creates a new instance of the - - class. - - - - - Will a transaction be rolled back if the supplied - is thrown during the lifecycle of a transaction to which this attribute is applied? - - The offending . - True if the exception should cause a rollback, false otherwise. - - - - Returns a representation of this instance. - - - A representation of this instance. - - - - - Adds a to this - attributes list of rollback rules. - - - The to add. - - - - - Clears the rollback rules for this attribute. - - - - - Sets the rollback rules list for this transaction attribute. - - - - - Simple implementation of the - that allows attributes to be matched by registered name. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: NameMatchTransactionAttributeSource.cs,v 1.8 2008/05/27 19:06:57 markpollack Exp $ - - - - Logger available to subclasses, static for optimal serialization - - - - - Keys are method names; values are ITransactionAttributes - - - - - Creates a new instance of the - class. - - - - - Does the supplied match the supplied ? - - - The default implementation checks for "xxx*", "*xxx" and "*xxx*" matches, - as well as direct equality. Can be overridden in subclasses. - - The method name of the class. - The name in the descriptor. - True if the names match. - - - - Add an attribute for a transactional method. - - -

- Method names can end with "*" for matching multiple methods. -

-
- The transactional method name. - - The attribute to be associated with the method. - -
- - - Parses the given properties into a name/attribute map. - - - Expects method names as keys and string attributes definitions as values, - parsable into - instances via - . - - The properties of the transaction. - - - - Return the for this - method. - - The method to check. - - The target . May be null, in which case the declaring - class of the supplied must be used. - - - A or - null if the method is non-transactional. - - - - - Set a name/attribute map, consisting of method names (e.g. "MyMethod") and - instances - (or Strings to be converted to ITransactionAttribute instances). - - - - - Parses the given properties into a name/attribute map. - - - Expects method names as keys and string attributes definitions as values, - parsable into - instances via - . - - The properties of the transaction. - - - - Very simple implementation of - which will always return the same - for all methods fed to it. - - -

- The - may be specified, but will otherwise default to PROPAGATION_REQUIRED. This may be - used in the cases where you want to use the same transaction attribute with all - methods being handled by a transaction interceptor. -

-
- Colin Sampaleanu - Griffin Caprio (.NET) - $Id: MatchAlwaysTransactionAttributeSource.cs,v 1.7 2007/12/29 00:28:53 markpollack Exp $ -
- - - Creates a new instance of the - - class. - - - - - Return the for this - method. - - The method to check. - - The target . May be null, in which case the declaring - class of the supplied must be used. - - - A or - null if the method is non-transactional. - - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - Returns a that represents the current . - - - - A that represents the current . - - 2 - - - - Allows a transaction attribute to be specified, using the - form, for example, "PROPAGATION_REQUIRED". - - - - - Callback delegate to process all result sets and row in an - AdoTemplate query method. - - - Implementations of this delegate perform the work - of extracting results but don't need worry about managing - ADO.NET resources, such as closing the reader, or transaction management. - - The IDataReader to extract data from. - Implementations should not close this: it will be closed - by the AdoTemplate. - An arbitrary result object or null if none. - - - - This is the central class in the Spring.Data namespace. - It simplifies the use of ADO.NET and helps to avoid commons errors. - - Mark Pollack (.NET) - $Id: AdoTemplate.cs,v 1.9 2007/12/28 19:37:13 markpollack Exp $ - - - - Interface that defines ADO.NET related database operations. - - Mark Pollack (.NET) - $Id: IAdoOperations.cs,v 1.24 2007/12/04 06:52:19 markpollack Exp $ - - - - Execute a ADO.NET operation on a command object using a delegate callback. - - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - The delegate called with a command object. - A result object returned by the action or null - - - - Execute a ADO.NET operation on a command object using an interface based callback. - - the callback to execute - object returned from callback - - - - Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, - using the interface based callback IDbCommandCallback. - - The command creator. - The callback to execute based on IDbCommand - A result object returned by the action or null - - - - Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - The data adapter callback. - A result object returned by the callback or null - - - - Execute a query given IDbCommand's type and text, processing a - single result set with an instance of IResultSetExtractor - - The type of command - The text of the query. - Object that will extract all rows of a result set - An arbitrary result object, as returned by the IResultSetExtractor - - If there is any problem executing the query. - - - - - Execute a query given IDbCommand's type and text with parameters set - via the command setter, processing a - single result set with an instance of IResultSetExtractor - - The command type. - The command text to execute. - The result set extractor. - The command setter. - An arbitrary result object, as returned by the IResultSetExtractor - - If there is any problem executing the query. - - - - - Execute a query given static SQL/Stored Procedure name - and process a single result set with an instance of ResultSetExtractorDelegate - - The type of command. - The command text. - Delegate that will extract all rows of a result set - An arbitrary result object, as returned by the IResultSetExtractor - - If there is any problem executing the query. - - - - - Execute a query given static SQL, mapping each row to a .NET object - iva a RowMapper - - The type of command - SQL query to execute - object that will map one object per row - the result list containing mapped objects - - - - Execute a query with the specified command text, mapping a single result - row to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters set via the - command setter, mapping a single result row to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The command setter. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The parameter collection to use in the query. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameter, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text, mapping a single result - row to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters set via the - command setter, mapping a single result row to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The command setter. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The parameter collection to use in the query. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameter, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - - - - - Fill a based on a select command that requires no parameters. - - The to populate - The type of command - SQL query to execute - The number of rows successfully added to or refreshed in the - - - - Fill a based on a select command that requires no parameters. - - The to populate - The type of command - SQL query to execute - The number of rows successfully added to or refreshed in the - - - - Fill a based on a select command that requires no parameters - that returns one or more result sets that are added as - s to the - - The to populate - The type of command - SQL query to execute - The mapping of table names for each - created - - - - - Note that output parameters are marked input/output after derivation.... - (TODO - double check....) - - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The database provider. - - - - Initializes a new instance of the class. - - The database provider. - if set to false - lazily initialize the ErrorCodeExceptionTranslator. - - - - Execute a ADO.NET operation on a command object using a delegate callback. - - The delegate called with a command object. - - A result object returned by the action or null - - This allows for implementing arbitrary data access operations - on a single command within Spring's managed ADO.NET environment. - - - - Callback to execute a IDbCommand. - - the callback to execute - object returned from callback - - - - Executes ADO.NET operations on a command object, created by the provided IDbCommandCreator, - using the interface based callback IDbCommandCallback. - - The command creator. - The callback to execute based on IDbCommand - A result object returned by the action or null - - - - Execute ADO.NET operations on a IDbDataAdapter object using an interface based callback. - - This allows for implementing abritrary data access operations - on a single DataAdapter within Spring's managed ADO.NET environment. - - The data adapter callback. - A result object returned by the callback or null - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The number of rows affected. - - - - Executes a non query returning the number of rows affected. - - The command type. - The command text to execute. - The parameter collection to map. - The number of rows affected. - - - - Executes a non query with parameters set via the - command setter, returning the number of rows affected. - - The command type. - The command text to execute. - The command setter. - The number of rows affected. - - - - Executes a non query with a command created via IDbCommandCreator and - parameters. - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example StoredProcedure/AdoScalar. - - - The callback to create a IDbCommand. - The number of rows affected. - - - - Execute the query with the specified command text. - - No parameters are used. As with - IDbCommand.ExecuteScalar, it returns the first column of the first row in the resultset - returned by the query. Extra columns or row are ignored. - The command type - The command text to execute. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameter returning a scalar result - - The command type - The command text to execute. - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters returning a scalar result - - The command type - The command text to execute. - The parameter collection to map. - The first column of the first row in the result set - - - - Execute the query with the specified command text and parameters set via the - command setter, returning a scalar result - - The command type - The command text to execute. - The command setter. - The first column of the first row in the result set - - - - Execute the query with a command created via IDbCommandCreator and - parameters - - Output parameters can be retrieved via the returned - dictionary. - - More commonly used as a lower level support method within the framework, - for example for StoredProcedure/AdoScalar. - - The callback to create a IDbCommand. - A dictionary containing output parameters, if any - - - - Execute a query given IDbCommand's type and text, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - - - - Execute a query given IDbCommand's type and text by - passing the created IDbCommand to a ICommandSetter implementation - that knows how to bind values to the IDbCommand, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The command setter. - - - - Execute a query given IDbCommand's type and text and provided parameter - information, reading a - single result set on a per-row basis with a . - - The type of command - The text of the query. - callback that will extract results - one row at a time. - - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - - - - Execute a query given static SQL/Stored Procedure name - and process a single result set with an instance of IResultSetExtractor - - The type of command. - The SQL/Stored Procedure to execute - Object that will extract all rows of a result set - An arbitrary result object, as returned by the IResultSetExtractor - - - - Execute a query given static SQL/Stored Procedure name - and process a single result set with an instance of IResultSetExtractor - - The type of command. - The SQL/Stored Procedure to execute - Delegate that will extract all rows of a result set - An arbitrary result object, as returned by the IResultSetExtractor - - - - Execute a query with the specified command text, mapping a single result - row to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters set via the - command setter, mapping a single result row to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The command setter. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The parameter collection to use in the query. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameter, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - object that will map one object per row - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text, mapping a single result - row to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters set via the - command setter, mapping a single result row to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The command setter. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameters, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The parameter collection to use in the query. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Execute a query with the specified command text and parameter, mapping a single result row - to an object via a RowMapper. - - The command type. - The command text to execute. - delegate that will map one object per row - The name of the parameter to map. - One of the database parameter type enumerations. - The length of the parameter. 0 if not applicable to parameter type. - The parameter value. - The single mapped object. - - If the query does not return exactly one row. - - - If there is any problem executing the query. - - - - - Fill a based on a select command that requires no parameters. - - The to populate - The type of command - SQL query to execute - The number of rows successfully added to or refreshed in the - - - - Creates the data reader wrapper for use in AdoTemplate callback methods. - - The reader to wrap. - The data reader used in AdoTemplate callbacks - - - - An instance of a DbProvider implementation. - - - - - Gets or sets a value indicating whether to lazily initialize the - IAdoExceptionTranslator for this accessor, on first encounter of a - exception from the data provider. Default is "true"; can be switched to - "false" for initialization on startup. - - true if to lazy initialize the IAdoExceptionTranslator; - otherwise, false. - - - - Gets or sets the exception translator. If no custom translator is provided, a default - is used. - - The exception translator. - - - - Gets or set the System.Type to use to create an instance of IDataReaderWrapper - for the purpose of having defaults values to use in case of DBNull values read - from IDataReader. - - The type of the data reader wrapper. - - - - A wrapper implementation for IDbProvider such that multiple DbProvider instances can be - selected at runtime, say based on web request criteria. - - - The name of which DbProvider to use, as provided to the IDictionary property TargetDbProviders - is "dbProviderName". Once the target dbprovider name is known, set the name via a call to - LogicalThreadContext.SetData("dbProviderName", "database1ProviderName"). The value - "database1ProviderName" must match a key in the provided TargetDbProviders dictionary. - - Mark Pollack - $Id: MultiDelegatingDbProvider.cs,v 1.4 2008/01/29 18:15:38 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The target db providers. - - - - Ensures that the there are values in the TargetDbProviders dictionary and that the - key is of the type string and value is of the type IDbProvider. - - If the above conditions are not met. - - - - Returns a new command object for executing SQL statments/Stored Procedures - against the database. - - An new - - - - Returns a new connection object to communicate with the database. - - A new - - - - Returns a new parameter object for binding values to parameter - placeholders in SQL statements or Stored Procedure variables. - - A new - - - - Returns a new adapter objects for use with offline DataSets. - - A new - - - - Returns a new instance of the providers CommandBuilder class. - - A new Command Builder - In .NET 1.1 there was no common base class or interface - for command builders, hence the return signature is object to - be portable (but more loosely typed) across .NET 1.1/2.0 - - - - Creates the name of the parameter in the format appropriate to use inside IDbCommand.CommandText. - - The unformatted name of the parameter. - - The parameter name formatted foran IDbCommand.CommandText. - - In most cases this adds the parameter prefix to the name passed into this method. - - - - Creates the name ofthe parameter in the format appropriate for an IDataParameter, i.e. to be - part of a IDataParameterCollection. - - The unformatted name of the parameter. - - The parameter name formatted for an IDataParameter - - - - - Extracts the provider specific error code as a string. - - The data access exception. - The provider specific error code - - - - Determines whether the provided exception is in fact related - to database access. This can be provider dependent in .NET 1.1 since - there isn't a common base class for ADO.NET exceptions. - - The exception thrown when performing data access - operations. - - true if is a valid data access exception for the specified - exception; otherwise, false. - - - - - Determines whether is data access exception in .NET 1.1 for the specified exception. - - The candidate exception. - - true if is data access exception in .NET 1.1 for the specified exception; otherwise, false. - - - - - Gets the target provider based on the thread local name "dbProviderName" - - The corresonding IDbProvider. - - - - Sets the target db providers. - - The target db providers. - - - - Return metadata information about the database provider - - - - - - Connection string used to create connections. - - - - - - Callback delegate to set any necessary parameters or other - properties on the command object. The CommandType and - CommandText properties will have already been supplied - - The database command object. - Mark Pollack - - - - Data access exception thrown when a result was not of the expected size, - for example when expecting a single row but getting 0 or more than 1 rows. - - Mark Pollack (.NET) - Juergen Hoeller - $Id: EmptyResultDataAccessException.cs,v 1.2 2006/05/18 21:37:50 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Creates a new instance of the - class. - - The expected size. - - - - Creates a new instance of the - class. - - A message about the exception. - The expected size. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is . - The class name is or is zero (0). - - - - Exception thrown on failure to aquire a lock during an update i.e a select for - update statement. - - -

- This exception will be thrown either by O/R mapping tools or by custom DAO - implementations. -

-
- Rod Johnson - Griffin Caprio (.NET) - $Id: CannotAcquireLockException.cs,v 1.6 2008/04/08 20:26:43 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown when an operation is attempted that relies on an existing - transaction (such as setting rollback status) and there is no existing transaction. - This represents an illegal usage of the transaction API. - - Rod Johnson - Griffin Caprio (.NET) - $Id: NoTransactionException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown when attempting to work with a nested transaction - but nested transactions are not supported by the underlying backend. - - Juergen Hoeller - Griffin Caprio (.NET) - $Id: NestedTransactionNotSupportedException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - This is a utility class to help in parsing the transaction namespace - - Mark Pollack - $Id: TxNamespaceUtils.cs,v 1.2 2007/12/07 08:10:03 markpollack Exp $ - - - - The transaction manager attribute - - - - - The source of transaction metadata - - - - - The property asociated with the transaction manager xml element - - - - - Implementation that delegates to ServiceDomain and ContextUtil for all functionality. - - Introduced for purposes of unit testing. - Mark Pollack (.NET) - $Id $ - - - - Creates the context specified by the ServiceConfig object and pushes it onto the context stack to - become the current context. - - A ServiceConfig that contains the configuration information for the services to be used within the enclosed code. - - - - Leaves this ServiceDomain. The current context is then popped from the context stack, and the - context that was running when Enter was called becomes the current context. - - One of the TransactionStatus values - - - - Sets the consistent bit and the done bit to true in the COM+ context - - - - - Sets the consistent bit to false and the done bit to true in the COM+ context. - - - - - Gets or sets the consistent bit in the COM+ context. - - My transaction vote. - - - - Gets a value indicating whether the current context is transactional. - - - true if this instance is existing transaction; otherwise, false. - - - - - Called by the AdoTemplate class to allow implementations - to set any necessary properties on the DbDataAdapter object. - - -

For example, this callback can be used to set the - AcceptChangesDuringFill property, register an event handler - for the FillErrors event, set update batch sizes if your provider - supports such functionality, set the ContinueUpdateOnError property, - or in .NET 2.0 to set the property AcceptChangesDuringUpdate. -

-

- Downcast to the appropriate subtype to access vendor specific - functionality.

-

- The DataAdapter SelectCommand will be already be - populated with values for CommandType and Text properties - along with Connection/Transaction properties based on the - calling transaction context. -

-
- Mark Pollack (.NET) - $Id: IDataAdapterSetter.cs,v 1.3 2006/11/29 07:18:45 markpollack Exp $ -
- - - A superclass for object based abstractions of RDBMS stored procedures. - - Mark Pollack (.NET) - $Id: StoredProcedure.cs,v 1.3 2007/07/25 13:32:39 oakinger Exp $ - - - - Initializes a new instance of the class. - - - - - Execute the stored procedure using 'ExecuteScalar' - - Value of input parameters. - Dictionary with any named output parameters and the value of the - scalar under the key "scalar". - - - - Reusable query in which concrete subclasses must implement the - MapRow method to map each row of a single result set into an - object. - - - Simplifies MappingSqlQueryWithContext API by dropping parameters and - context. Most subclasses won't care about parameters. If you don't use - contextual information, subclass this instead of MappingSqlQueryWithContext. - - Mark Pollack (.NET) - $Id: MappingAdoQuery.cs,v 1.2 2007/07/25 13:32:39 oakinger Exp $ - - - - Initializes a new instance of the class. - - - - - Exception thrown when the underlyingresource denied a permission to - access a specific element, such as a specific database table. - - Juergen Hoeller - Mark Pollack (.NET) - $Id: PermissionDeniedDataAccessException.cs,v 1.1 2006/06/12 10:39:19 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception (from the underlying data access API, such as ADO.NET). - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Exception thrown on an optimistic locking violation for a mapped object. - Provides information about the persistent class and the identifier. - - Mark Pollack (.NET) - $Id: ObjectOptimisticLockingFailureException.cs,v 1.1 2006/12/13 18:40:11 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - A message about the exception.. - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception from the underlying data access API - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - When overridden in a derived class, sets the - with information about the exception. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is a null reference ( in Visual Basic). - - - - Thrown when an attempt to commit a transaction resulted in an unexpected rollback. - - Rod Johnson - Griffin Caprio (.NET) - $Id: UnexpectedRollbackException.cs,v 1.5 2006/05/18 21:37:51 markpollack Exp $ - - - - Creates a new instance of the - class. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - - - Creates a new instance of the - class. - - - A message about the exception. - - - The root exception that is being wrapped. - - - - - Creates a new instance of the - class. - - - The - that holds the serialized object data about the exception being thrown. - - - The - that contains contextual information about the source or destination. - - - - - Advisor driven by a , - used to exclude a general advice from methods that - are non-transactional. - - - - To put it another way, use this advisor when you would like to associate other AOP - advice based on the pointcut specified by declarative transaction demarcation, - attibute based or otherwise. - -

- Because the AOP framework caches advice calculations, this is normally - faster than just letting the - run and find out itself that it has no work to do. -

-
- Mark Pollack (.NET) - $Id: DefaultTransactionAttributeSourceAdvisor.cs,v 1.1 2007/01/04 05:11:17 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Tests the input method to see if it's covered by the advisor. - - The method to match. - The to match against. - - True if the supplied is covered by the advisor. - - - - - Translates all exceptions to an UncategorizedAdoException. - - - This exception translator used when an exception is thrown using the - "primary" implementation of IAdoExceptionTranslator, i.e. AdoExceptionTranslator. - - Mark Pollack (.NET) - $Id: FallbackExceptionTranslator.cs,v 1.6 2007/01/01 22:22:50 markpollack Exp $ - - - - Initializes a new instance of the class. - - - - - Translate the given into a generic data access exception. - - A readable string describing the task being attempted. - The SQL query or update that caused the problem. May be null. - - The encountered by the ADO.NET implementation. - - - A appropriate for the supplied - . - - - - - Called by AdoTemplate.Execute with an preconfigured - ADO.NET IDbDataAdapter instance with its SelectCommand - property populated with CommandType and Text values - along with Connection/Transaction properties based on the - calling transaction context. - - An active IDbDataAdapter instance - The result object - - - - TODO: - - Mark Pollack (.NET) - $Id: DbParameter.cs,v 1.5 2006/12/03 08:25:46 markpollack Exp $ - - - - Initializes a new instance of the class. - - - Sets the SourceVersion to be Default and the ParameterDirection to be Input. - - - - - Adapter to enable use of a IRowCallback inside a ResultSetExtractor. - - We don't use it for navigating since this could lead to unpredictable consequences. - Mark Pollack - $Id: RowCallbackResultSetExtractor.cs,v 1.1 2007/07/25 08:27:08 markpollack Exp $ - - - - Initializes a new instance of the class. - - The row callback. - - - - Initializes a new instance of the class. - - The row callback delegate. - - - - All rows of the data reader are passed to the IRowCallback - associated with this class. - - The IDataReader to extract data from. - Implementations should not close this: it will be closed - by the AdoTemplate. - - Null is returned since IRowCallback manages its own state. - - - - - Provides a name to a ResultSetProcessor for use with AdoOperation subclasses - such as StoredProcedure. - - Mark Pollack (.NET) - $Id: NamedResultSetProcessor.cs,v 1.3 2006/11/29 07:18:46 markpollack Exp $ - - - - Initializes a new instance of the class with a - IRowCallback instance - - The name of the associated row callback for use with output - result set mappers. - A row callback instance. - - - - Initializes a new instance of the class with a - IRowMapper instance - - The name of the associated row mapper. - A IRowMapper instance. - - - - Initializes a new instance of the class with a - IResultSetExtractor instance - - The name of the associated result set extractor. - A IResultSetExtractor instance. - - - - Callback for resource cleanup at end of transaction. - - - - - Create a new instance. - - - - - - - Compares the current instance with another object of the same type. - - An object to compare with this instance. - - The value of the order property. - - - - - Suspend this synchronization. - - -

- Supposed to unbind resources from - - if managing any. -

-
-
- - - Resume this synchronization. - - -

- Supposed to unbind resources from - - if managing any. -

-
-
- - - Invoked before transaction commit/rollback (after - , - even if - - threw an exception). - - -

- Can e.g. perform resource cleanup. -

-

- Note that exceptions will get propagated to the commit caller - and cause a rollback of the transaction. -

-
-
- - - Invoked after transaction commit/rollback. - - Status according to - - Can e.g. perform resource cleanup, in this case after transaction completion. -

- Note that exceptions will get propagated to the commit or rollback - caller, although they will not influence the outcome of the transaction. -

-
-
- - - Adapter implementation of the ResultSetExtractor interface that delegates - to a RowMapper which is supposed to create an object for each row. - Each object is added to the results List of this ResultSetExtractor. - - - Useful for the typical case of one object per row in the database table. - The number of entries in the results list will match the number of rows. -

- Note that a RowMapper object is typically stateless and thus reusable; - just the RowMapperResultSetExtractor adapter is stateful. -

-

- As an alternative consider subclassing MappingAdoQuery from the - Spring.Data.Objects namespace: Instead of working with separate - AdoTemplate and IRowMapper objects you can have executable - query objects (containing row-mapping logic) there. -

-
- Mark Pollack (.NET) - $Id: RowMapperResultSetExtractor.cs,v 1.4 2007/08/03 19:51:10 markpollack Exp $ -
- - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The row mapper. - The rows expected. - - - - A more portable means to create a collection of ADO.NET - parameters. - - Mark Pollack (.NET) - $Id: DbParameters.cs,v 1.14 2007/12/06 22:34:56 markpollack Exp $ - - - - Initializes a new instance of the class. - - -
-
diff --git a/src/Spring/Spring.Services/Spring.Services.xml b/src/Spring/Spring.Services/Spring.Services.xml deleted file mode 100644 index 2aa5d087..00000000 --- a/src/Spring/Spring.Services/Spring.Services.xml +++ /dev/null @@ -1,1275 +0,0 @@ - - - - Spring.Services - - - - - Factory Object that dynamically implements service interface for web service. - - -

- This factory object should be used to obtain reference to a web service - that can be safely cast to a service interface, which allows client code to code - against interface, and not directly against the web service. -

-

- The WSDL contract needs to conform to WS-I Basic Profiles. -

-
- Bruno Baia - Aleksandar Seovic - $Id: WebServiceProxyFactory.cs,v 1.33 2008/02/24 19:10:12 bbaia Exp $ -
- - - The web service proxy default constructor. - - - - - Creates a new instance of the - class. - - - - - Creates new instance of the web service proxy. - - New instance of the web service proxy. - - - - Initializes factory object. - - - - - Validates the configuration. - - - - - Generates the web service proxy type. - - - - - Gets XML Web Services documents from a Spring resource. - - - - - Gets or sets the base type that web service proxy should inherit. - - - Default is - - - - - Gets or sets the base type that web service proxy should inherit. - - - Default is - - - - - Gets or sets the URI for an - that contains the web service description (WSDL). - - - - - Gets or sets type of the proxy class to wrap. - - - - - Gets or sets service interface that proxy should implement. - - - - - Gets or sets the instance - to use when connecting to a server that requires authentication. - - - - - Gets or sets the url of the proxy server to use for retrieving the WSDL. - - -

- This only applies when using an as uri. -

-

- The default is to use the system proxy setting. -

-
-
- - - Gets or sets the instance - to use when connecting to a proxy server that requires authentication. - - -

- This only applies when using an as uri. -

-
-
- - - Gets or sets the web service binding name to use for the proxy. - - - - - Gets or sets a list of custom attributes - that should be applied to a proxy class. - - - - - Gets or sets a dictionary of custom attributes - that should be applied to web service members. - - - Dictionary key is an expression that members can be matched against. - Value is a list of attributes that should be applied - to each member that matches expression. - - - - - Returns type of the web service proxy. - - - - - Always returns false. - - - - - Gets or sets the template object definition - that should be used to configure proxy instance. - - - - - Proxy type builder that can be used to create a proxy for - derived classes. - - - - - Creates a new instance of the - class. - - The URI that contains the Web Service meta info (WSDL). - The XML Web Service documents to use to create the proxy. - The name of the Web Service binding to use. - - - - Creates the proxy type. - - The generated proxy class. - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Implements constructors for the proxy class. - - - The to use. - - - - - Search and returns the binding for the specified name. - - - - - Search and returns the url for the specified binding. - - - - - Search and returns the operation that matches the specified method. - - - - - Search and returns the OperationBinding that matches the specified Operation. - - - - - Search and returns the type mapping between method parameters/return value - and the element parts of a literal-use SOAP message. - - - - - Creates a that should be applied to proxy type. - - - - - Creates a or a - that should be applied to proxy method. - - - - - Proxy method builder that can be used to create a proxy method - for web services operation invocation. - - - - - Creates a new instance of the method builder. - - The type builder to use. - - The implementation to use. - - - - - Generates the proxy method. - - The IL generator to use. - The method to proxy. - - The interface definition of the method, if applicable. - - - - - Proxy type builder that can be used to create a proxy for - .Net-generated proxy class that can be safely cast to a service interface. - - - - - Creates a new instance of the - class. - - - - - Gets the mapping of the interface to proxy - into the actual methods on the target type - that does not need to implement that interface. - - -

- As the proxy type does not implement the interface, - we try to find matching methods. -

-
- - The of the target object. - - The interface to implement. - - An interface mapping for the interface to proxy. - -
- - - Configurable implementation of the interface. - - Bruno Baia - $Id: ConfigurableLifetime.cs,v 1.1 2006/09/13 20:20:16 bbaia Exp $ - - - - Defines lifetime's properties of remote objects that is used by Spring. - - Bruno Baia - $Id: ILifetime.cs,v 1.1 2006/09/13 20:20:16 bbaia Exp $ - - - - Gets or sets a value indicating whether this instance has infinite lifetime. - - - true if this instance has infinite lifetime; otherwise, false. - - - - - Gets the initial lease time. - - The initial lease time. - - - - Gets the amount of time lease - should be extended for on each call to this object. - - The amount of time lease should be - extended for on each call to this object. - - - - Gets the amount of time lease manager - will for this object's sponsors to respond. - - The amount of time lease manager will for this object's - sponsors to respond. - - - - Gets or sets a value indicating whether this instance has infinite lifetime. - - - true if this instance has infinite lifetime; otherwise, false. - - - - - Gets or sets the initial lease time. - - The initial lease time. - - - - Gets or sets the amount of time lease - should be extended for on each call to this object. - - The amount of time lease should be - extended for on each call to this object. - - - - Gets or sets the amount of time lease manager - will for this object's sponsors to respond. - - The amount of time lease manager will for this object's - sponsors to respond. - - - - Factory for creating a reference to a - remote server activated object (SAO). - - - This is useful alternative to adminstrative type registration on - the client when you would like the client to have only - a reference to the interface that an SAO implements and not the - actual SAO implentation. - - Aleksandar Seovic - Mark Pollack - Bruno Baia - $Id: SaoFactoryObject.cs,v 1.7 2006/05/17 17:45:39 bbaia Exp $ - - - - Creates a new instance of the SaoFactoryObject class. - - - - - Callback method called once all factory properties have been set. - - if an error occured - - - - Return the SAO proxy. - - the SAO proxy - - - - The remote service interface. - - - - - The URI of the well known object - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - The type of object to be created. - - - - - Exports specified components as ServicedComponents. - - -

- This class will create ServicedComponent wrapper for each of the - specified components and register them with the Component Services. -

-
- Aleksandar Seovic - $Id: EnterpriseServicesExporter.cs,v 1.6 2007/05/16 10:03:24 oakinger Exp $ -
- - - Creates new enterprise services exporter. - - - - - Called by Spring container after object is configured in order to initialize it. - - - - - Creates ServicedComponent wrappers for the specified components and registers - them with COM+ Component Services. - - - - - Reads key pair from embedded resource. - - Key pair as a byte array. - - - - Applies custom attributes to generated assembly. - - Dynamic assembly to apply attributes to. - - - - Replaces roles expressed using string with appropriate SecurityRoleAttribute instance. - - - - - Parses string representation of SecurityRoleAttribute. - - Role definition string. - Configured SecurityRoleAttribute instance. - - - - Gets or sets list of components to export. - - - - - Gets or sets COM+ application name. - - - - - Gets or sets application identifier (GUID). Defaults to generated GUID if not specified. - - - - - Gets or sets application activation mode, which can be either Server or Library (default). - - - - - Gets or sets application description. - - - - - Gets or sets access control attribute. - - - - - Gets or sets application queuing attribute. - - - - - Gets or sets application roles. - - - - - Gets or sets name of the generated assembly that will contain serviced components. - - - - - Sets object factory instance. - - - - - Implementation of the custom configuration parser for remoting definitions. - - Bruno Baia - $Id: RemotingNamespaceParser.cs,v 1.3 2007/10/08 14:57:34 bbaia Exp $ - - - - Initializes a new instance of the class. - - - - - Parse the specified element and register any resulting - IObjectDefinitions with the IObjectDefinitionRegistry that is - embedded in the supplied ParserContext. - - The element to be parsed into one or more IObjectDefinitions - The object encapsulating the current state of the parsing - process. - - The primary IObjectDefinition (can be null as explained above) - - - Implementations should return the primary IObjectDefinition - that results from the parse phase if they wish to used nested - inside (for example) a <property> tag. - Implementations may return null if they will not - be used in a nested scenario. - - - - - - Parses remoting definitions. - - Validator XML element. - The name of the object definition. - The parser context. - A remoting object definition. - - - - Parses the RemotingConfigurer definition. - - The element to parse. - The name of the object definition. - The parser context. - RemotingConfigurer object definition. - - - - Parses the SaoFactoryObject definition. - - The element to parse. - The name of the object definition. - The parser context. - SaoFactoryObject object definition. - - - - Parses the CaoFactoryObject definition. - - The element to parse. - The name of the object definition. - The parser context. - CaoFactoryObject object definition. - - - - Parses the RemoteObjectFactory definition. - - The element to parse. - The name of the object definition. - The parser context. - RemoteObjectFactory object definition. - - - - Parses the SaoExporter definition. - - The element to parse. - The name of the object definition. - The parser context. - SaoExporter object definition. - - - - Parses the CaoExporter definition. - - The element to parse. - The name of the object definition. - The parser context. - CaoExporter object definition. - - - - Parses the LifeTime definition. - - - - - Gets the name of the object type for the specified element. - - The element. - The name of the object type. - - - - Convenience class to configure remoting infrastructure from the IoC container. - - Bruno Baia - $Id: RemotingConfigurer.cs,v 1.7 2007/10/08 14:57:34 bbaia Exp $ - - - - Initializes a new instance of the class. - - - - - Modify the application context's internal object factory after its - standard initialization. - - - The object factory used by the application context. - - - - - - Gets or sets the name of the remoting configuration file. - - - If filename is or not set, - current AppDomain's configuration file will be used. - - - - - Indicates whether a configuration file is used. - Default value is . - - - If , default remoting configuration will be used. - - - - - Gets or sets if security is enabled. - - - This property is only available since .NET Framework 2.0. - - - - - Return the order value of this object, - where a higher value means greater in terms of sorting. - - - - - This class extends to allow users - to define object lifecycle details by simply setting its properties. - - -

- Remoting exporters uses this class as a base proxy class - in order to support lifecycle configuration when exporting - a remote object. -

-
- Aleksandar Seovic - $Id: BaseRemoteObject.cs,v 1.1 2006/09/13 20:20:16 bbaia Exp $ -
- - - Initializes a new instance of the class. - - - - - Obtains a lifetime service object to control the lifetime policy for this instance. - - -

- This method uses property values to configure for this object. -

-

- It is very much inspired by Ingo Rammer's example in Chapter 6 of "Advanced .NET Remoting", - but is modified slightly to make it more "Spring-friendly". Basically, the main difference is that - instead of pulling lease configuration from the .NET config file, this implementation relies - on Spring DI to get appropriate values injected, which makes it much more flexible. -

-
- - An object of type used to control the - lifetime policy for this instance. This is the current lifetime service object for - this instance if one exists; otherwise, a new lifetime service object initialized to the value - of the property. - - The immediate caller does not have infrastructure permission. -
- - - Gets or sets a value indicating whether this instance has infinite lifetime. - - - if this instance has infinite lifetime; - otherwise, . - - - - - Gets or sets the initial lease time. - - The initial lease time. - - - - Gets or sets the amount of time lease should be - extended for on each call to this object. - - The amount of time lease should be - extended for on each call to this object. - - - - Gets or sets the amount of time lease manager will for this object's - sponsors to respond. - - The amount of time lease manager will for this object's - sponsors to respond. - - - - Builds a proxy type based on to wrap a target object - that is intended to be remotable. - - Bruno Baia - $Id: RemoteObjectProxyTypeBuilder.cs,v 1.3 2006/11/12 01:37:47 bbaia Exp $ - - - - Creates a new instance of the - class. - - - The lifetime properties to be applied to the target object. - - - - - Creates a remotable proxy type based on . - - The generated proxy class. - - If the is not - an instance of . - - - - - Implements constructors for the proxy class. - - - The to use. - - - - - Generate initialization code for 's lifetime properties. - - ILGenerator - - - - Interface for a CAO based object factory. - - -

- Provides a well known location for clients to retrieve - references to CAO references. -

-
- Aleksandar Seovic - Mark Pollack - Bruno Baia - $Id: ICaoRemoteFactory.cs,v 1.1 2006/09/13 20:20:16 bbaia Exp $ -
- - - Returns the CAO proxy. - - The remote object. - - - - Returns the CAO proxy using the - argument list to call the constructor. - - - The matching of arguments to call the constructor is done - by type. The alternative ways, by index and by constructor - name are not supported. - - Constructor - arguments used to create the object. - The remote object. - - - - Publishes an instance of an object under - a given url as a Server Activated Object (SAO). - - - Object can be exported either as SingleCall or Singleton. - - Aleksandar Seovic - Mark Pollack - Bruno Baia - $Id: SaoExporter.cs,v 1.18 2007/07/31 18:18:19 bbaia Exp $ - - - - Creates a new instance of the class. - - - - - Publish the object - - - - - Disconnect the remote object from the registered remoting channels. - - - - - Gets or sets the name of the target object definition. - - - - - Gets or sets the name of the remote application. - - - - - Gets or sets the name of the exported remote service. - - The name that will be used in the URI to refer to this service. - This will be of the form, tcp://host:port/ServiceName or - tcp://host:port/ApplicationName/ServiceName - - - - - - Gets or sets the list of interfaces whose methods should be exported. - - - The default value of this property is all the interfaces - implemented or inherited by the target type. - - The interfaces to export. - - - - Gets or sets the that this - object runs in. - - - - - Sets object factory to use. - - - - - Builds a proxy type based on to wrap a target object - that is intended to be remotable. - - - The wrapped target object is retrieved by name from the IoC container. - - - - - Creates a new instance of the - class. - - - The name of the target object definition. - - - The name of the application context that this object runs in. - - - The lifetime properties to be applied to the target object. - - - - - Generates the IL instructions that pushes - the target instance on which calls should be delegated to. - - The IL generator to use. - - - - Implements constructors for the proxy class. - - - The to use. - - - - - Deaclares a field that holds the target object instance. - - - The builder to use for code generation. - - - - - Factory for creating a reference to a - client activated object (CAO). - - Aleksandar Seovic - Mark Pollack - Bruno Baia - $Id: CaoFactoryObject.cs,v 1.4 2006/09/13 20:20:14 bbaia Exp $ - - - - Creates a new instance of the class. - - - - - Callback method called once all factory properties have been set. - - if an error occured - - - - Return the CAO proxy. - - the CAO proxy - - - - The remote target name to activate. - - - - - The Uri of the remote type. - - - - - Argument list used to call the CAO constructor. - - - - - Always return false. - - - - - The type of object to be created. - - - - - Registers an object type on the server - as a Client Activated Object (CAO). - - Aleksandar Seovic - Mark Pollack - Bruno Baia - $Id: CaoExporter.cs,v 1.12 2007/11/07 19:03:09 bbaia Exp $ - - - - Creates a new instance of the class. - - - - - Publish the object - - - - - Disconnect the remote object from the registered remoting channels. - - - - - Gets or sets the name of the target object definition. - - - - - Gets or sets the list of interfaces whose methods should be exported. - - - The default value of this property is all the interfaces - implemented or inherited by the target type. - - The interfaces to export. - - - - Gets or sets the that this - object runs in. - - - - - Sets object factory to use. - - - - - This class extends to allow CAOs - to be disconnect from the client. - - - - - Create a new instance of the RemoteFactory. - - - - - Returns the CAO proxy. - - The remote object. - - - - Returns the CAO proxy using the - argument list to call the constructor. - - - The matching of arguments to call the constructor is done - by type. The alternative ways, by index and by constructor - name are not supported. - - Constructor - arguments used to create the object. - The remote object. - - - - Set infinite lifetime. - - - - - Encapsulates information necessary to create ServicedComponent - wrapper around target class. - - -

- Instances of this class should be used as elements in the Components - list of the class, which will - register them with COM+ Services. -

-
- Aleksandar Seovic - $Id: ServicedComponentExporter.cs,v 1.9 2007/07/31 18:18:19 bbaia Exp $ -
- - - Creates a new instance of the - class. - - - - - Validate configuration. - - - - - Creates ServicedComponent wrapper around target class. - - Dynamic module builder to use - Object factory to get target from. - - - - Gets or sets name of the target object that should be exposed as a serviced component. - - - - - Gets or sets the list of interfaces whose methods should be exported. - - - The default value of this property is all the interfaces - implemented or inherited by the target type. - - The interfaces to export. - - - - Gets or sets a list of custom attributes - that should be applied to a proxy class. - - - - - Gets or sets a dictionary of custom attributes - that should be applied to proxy members. - - - Map key is an expression that members can be matched against. Value is a list - of attributes that should be applied to each member that matches expression. - - - - - Set the name of the object in the object factory - that created this object. - - - - - Factory for creating MarshalByRefObject wrapper around target class. - - Bruno Baia - $Id: RemoteObjectFactory.cs,v 1.8 2007/07/31 18:18:19 bbaia Exp $ - - - - Creates a new instance of the MarshalByRefObjectFactory. - - - - - Initializes factory object. - - - - - Creates new instance of the remotable target proxy. - - New instance of the remotable target proxy. - - - - Gets or sets the target object. - - - - - Gets or sets the class or subclass - that the proxy must inherit from. - - - - - Gets or sets the list of interfaces to wrap. - - - The default value of this property is all the interfaces - implemented or inherited by the target type. - - The interfaces to export. - - - - Returns type of the remotable target proxy. - - - - - Always returns false. - - - - - Factory Object that instantiates and configures ServicedComponent. - - -

- This factory object should be used to instantiate and configure - serviced components created by . -

-
- Aleksandar Seovic - $Id: ServicedComponentFactory.cs,v 1.7 2007/05/16 10:03:25 oakinger Exp $ -
- - - Creates new instance of serviced component factory. - - - - - Returns configured instance of the serviced component. - - Configured instance of the serviced component. - - - - Initializes factory object. - - - - - Creates new instance of serviced component. - - New instance of serviced component. - - - - Gets or sets component name, as registered with COM+ Services. - - - - - Gets or sets name of the remote server that COM+ component is registered with. - - - - - Returns type of serviced component. - - - - - Gets or sets whether serviced component should be treated as singleton. Default is false. - - - - - Gets or sets the template object definition - that should be used to configure proxy instance. - - -
-
diff --git a/src/Spring/Spring.Web/Spring.Web.xml b/src/Spring/Spring.Web/Spring.Web.xml deleted file mode 100644 index 9417e17b..00000000 --- a/src/Spring/Spring.Web/Spring.Web.xml +++ /dev/null @@ -1,7820 +0,0 @@ - - - - Spring.Web - - - - - This control should be used to display field-level validation errors. - - Aleksandar Seovic - Jonathan Allenby - $Id: ValidationError.cs,v 1.11 2008/03/19 12:07:14 oakinger Exp $ - - - - Provides common functionality to all validation renderer controls. - - Erich Eichinger - $Id: AbstractValidationControl.cs,v 1.1 2008/03/19 12:07:14 oakinger Exp $ - - - - Create the default - for this ValidationControl if none is configured. - - - - - Resolves the 's list of validation errors to a list - of elements containing the error messages to be rendered. - - a list containing elements - - - - Renders error messages using the specified . - - - - - - Gets or sets the provider. - - The provider. - - - - Gets or sets the validation errors renderer to use. - - - If not explicitly specified, defaults to . - - The validation errors renderer to use. - - - - Gets the MessageSource to be used for resolve error messages - - - By default, returns 's MessageSource. - - - - - Gets the , who's - shall be rendered by this control. - - - - - Create the default - for this ValidationControl if none is configured. - - - - - Provides information about a command raised from a - - Erich Eichinger - $Id: TabCommandEventArgs.cs,v 1.1 2007/07/24 13:33:27 oakinger Exp $ - - - - Initializes a new instance. - - The name of the command raised by a . - The index of the tab that raised this event. - - - - Returns the index of the tab that raised this command. - - - - - Represents ContentPlaceHolder control that can be used to define placeholders - within the master page. - - - Any content defined within this control will be treated as a default content - for the placeholder and will be rendered unless the child page overrides it - by defining matching control. - - Aleksandar Seovic - $Id: ContentPlaceholder.cs,v 1.6 2006/09/08 06:21:31 oakinger Exp $ - - - - Represents Content control that can be used to populate or override placeholders - within the master page. - - - Any content defined within this control will override default content - in the matching control - within the master page - - Aleksandar Seovic - $Id: Content.cs,v 1.6 2007/07/24 13:33:27 oakinger Exp $ - - - - An Interface for class. - - Damjan Tomic - - - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute is mandatory. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Adds a new membership user to the data source. - - - - A object populated with the information for the newly created user. - - - Whether or not the new user is approved to be validated. - The password answer for the new user - The user name for the new user. - The unique identifier from the membership data source for the user. - The password for the new user. - The password question for the new user. - The e-mail address for the new user. - A enumeration value indicating whether the user was created successfully. - - - - Processes a request to update the password question and answer for a membership user. - - - - true if the password question and answer are updated successfully; otherwise, false. - - - The new password question for the specified user. - The new password answer for the specified user. - The user to change the password question and answer for. - The password for the specified user. - - - - Gets the password for the specified user name from the data source. - - - - The password for the specified user name. - - - The user to retrieve the password for. - The password answer for the user. - - - - Processes a request to update the password for a membership user. - - - - true if the password was updated successfully; otherwise, false. - - - The new password for the specified user. - The current password for the specified user. - The user to update the password for. - - - - Resets a user's password to a new, automatically generated password. - - - - The new password for the specified user. - - - The user to reset the password for. - The password answer for the specified user. - - - - Updates information about a user in the data source. - - - A object that represents the user to update and the updated information for the user. - - - - Verifies that the specified user name and password exist in the data source. - - - - true if the specified username and password are valid; otherwise, false. - - - The name of the user to validate. - The password for the specified user. - - - - Clears a lock so that the membership user can be validated. - - - - true if the membership user was successfully unlocked; otherwise, false. - - - The membership user to clear the lock status for. - - - - Gets information from the data source for a user based on the unique identifier for the membership user. Provides an option to update the last-activity date/time stamp for the user. - - - - A object populated with the specified user's information from the data source. - - - The unique identifier for the membership user to get information for. - true to update the last-activity date/time stamp for the user; false to return user information without updating the last-activity date/time stamp for the user. - - - - Gets information from the data source for a user. Provides an option to update the last-activity date/time stamp for the user. - - - - A object populated with the specified user's information from the data source. - - - The name of the user to get information for. - true to update the last-activity date/time stamp for the user; false to return user information without updating the last-activity date/time stamp for the user. - - - - Gets the user name associated with the specified e-mail address. - - - - The user name associated with the specified e-mail address. If no match is found, return null. - - - The e-mail address to search for. - - - - Removes a user from the membership data source. - - - - true if the user was successfully deleted; otherwise, false. - - - The name of the user to delete. - true to delete data related to the user from the database; false to leave data related to the user in the database. - - - - Gets a collection of all the users in the data source in pages of data. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The size of the page of results to return. - - - - Gets the number of users currently accessing the application. - - - - The number of users currently accessing the application. - - - - - - Gets a collection of membership users where the user name contains the specified user name to match. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The user name to search for. - The size of the page of results to return. - - - - Gets a collection of membership users where the e-mail address contains the specified e-mail address to match. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The e-mail address to search for. - The size of the page of results to return. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - - Indicates whether the membership provider is configured to allow users to retrieve their passwords. - - - - true if the membership provider is configured to support password retrieval; otherwise, false. The default is false. - - - - - - Indicates whether the membership provider is configured to allow users to reset their passwords. - - - - true if the membership provider supports password reset; otherwise, false. The default is true. - - - - - - Gets a value indicating whether the membership provider is configured to require the user to answer a password question for password reset and retrieval. - - - - true if a password answer is required for password reset and retrieval; otherwise, false. The default is true. - - - - - - The name of the application using the custom membership provider. - - - - The name of the application using the custom membership provider. - - - - - - Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out. - - - - The number of invalid password or password-answer attempts allowed before the membership user is locked out. - - - - - - Gets the number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out. - - - - The number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out. - - - - - - Gets a value indicating whether the membership provider is configured to require a unique e-mail address for each user name. - - - - true if the membership provider requires a unique e-mail address; otherwise, false. The default is true. - - - - - - Gets a value indicating the format for storing passwords in the membership data store. - - - - One of the values indicating the format for storing passwords in the data store. - - - - - - Gets the minimum length required for a password. - - - - The minimum length required for a password. - - - - - - Gets the minimum number of special characters that must be present in a valid password. - - - - The minimum number of special characters that must be present in a valid password. - - - - - - Gets the regular expression used to evaluate a password. - - - - A regular expression used to evaluate a password. - - - - - - - - Erich Eichinger - $Id: ConfigurableSqlProfileProvider.cs,v 1.1 2007/07/26 14:43:56 oakinger Exp $ - - - - An Interface for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute is mandatory. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Returns the collection of settings property values for the specified application instance and settings property group. - - - - A containing the values for the specified settings property group. - - - A describing the current application use. - A containing the settings property group whose values are to be retrieved.2 - - - - Sets the values of the specified group of property settings. - - - A describing the current application usage. - A representing the group of property settings to set.2 - - - - When overridden in a derived class, deletes profile properties and information for the supplied list of profiles. - - - - The number of profiles deleted from the data source. - - - A of information about profiles that are to be deleted. - - - - When overridden in a derived class, deletes profile properties and information for profiles that match the supplied list of user names. - - - - The number of profiles deleted from the data source. - - - A string array of user names for profiles to be deleted. - - - - When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date. - - - - The number of profiles deleted from the data source. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are deleted. - A that identifies which user profiles are considered inactive. If the value of a user profile occurs on or before this date and time, the profile is considered inactive. - - - - When overridden in a derived class, returns the number of profiles in which the last activity date occurred on or before the specified date. - - - - The number of profiles in which the last activity date occurred on or before the specified date. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the of a user profile occurs on or before this date and time, the profile is considered inactive. - - - - When overridden in a derived class, retrieves user profile data for all profiles in the data source. - - - - A containing user-profile information for all profiles in the data source. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves user-profile data from the data source for profiles in which the last activity date occurred on or before the specified date. - - - - A containing user-profile information about the inactive profiles. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the of a user profile occurs on or before this date and time, the profile is considered inactive. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names. - - - - A containing user-profile information for profiles where the user name matches the supplied usernameToMatch parameter. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The user name to search for. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves profile information for profiles in which the last activity date occurred on or before the specified date and the user name matches the specified user name. - - - - A containing user profile information for inactive profiles where the user name matches the supplied usernameToMatch parameter. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the value of a user profile occurs on or before this date and time, the profile is considered inactive. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The user name to search for. - The size of the page of results to return. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - Gets or sets the name of the currently running application. - - - - A that contains the application's shortened name, which does not contain a full path or extension, for example, SimpleAppSettings. - - 2 - - - - Initializes the provider. - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - Values may be overridden by specifying them in list. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - The ConnectionString to be used - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - - - - Culture resolver that uses request headers to determine culture. If no languages - are specified in the request headers, it returns default culture specifed, and - if no default culture was specifed it returns current culture for the executing - server thread. - - - Note: This culture resolver cannot be used to change the culture - because request headers cannot be modified. In order to change the culture - when using this culture resolver user has to change language settings in - the web browser. - - Aleksandar Seovic - $Id: RequestCultureResolver.cs,v 1.4 2007/08/25 14:26:35 oakinger Exp $ - - - - Default culture resolver for web applications. Contains some common utility methods for web culture resolvers. - - Aleksandar Seovic - $Id: DefaultWebCultureResolver.cs,v 1.5 2007/08/25 14:26:35 oakinger Exp $ - - - - Returns default culture. If property is not set, - it tries to get culture from the request headers - and falls back to a current thread's culture if no headers are available. - - Default culture to use. - - - - Extracts the users favorite language from "accept-language" header of the current request. - - a language string if any or null, if no languages have been sent with the request - - - - Resolves a culture by name. - - the name of the culture to get - a (possible neutral!) or null, if culture could not be resolved - - - - Resolves the culture from the context. - - Culture that should be used to render view. - - - - Not supported for this implementation. - - The new culture or null to clear the culture. - - - - Tries to determine culture from the request headers. If no languages - are specified in the request headers, it returns default culture specifed, and - if no default culture was specifed it returns current culture for the executing - server thread. - - Culture that should be used to render view. - - - - Not supported for this resolver implementation - - The new culture or null to clear the culture. - - - - This interface should be implemented by all validation errors renderers. - - - - Validation errors renderers are used to decouple rendering behavior from the - validation errors controls such as and - . - - - This allows users to change how validation errors are rendered by simply pluggin in - appropriate renderer implementation into the validation errors controls using - Spring.NET dependency injection. - - - Aleksandar Seovic - $Id: IValidationErrorsRenderer.cs,v 1.1 2007/08/02 19:50:28 markpollack Exp $ - - - - Renders validation errors using specified . - - Web form instance. - An HTML writer to use. - The list of validation errors. - - - - Represents Content control that can be used to populate or override placeholders - anywhere within the page. - - - - Any content defined within this control will override default content - in the matching control specified by anywhere - within the page. - - - In contrast to control, ContentReplacer can replace the content of - any control within the current page - it is not limited to replacing ContentPlaceholders on master pages. - - - This technique is useful if you want to group e.g. rendering navigation elements on 1 ascx control, but your - design requires navigation elements to be distributed across different places within the HTML code. - - - Erich Eichinger - $Id: ContentReplacer.cs,v 1.3 2007/07/24 13:33:27 oakinger Exp $ - - - - Overriden to correctly redirect rendermethod calls. - - - - - Renders child controls - - - - - Render nothing. - - - - - Specifies the unique id of the control, who's content is to be replaced. - - - - - Implementation of that retrieves - configured instances from Spring web application context. - - - - This handler factory uses the page name from the URL, without the extension, - to find the handler object in the Spring context. This means that the target object - definition doesn't need to resolve to an .aspx page -- it can be any valid - object that implements interface. - - - If the specified page is not found in the Spring application context, this - handler factory falls back to the standard ASP.NET behavior and tries - to find physical page with a given name. - - - In either case, handlers that implement - and will be provided with the references - to appropriate Spring.NET application context (based on the request URL) - and a that should be used to store the information - that needs to be shared by all instances of the handler. - - - Aleksandar Seovic - $Id: PageHandlerFactory.cs,v 1.41 2008/05/15 12:35:27 oakinger Exp $ - - - - Provides base functionality for Spring.NET context-aware - implementations. - - -

- Provides derived classes with a default implementation of - method. -

-
- Aleksandar Seovic - $Id: AbstractHandlerFactory.cs,v 1.5 2008/03/19 18:05:08 oakinger Exp $ -
- - - Creates a new instance of the - class. - - -

- This is an abstract class and as such provides no public constructors. -

-
-
- - - Returns an appropriate implementation. - - - An instance of the class that - provides references to intrinsic server objects. - - - The HTTP method of the request. - - The request URL. - - The physical path of the requested resource. - - - A new object that processes - the request. - - - - - Enables a factory to release an existing - instance. - - - The object to release. - - - - - DO NOT USE - this is subject to change! - - - - - This method requires registrars to follow the convention of registering web object definitions using their - application relative urls (~/mypath/mypage.aspx). - - - Resolve an object definition by url. - - - - - DO NOT USE - this is subject to change! - - - - - DO NOT USE - - - - - DO NOT USE - - - - - DO NOT USE - - - - - Retrieves instance of the configured page from Spring web application context, - or if page is not defined in Spring config file tries to find it using standard - ASP.Net mechanism. - - Current HttpContext - Type of HTTP request (GET, POST, etc.) - Requested page URL - Translated server path for the page - Instance of the IHttpHandler object that should be used to process request. - - - - Wrapper for handlers that do not require . - - - NOTE: This class has to extend System.Web.UI.Page instead of simply - implementing IHttpHandler in order for Server.Transfer to work properly. - This in turn requires explicit IHttpHandler implementation in order to - override non-virtual methods from the base Page class. - - - - - Initializes a new instance of the class. - - Application context instance to retrieve page from. - Name of the page object to execute. - Requested page URL. - Translated server path for the page. - - - - Initializes a new instance of the class. - - Application context instance to retrieve page from. - Name of the page object to execute. - - - - Creates a page instance corresponding to this handler's url. - - - - - Gets or - if not found - creates a process handler instance. - - - - - Apply dependency injection stuff on the handler. - - - - - - Applies to the given handler if applicable. - - - - - Checks, if page has been recompiled. Creates/discards handlerState if necessary. - - - - - - Use for sync access to this PageHandler instance. - - - - - Gets that contains handler state. - - - This will be assigned to the SharedState - property of instances that implement - interface. - - - - - Returns true because this wrapper handler can be reused. - Actual page is instantiated at the beginning of the ProcessRequest method. - - - - - Wrapper for handlers that require . - - - Delays page object instantiation until ProcessRequest is called - in order to be able to access session state. - - - - - Initializes a new instance of the class. - - Application context instance to retrieve page from. - Name of the page object to execute. - Requested page URL. - Translated server path for the page. - - - - Initializes a new instance of the class. - - Application context instance to retrieve page from. - Name of the page object to execute. - - - - An implementation that - retrieves configured WebService objects from the Spring.NET web - application context. - - - This handler factory uses web service name from the URL, without the extension, - to find web service object in the Spring context. - - Aleksandar Seovic - $Id: WebServiceHandlerFactory.cs,v 1.12 2008/03/19 18:05:08 oakinger Exp $ - - - - Retrieves instance of the page from Spring web application context. - - current HttpContext - type of HTTP request (GET, POST, etc.) - requested page URL - translated server path for the page - instance of the configured page object - - - - Interface that should be implemented by all s - that want to be aware of the they belong to. - - Aleksandar Seovic - $Id: IProcessAware.cs,v 1.2 2006/05/18 21:37:52 markpollack Exp $ - - - - Gets or sets a process instance. - - - - - An abstract base class that defines common behavior for different process implementations. - - Aleksandar Seovic - $Id: AbstractProcessHandler.cs,v 1.1 2007/08/03 08:31:25 oakinger Exp $ - - - - An interface that different process implementations need to support. - - - - - Starts the process. - - Referrer URL. - - - - Resolves view for the specified view name. - - Name of the view to go to. - - - - Ends the process. - - - - - Unique ID of this process instance. - - - - - Controller for the component. - - - Process controller will be shared by all the views - that belong to this process. - - - - - Gets the name of the current view. - - - - - Gets the the flag that indicates if selected view - has changed during the current request. - - - - - This interface should be implemented by s that want to - have access to the shared state for the handler. - - -

- Shared state is very useful if you have data that needs to be shared by all instances - of the same page (or other ). -

-

- For example, class implements this interface, which allows - each page derived from it to cache localizalization resources and parsed data binding - expressions only once and then reuse the cached values, regardless of how many instances - of the page are created. -

-
-
- - - Gets or sets the that should be used - to store shared state for the . - - - The that should be used - to store shared state for the . - - - - - Parameter name that is used for process ID. - - - - - Creates instance of the process and registers it with the . - - - - - Starts the process. - - Process URL. - - - - Resolves and sets the view for the specified view name. - - Name of the view to go to. - - - - Ends the process by unregistering it from the . - - - - - Method that needs to be implemented by specific process implementations - in order to navigate to the first view in the process. - - - - - Method that needs to be implemented by specific process implementations - in order to navigate to the current view. - - - - - Processes the request by delegating to appropriate view, which could be - another process. - - - - - - Unique ID of this component instance. - - - - - Gets or sets the parent process. - - - - - Returns a thread-safe dictionary that contains state that is shared by - all views of this component. - - - - - Controller for the component. - - - Process controller will be shared by all the views - that belong to this component. - - - - - Default view for the component. - - - - - Gets the name of the current view. - - - - - Gets the the flag that indicates if selected view - has changed during the current request. - - - - - Gets a map of process views. - - - - - Gets the process URL. - - - - - Returns true because this wrapper handler can be reused. - Actual page is instantiated at the beginning of the ProcessRequest method. - - - - - Gets or sets the application context. - - - - - Abstracts the underlying infrastructure of a HttpRequest - - - - - Maps a virtual path to it's physical location - - - - - The virtual (rooted) path of the current Application with trailing slash - - - For the site rooted applications, "/" will be returned, for all others "/..someappdir../" - - - - - The virtual (rooted) path of the current Request including - - - - - The virtual (rooted) path of the current Request without trailing - - - - - The virtual (rooted) path of the currently executing script - - - Normally this property is the same as . - In case of , this property returns the current script - whereas CurrentVirtualPath returns the original script path. - - - - - Helper class for easier access to reflected ControlCollection members. - - Erich Eichinger - $Id: ControlCollectionAccessor.cs,v 1.3 2008/05/13 23:23:03 oakinger Exp $ - - - - Returns the underlying ControlCollection instance. - - - - - Returns the type of the underlying ControlCollection instance. - - - - - Creates a new Accessor for a given . - - The to be accessed - - - - Gets or sets the owner of the underlying ControlCollection. - - - - - Custom implementation of - for web applications. - - -

- This implementation adds support for .aspx pages and scoped objects. -

-
- Aleksandar Seovic - $Id: WebObjectDefinitionFactory.cs,v 1.9 2008/04/07 00:19:55 bbaia Exp $ -
- - - Factory style method for getting concrete - - instances. - - If no parent is specified, a RootWebObjectDefinition is created, otherwise a - ChildWebObjectDefinition. - The of the defined object. - The name of the parent object definition (if any). - The against which any class names - will be resolved into instances. - - An - - instance. - - - - - implementation specifically - for resources served up from a web server. - - -

- Uses the System.Web.HttpContext.Current.Server.MapPath - method to resolve the file name for a given resource. -

-
- Aleksandar Seovic - $Id: WebResource.cs,v 1.14 2008/03/14 12:02:45 oakinger Exp $ -
- - - Creates a new instance of the class. - - - The name of the file system resource (on the server). - - - - - Resolves the handle - for the supplied . - - - The name of the file system resource. - - - The handle for this resource. - - - - - Resolves the root location for the supplied . - - - The name of the file system resource. - - - The root location of the resource. - - - - - Resolves the path for the supplied . - - - The name of the file system resource. - - - The current path of the resource. - - - - - Resolves the presence of the - value - in the supplied into a path. - - - The name of the resource. - - - The string that is a placeholder for a base path. - - - The name of the resource with any - value having been resolved into an actual path. - - - - - Does the supplied relative ? - - - The name of the resource to test. - - - if resource name is relative; - otherwise . - - - - - Factory Method. Create a new instance of the current resource type using the given resourceName - - - - - The ResourceLoader to be used for resolving relative resources - - - - - Gets those characters that are valid path separators for the - resource type. - - - Those characters that are valid path separators for the resource - type. - - - - - - Provides various support for proper handling requests. - - Erich Eichinger - $Id: WebSupportModule.cs,v 1.15 2007/08/08 17:48:19 bbaia Exp $ - - - - For webapplications always -
    -
  • convert IResources using the current context.
  • -
  • use "web" as default resource protocol
  • -
  • use as default threading storage
  • -
-
-
- - - Registers this module for all events required by the Spring.Web framework - - - - - Disposes this instance - - - - - Web application context, taking the context definition files - from the file system or from URLs. - - Treats resource paths as web resources, when using - IApplicationContext.GetResource. Resource paths are considered relative - to the virtual directory. - - Note: In case of multiple config locations, later object definitions will - override ones defined in earlier loaded files. This can be leveraged to - deliberately override certain object definitions via an extra XML file. - - Aleksandar Seovic - - - - The instance for this class. - - - - - Create a new WebApplicationContext, loading the definitions - from the given XML resource. - - Names of configuration resources. - - - - Create a new WebApplicationContext, loading the definitions - from the given XML resource. - - The application context name. - Flag specifying whether to make this context case sensitive or not. - Names of configuration resources. - - - - Create a new WebApplicationContext with the given parent, - loading the definitions from the given XML resources. - - The application context name. - Flag specifying whether to make this context case sensitive or not. - The parent context. - Names of configuration resources. - - - - returns detailed instance information for debugging - - - - - - Since the HttpRuntime discards it's configurationsection cache, we maintain our own context cache. - Despite it really speeds up context-lookup, since we don't have to go through the whole HttpConfigurationSystem - - - - - EventHandler for ContextRegistry.Cleared event. Discards webContextCache. - - - - - Returns the root context of this web application - - - - - Returns the web application context for the given (absolute!) virtual path - - - - - Initializes object definition reader. - - Reader to initialize. - - - - Creates web object factory for this context using parent context's factory as a parent. - - Web object factory to use. - - - - Returns the web application context for the current request's filepath - - - - - Return an array of resource locations, referring to the XML object - definition files that this context should be built with. - - an array of resource locations, or null if none - - - - Specifies that page should be treated as a dialog, meaning that after processing - is over user should return to the referring page. - - -

- Pages marked with this attribute will have "close" result predefined. -

-

- Developers should call SetResult("close") from the event handler - in order to return control back to the calling page. -

-
- Aleksandar Seovic - $Id: DialogAttribute.cs,v 1.3 2006/05/18 21:37:52 markpollack Exp $ -
- - - Provides functions required for implementing validators - but are unfortunately not accessible from - - Erich Eichinger - $Id: AbstractBaseValidator.cs,v 1.1 2007/07/31 10:40:58 oakinger Exp $ - - - - Registers a javascript-block to be rendered. - - - - - Checks, if a certain javascript-block is already registered. - - - - - Adds an attribute to be rendered for clientside validation. - - - - - Is "XHTML 1.0 Transitional" rendering allowed? - - - - - Abstracts access to properties required for - handling validation and error rendering - - Erich Eichinger - $Id: IValidationContainer.cs,v 1.1 2008/03/19 12:07:15 oakinger Exp $ - - - - Gets the MessageSource to be used for - resolving error ids into messages - - - - - Gets the list of validation errors kept by this container. - - - - - A page or control must implement this interface to support spring's databinding infrastructure. - - - - - - - - - - Return the UniqueID of this page or control. - - - - - Return the where - instances should be optained from. - - - - - This event is raised to initialize bindings for . - - - - - The control allows you to build ASP.NET Web pages that present - the user with content arranged in tabular form. - - Erich Eichinger - $Id: TabularMultiView.cs,v 1.1 2007/07/24 13:33:28 oakinger Exp $ - - - - Initializes a new instance. - - - - - Initializes a new instance with the given container tag to be used for rendering. - - - - - Create the container for tab items. - - - - - Creates TabContainer and MultiView - - - - - keeps parsed views until multiView is created - - - - - Initialize this control. - - - - - Creates child controls. - - - - - Adds the element to the collection of child controls. - - - - - Called if ActiveViewIndex is changed - - - - - Set the style class of the panel containing the Tabs. - - - - - Set the style class of each Tab item. - - - - - Set the style class of the currently selected Tab item. - - - - - Set the style class of the panel containing all controls. - - - - - Gets or sets the index of the active View control within a control. - - - - - Occurs, if the active tab has changed. - - - - - This strategy replaces the original collection's owner with an intercepting proxy - - Erich Eichinger - $Id: InterceptControlCollectionOwnerStrategy.cs,v 1.1 2007/08/01 23:11:01 markpollack Exp $ - - - - Any concrete interception strategy must implement this interface - - Erich Eichinger - $Id: IInterceptionStrategy.cs,v 1.1 2007/08/01 23:11:00 markpollack Exp $ - - - - Any implementation must never throw an exception from this method. - Instead false must be returned to indicate interception failure. - - - true, if interception succeeded. false otherwise. - - - - - Web object definitions extend - by adding scope property. - - -

- This is the most common type of object definition in ASP.Net web applications -

-
- Aleksandar Seovic - $Id: ChildWebObjectDefinition.cs,v 1.3 2007/08/01 23:10:46 markpollack Exp $ -
- - - Defines additional members web object definitions need to implement. - - Aleksandar Seovic - $Id: IWebObjectDefinition.cs,v 1.2 2007/03/26 14:58:38 oakinger Exp $ - - - - Gets or sets scope for the web object (application, session or request) - - - - - Returns true if web object is .aspx page. - - - - - Gets the rooted url of the .aspx page, if object definition represents page. - - - - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - Name of the parent object definition. - The class of the object to instantiate. - - The - to be applied to a new instance of the object. - - - The to be applied to - a new instance of the object. - - - - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - Name of the parent object definition. - The class name of the object to instantiate. - - The - to be applied to a new instance of the object. - - - The to be applied to - a new instance of the object. - - - - - Creates a new instance of the - class - for an .aspx page, providing property values. - - Name of the parent object definition. - Name of the .aspx page to instantiate. - - The to be applied to - a new instance of the object. - - - - - A that represents the current - . - - - A that represents the current - . - - - - - Object scope. - - - - - Returns true if web object is .aspx page. - - - - - Gets the rooted url of the .aspx page, if object definition represents page. - - - - - Forces ASP pages to be treated as prototypes all the time inorder to comply with ASP.Net requirements. - - - - - Represents the method that will handle the TabCommand event. - - The source of the event. - A that contains the event data. - Erich Eichinger - $Id: TabCommandEventHandler.cs,v 1.1 2007/07/24 13:33:28 oakinger Exp $ - - - - This control should be used instead of standard HTML head tag - in order to render dynamicaly registered head scripts and stylesheets. - - Aleksandar Seovic - $Id: LocalizedImage.cs,v 1.4 2006/05/18 21:37:52 markpollack Exp $ - - - - Tries to determine full URL for the localized image before it's rendered. - - - - - - Name of the image file. - - - - - Gets a reference to the instance that contains the - server control. - - - - - - Displays a pop-up DHTML calendar. - - -

- Credit: this control uses a slightly modified version of the - Dynarch.com DHTML Calendar, - written by Mihai Bazon. -

-
- Aleksandar Seovic - $Id: Calendar.cs,v 1.13 2007/12/07 21:06:35 oakinger Exp $ -
- - - Registers necessary scripts and stylesheet. - - - An object that contains the event data. - - - - - Renders a hidden input field that stores the value for the radio button group. - - - to use for rendering. - - - - - Raises the SelectionChanged event. - - - - - Loads postback data into the control. - - - The key that should be used to retrieve data. - - The postback data collection. - if data has changed. - - - - The method that is called on postback if the date has changed. - - - The event argument (empty and unused). - - - - - Gets a reference to the instance that contains the - server control. - - - A reference to the instance that contains the - server control. - - - - - The selected date. - - The selected date. - - - - The date format that is to be used. - - A valid date format string. - - - - Is direct editing of the date allowed? - - - if direct editing of the date is allowed? - - - - The (CSS) style. - - The style for the calendar. - - - - Occurs when the value of the radio button group changes between postbacks to the server. - - - - - Miscellaneous web utility methods. - - Aleksandar Seovic - $Id: WebUtils.cs,v 1.32 2008/03/19 18:05:07 oakinger Exp $ - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Default protocol used for resolving resources in web applications - - - - - Extracts the bare ASPX page name without any extension from the - supplied . - - -

- Examples of what would be returned from this method given a url would be: -

-

- - 'Login.aspx' => 'Login' - '~/Login.aspx' => 'Login' - '~/B2B/SignUp.aspx' => 'SignUp' - 'B2B/Foo/FooServices.aspx' => 'FooServices' - -

-
- The full URL to the ASPX page. - - The bare ASPX page name without any extension. - - - If the supplied is or - contains only whitespace character(s). - -
- - - Returns only the directory portion of a virtual path - - - The returned path is guaranteed to always have a leading and a trailing slash.
- If a path does not end with a file-extension it is assumed to be a directory -
-
- - - Returns absolute path that can be referenced within plain HTML. - - -

- If relative path starts with '/' (forward slash), no concatenation will occur - and it will be assumed that the relative path specified is indeed the absolute path - and will be returned verbatim.

-

- Otherwise, relative path will be appended to the application path, while making sure that - path separators are not duplicated between the paths.

-
- Application path. - Relative path to combine with the application path. - Absolute path. -
- - - Combines a rooted base path with a relative path. - - Must be a path starting with '/' - the path to be combined. May start with basepath Placeholder '~' - the combined path - - If relativePath starts with '~', rootPath is ignored and '~' resolves to the current AppDomain's application virtual path
- If relativePath start with '/', rootPath is ignored and relativePath is returned as-is. -
-
- - - Gets the application-relative virtual path portion of the given absolute URL. - - the absolute url - the url relative to the current application's virtual path - - - - Gets the virtual path portion of the given absolute URL - relative to the given base path. - - - Base path comparison is done case insensitive. - - the absolute base path - the absolute url - the url relative to the given basePath - - - - Performs a . Original path will be restored on - - - Rewrites the current HttpContext's filepath to <directory>/currentcontext.dummy.
- This affects resolving resources by calls to and
- Original path is restored during . -
- - - using( new HttpContextSwitch( "/path" ) ) - { - Response.Write( Request.FilePath ); // writes "/path/currentcontext.dummy" to response. - } - // Request.FilePath has been reset to original url here - - - Erich Eichinger - $Id: HttpContextSwitch.cs,v 1.1 2007/08/01 23:10:51 markpollack Exp $ -
- - - Performs an immediate call to - - a directory path (without trailing filename!) - - - - Restores original path if necessary - - - - - The possible object scope values. - - Aleksandar Seovic - $Id: ObjectScope.cs,v 1.1 2007/02/17 06:57:44 bbaia Exp $ - - - - Application scope. - - - - - Session scope. - - - - - Request scope. - - - - - Default scope (currently - ). - - - - - - Represents a MIME media type as defined by http://www.iana.org/assignments/media-types/ - - Erich Eichinger - $Id: MimeMediaType.cs,v 1.1 2007/11/28 23:26:10 oakinger Exp $ - - - - Parses a string into a instance. - - a valid string representation of a mediaType - a new instance - - - - Creates a new media type instance representing a generic "application/octet-stream" - - - - - Creates a new media type instance representing a generic content type - with an unspecified subtype (e.g. "text/*") - - - - - Creates a new media type instance representing a particular media type - - - - - Returns a string representation of this instance. - - - - - Compares this instance to another - - another instance - - - - Determines whether the specified is equal to the current . - - - true if the specified is equal to the current ; otherwise, false. - - The to compare with the current . - - - - Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - Gets the content type of this media type instance - - - - - Gets the subtype of this media type instance - - - - - Predefines common application media types - - - - - Represents "application/octet-stream" - - - - - Represents "application/pdf" - - - - - Represents "application/rtf" - - - - - Represents "application/soap+xml" - - - - - Represents "application/zip" - - - - - Predefines common image media types - - - - - Represents "image/gif" - - - - - Represents "image/jpeg" - - - - - Represents "image/tiff" - - - - - Predefines common text media types - - - - - Represents "text/html" - - - - - Represents "text/plain" - - - - - Represents "text/richtext" - - - - - Represents "text/xml" - - - - - Represents "text/javascript" - - - - - Represents "text/css" - - - - - Creates an instance - using context definitions supplied in a custom configuration and - configures the with that instance. - - - This class extends ContextHandler with - web specific behaviour. It uses WebApplicationContext - as default Context-Type. - - Erich Eichinger - $Id: WebContextHandler.cs,v 1.8 2008/03/13 20:07:43 bbaia Exp $ - - - - Gets the context name from the given - - - - - Throws a configuration exception, if child contexts are specified. - - - Nesting contexts in webapplications is done by explicitly declaring - spring context sections for each directory. - - - - - Handles web specific details of context instantiation. - - - - - Sets default context type to - - - - - Sets default case-sensitivity to 'false' for web-applications - - - - - This strategy enhances a ControlCollection's type by - dynamically implementing ISupportsWebDependencyInjection on this type - - Erich Eichinger - $Id: InterceptControlCollectionStrategy.cs,v 1.2 2008/05/13 14:22:47 oakinger Exp $ - - - - The list of methods to be intercepted for a ControlCollection - - - - - Holds a table of already known intercepted ControlCollection types - - - - - Intercepts the given by dynamically deriving - the original type and let it implement . - - the ApplicationContext to be set on the collection instance. - a wrapper around the owner control instance. - a wrapper around the collection instance. - true, if interception was successful. false otherwise - - - - Holds a reference to the static(!) callback-method to be used during generation of intercepted ControlCollection-Types - - - - - A spring configurable version of - - Erich Eichinger - $Id: ConfigurableSqlMembershipProvider.cs,v 1.1 2007/07/26 14:43:56 oakinger Exp $ - - - - Initializes the provider. - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - Values may be overridden by specifying them in list. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - The ConnectionString to be used - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - - - - An implementation backed by ASP.NET Cache (see ). - - - - Because ASP.NET Cache uses strings as cache keys, you need to ensure - that the key object type has properly implemented ToString method. - - - Despite the shared underlying , it is possible to use more than - one instance of without interfering each other. - - - Aleksandar Seovic - Erich Eichinger - $Id: AspNetCache.cs,v 1.6 2007/09/14 18:26:26 oakinger Exp $ - - - - Initializes a new instance of - - - - - Initializes a new instance of - with the specified implementation. - - - - - - Retrieves an item from the cache. - - - Item key. - - - Item for the specified , or null. - - - - - Removes an item from the cache. - - - Item key. - - - - - Inserts an item into the cache. - - - Items inserted using this method have default and default - - - Item key. - - - Item value. - - - Item's time-to-live (TTL). - - - - - Inserts an item into the cache. - - - Item key. - - - Item value. - - - Item's time-to-live. - - - Flag specifying whether the item's time-to-live should be reset - when the item is accessed. - - - - - Inserts an item into the cache. - - - Item key. - - - Item value. - - - Item's time-to-live. - - - Flag specifying whether the item's time-to-live should be reset - when the item is accessed. - - - Item priority. - - - - - Generate a key to be used for the underlying implementation. - - - - - - - Gets/Sets a flag, whether to use sliding expiration policy. - - - - - Gets/Sets a default priority to be applied to all items inserted into this cache. - - - - - Gets a collection of all cache item keys. - - - - - Abstracts the underlying runtime cache - - - - - Insert an item into the cache. - - - - - Removes an item from the cache. - - The key of the item to remove - The object that has been removed from the cache - - - - Retrieve an item with the specified key from the cache. - - The key of the item to be retrieved - The item, if found. null otherwise - - - - Actually delegates all calls to the underlying - - - - - This panel provides the same features as , but provides additional means with regards to Spring. - - - In some cases, automatic dependency injection can cause performance problems. In this case,you can use a Panel for finer-grained control - over which controls are to be injected or not. - - Erich Eichinger - $Id: Panel.cs,v 1.3 2008/03/09 15:20:37 oakinger Exp $ - - - - "Contract"-interface of the Web-DI infrastructure. - - - This interface supports Spring's DI infrastructure and normally doesn't need to be implemented
-
- Any Page, Control or ControlCollection implementing this interface guarantees to - call on any control being added - before it is actually added to the child-collection. -
- -

The following example shows, how to make a Control support the DI-infrastructure:

- - class MyControl : Control, ISupportsWebDependencyInjection - { - private IApplicationContext _defaultApplicationContext; - - public IApplicationContext DefaultApplicationContext - { - get { return _defaultApplicationContext; } - set { _defaultApplicationContext = value; } - } - - override protected AddedControl( Control control, int index ) - { - WebUtils.InjectDependenciesRecursive( _defaultApplicationContext, control ); - base.AddedControl( control, index ); - } - } - -
- -

The following example shows, how to make a ControlCollection support the DI-infrastructure:

-

Note, that you MUST implement the single-argument constructor ControlCollection( Control owner )!

- - class MyControlCollection : ControlCollection, ISupportsWebDependencyInjection - { - private IApplicationContext _defaultApplicationContext; - - public MyControlCollection( Control owner ) : base( owner ) - {} - - public IApplicationContext DefaultApplicationContext - { - get { return _defaultApplicationContext; } - set { _defaultApplicationContext = value; } - } - - override public Add( Control child ) - { - WebUtils.InjectDependenciesRecursive( _defaultApplicationContext, child ); - base.Add( child ); - } - - override public AddAt( int index, Control child ) - { - WebUtils.InjectDependenciesRecursive( _defaultApplicationContext, child ); - base.AddAt( index, child ); - } - } - -
- Erich Eichinger - $Id: ISupportsWebDependencyInjection.cs,v 1.2 2007/08/01 23:11:00 markpollack Exp $ -
- - - Holds the default instance to be used during injecting a control-tree. - - - - - Overridden to suppress rendering this control's tag - - - - - - This method is invoked right before InitRecursive() is called for this Panel and - ensures, that dependencies get injected on child controls before their Init event is raised. - - - - - Injects dependencies into control before adding it. - - - - - Overridden to automatically aquire a reference to - root application context to use for DI. - - - - - This flag controls, whether DI on child controls will be done or not - - By default, DI will be done - - - - This flag controls, whether this Panel's tag will be rendered. - - - - - Sets / Gets the ApplicationContext instance used to configure this control - - - - - Wraps a Control to make it DI aware - - Erich Eichinger - $Id: SupportsWebDependencyInjectionOwnerProxy.cs,v 1.2 2008/05/13 14:22:47 oakinger Exp $ - - - - Wraps a control to make it DI aware - - - - - - - Performs DI before adding the control to it's parent - - - - - - - Delegates call to decorated control - - - - - - An Interface for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute is mandatory. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Retrieves a object that represents the currently requested page using the specified object. - - - - A that represents the currently requested page; otherwise, null, if no corresponding can be found in the or if the page context is null. - - - The used to match node information with the URL of the requested page. - - - - Retrieves a object based on a specified key. - - - - A that represents the page identified by key; otherwise, null, if no corresponding is found or if security trimming is enabled and the cannot be returned for the current user. The default is null. - - - A lookup key with which a is created. - - - - When overridden in a derived class, retrieves a object that represents the page at the specified URL. - - - - A that represents the page identified by rawURL; otherwise, null, if no corresponding is found or if security trimming is enabled and the cannot be returned for the current user. - - - A URL that identifies the page for which to retrieve a . - - - - When overridden in a derived class, retrieves the child nodes of a specific . - - - - A read-only that contains the immediate child nodes of the specified ; otherwise, null or an empty collection, if no child nodes exist. - - - The for which to retrieve all child nodes. - - - - Provides an optimized lookup method for site map providers when retrieving the node for the currently requested page and fetching the parent and ancestor site map nodes for the current page. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - The number of ancestor site map node generations to get. A value of -1 indicates that all ancestors might be retrieved and cached by the provider. - upLevel is less than -1. - - - - Provides an optimized lookup method for site map providers when retrieving the node for the currently requested page and fetching the site map nodes in the proximity of the current node. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors might be retrieved and cached by the provider. - The number of child generations to fetch. 0 indicates no descendant nodes are retrieved and a -1 indicates that all descendant nodes might be retrieved and cached by the provider. - upLevel or downLevel is less than -1. - - - - When overridden in a derived class, retrieves the parent node of a specific object. - - - - A that represents the parent of node; otherwise, null, if the has no parent or security trimming is enabled and the parent node is not accessible to the current user. - - - The for which to retrieve the parent node. - - - - Provides an optimized lookup method for site map providers when retrieving an ancestor node for the currently requested page and fetching the descendant nodes for the ancestor. - - - - A that represents an ancestor of the currently requested page; otherwise, null, if the current or ancestor is not found or cannot be returned for the current user. - - - The number of descendant node levels to retrieve from the target ancestor node. - The number of ancestor node levels to traverse when retrieving the requested ancestor node. - walkupLevels or relativeDepthFromWalkup is less than 0. - - - - Provides an optimized lookup method for site map providers when retrieving an ancestor node for the specified object and fetching its child nodes. - - - - A that represents an ancestor of node; otherwise, null, if the current or ancestor is not found or cannot be returned for the current user. - - - The number of descendant node levels to retrieve from the target ancestor node. - The that acts as a reference point for walkupLevels and relativeDepthFromWalkup. - The number of ancestor node levels to traverse when retrieving the requested ancestor node. - The value specified for walkupLevels or relativeDepthFromWalkup is less than 0. - node is null. - - - - Provides a method that site map providers can override to perform an optimized retrieval of one or more levels of parent and ancestor nodes, relative to the specified object. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors might be retrieved and cached. - The that acts as a reference point for upLevel. - upLevel is less than -1. - node is null. - - - - Provides a method that site map providers can override to perform an optimized retrieval of nodes found in the proximity of the specified node. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors (and their descendant nodes to the level of node) might be retrieved and cached. - The number of descendant generations to fetch. 0 indicates no descendant nodes are retrieved and -1 indicates that all descendant nodes might be retrieved and cached. - The that acts as a reference point for upLevel. - upLevel or downLevel is less than -1. - node is null. - - - - Retrieves a Boolean value indicating whether the specified object can be viewed by the user in the specified context. - - - - true if security trimming is enabled and node can be viewed by the user or security trimming is not enabled; otherwise, false. - - - The that contains user information. - The that is requested by the user. - context is null.- or -node is null. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - - Gets the object that represents the currently requested page. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - - - - Gets or sets the parent object of the current provider. - - - - The parent provider of the current . - - - - - - Gets the root object in the current provider hierarchy. - - - - An that is the top-level site map provider in the provider hierarchy that the current provider belongs to. - - - There is a circular reference to the current site map provider. - - - - Gets the root object of the site map data that the current provider represents. - - - - The root of the current site map data provider. The default implementation performs security trimming on the returned node. - - - - - - Implements by using both and and choosing dynamically between them. - - - In web applications a single Request may be executed on different threads. In this case HttpContext.Current is the only invariant.
- This implementation dynamically chooses between System.Runtime.Remoting.Messaging.CallContext - and System.Web.HttpContext to store data. -
- Erich Eichinger - $Id: HybridContextStorage.cs,v 1.1 2007/02/02 21:31:25 oakinger Exp $ -
- - - Retrieves an object with the specified name. - - The name of the item. - The object in the context associated with the specified name or null if no object has been stored previously - - - - Stores a given object and associates it with the specified name. - - The name with which to associate the new item. - The object to store in the call context. - - - - Empties a data slot with the specified name. - - The name of the data slot to empty. - - - - Miscellaneous utility methods to support web functionality within Spring.Objects - - Aleksandar Seovic - $Id: WebObjectUtils.cs,v 1.3 2008/01/27 23:29:55 oakinger Exp $ - - - - Creates a new instance of the class. - - -

- This is a utility class, and as such exposes no public constructors. -

-
-
- - - Creates an instance of the ASPX page - referred to by the supplied . - - - The URL of the ASPX page. - - Page instance. - - If this method is not called in the scope of an active web session - (i.e. the implementation this method depends on this code executing - in the environs of a running web server such as IIS); or if the - page could not be instantiated (for whatever reason, such as the - ASPX not actually existing). - - - - - Returns the of the ASPX page - referred to by the supplied . - - -

- As indicated by the exception that can be thrown by this method, - the ASPX page referred to by the supplied - does have to be instantiated in order to determine its - see cref="System.Type"/> -

-
- - The filename of the ASPX page. - - - The of the ASPX page - referred to by the supplied . - - - If the supplied is or - contains only whitespace character(s). - - - If this method is not called in the scope of an active web session - (i.e. the implementation this method depends on this code executing - in the environs of a running web server such as IIS); or if the - page could not be instantiated (for whatever reason, such as the - ASPX not actually existing). - -
- - - Calls the underlying ASP.NET infrastructure to obtain the compiled page type - relative to the current . - - - The filename of the ASPX page relative to the current - - - The of the ASPX page - referred to by the supplied . - - - - - Gets the controls type from a given filename - - - - - May be used to wrap controls for databinding that don't accept unknown attributes. - - - - - Overridden to ensure only 1 control is wrapped by this adapter - - - - - - Overridden to render wrapped control only. - - - - - Returns the control wrapped by this adapter or null. - - - - - This TypeBuilder dynamically implements the contract on a given type. - - Erich Eichinger - $Id: SupportsWebDependencyInjectionTypeBuilder.cs,v 1.1 2007/08/01 23:11:01 markpollack Exp $ - - - - Creates a new TypeBuilder instance. - - The base type the proxy shall be derived from - The methods to be injected with a call to staticCallbackMethod - The static callback method to be injected into methodsToIntercept - - - - Creates a proxy that inherits the proxied object's class. - - - The generated proxy type. - - - - Actually implements the interface. - - - - - Declares field that holds the . - - - - - Determines if the specified - is one of those generated by this builder. - - The type to check. - - if the type is a SpringAwareControl-based proxy; - otherwise . - - - - - The various result modes. - - Aleksandar Seovic - $Id: ResultMode.cs,v 1.3 2007/04/19 07:49:01 oakinger Exp $ - - - - - A server-side transfer. - - -

- Issues a server-side transfer using the - method. -

-
- -
- - - A redirect. - - -

- Issues a redirect (to the user-agent - typically a browser) using - the method. -

-
- -
- - - A server-side transfer. - - -

- Issues a server-side transfer using the - method with parameter 'preserveForm=false'. -

-
- -
- - - implementation that allows users to monitor state - of the Spring.NET web application context. - - -

- -

-
- Aleksandar Seovic - $Id: ContextMonitor.cs,v 1.3 2007/07/29 19:39:48 markpollack Exp $ -
- - - Initializes a new instance of the class. - - - - - Processes HTTP request. - - An object that provides references to the intrinsic server objects (for example, , , , and ) used to service HTTP requests. - - - - Gets a value indicating whether another request can use - this instance. - - True if this handler is reusable, False otherwise. - - - - - - - - - Sets the binding context of this formatter. - - - - - - - - - Clears the binding context of this formatter. - - - - - Binds agroup of HTTP request multi-valued items to the data model. - - - Due to the fact, that browsers don't send the values of unchecked checkboxes, you - can't use for binding to checkboxes. - - Aleksandar Seovic - $Id: HttpRequestBindingContainer.cs,v 1.6 2008/02/05 20:40:26 aseovic Exp $ - - - - Creates a new instance of . - - - Comma separated list of multi-valued request parameters that - should be used to create a target item. - - - Expression that identifies a target list items should be added to. - - - The type of the target item. - - - - - Adds the binding. - - - This is a convinience method for adding SimpleExpressionBinding, - one of the most often used binding types, to the bindings list. - - - The source expression. - - - The target expression. - - - Binding direction. - - - to use for value formatting and parsing. - - - Added instance. - - - - - Binds source object to target object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Binds target object to source object. - - - The source object. - - - The target object. - - - Validation errors collection that type conversion errors should be added to. - - - Variables that should be used during expression evaluation. - - - - - Implementation of that renders - validation errors within a div element, using breaks between the - errors. - - - This renderer's behavior is consistent with standard ASP.NET behavior of - the validation summary, and is used as default renderer for Spring.NET - control. - - Aleksandar Seovic - $Id: DivValidationErrorsRenderer.cs,v 1.1 2007/08/02 19:50:28 markpollack Exp $ - - - - This class provides common members for all validation errors renderers. - - Aleksandar Seovic - $Id: AbstractValidationErrorsRenderer.cs,v 1.1 2007/08/02 19:50:28 markpollack Exp $ - - - - Renders validation errors using specified . - - Web form instance. - An HTML writer to use. - The list of validation errors. - - - - Gets or sets the name of the CSS class that should be used. - - - The name of the CSS class that should be used - - - - - Renders validation errors using specified . - - Web form instance. - An HTML writer to use. - The list of validation errors. - - - - This validator allows for validating a CheckBox's "Checked" state. - - Erich Eichinger - $Id: CheckBoxValidator.cs,v 1.1 2007/07/31 10:40:59 oakinger Exp $ - - - - Validates this validator's properties are set correctly. - - - - - - Returns the state of the checkbox's Checked property - - - - - - Adds attributes required for clientside validation - - - - - - Ensures the evaluation javascript functionblock is registered - - - - - - Web object definitions extend - by adding scope property. - - -

- This is the most common type of object definition in ASP.Net web applications -

-
- Aleksandar Seovic - $Id: RootWebObjectDefinition.cs,v 1.4 2007/08/01 23:10:46 markpollack Exp $ -
- - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - - The type of the object to instantiate. - - - The to be applied to - a new instance of the object. - - - The - to be applied to a new instance of the object. - - - - - Creates a new instance of the - class - for a singleton, providing property values and constructor arguments. - - - The assembly qualified of the object to instantiate. - - - The to be applied to - a new instance of the object. - - - The - to be applied to a new instance of the object. - - -

- Takes an object class name to avoid eager loading of the object class. -

-
-
- - - Creates a new instance of the - class - for an .aspx page, providing property values. - - - Name of the .aspx page to instantiate. - - - The to be applied to - a new instance of the object. - - - - - Creates a new instance of the - class - - - The definition that is to be copied. - - -

- Deep copy constructor. -

-
-
- - - Overrides this object's values using values from other argument. - - The object to copy values from. - - - - A that represents the current - . - - - A that represents the current - . - - - - - Object scope. - - - - - Returns true if web object is .aspx page. - - - - - Gets the rooted url of the .aspx page, if object definition represents page. - - - - - Forces ASP pages to be treated as prototypes all the time inorder to comply with ASP.Net requirements. - - - - - This formatter acts as an adapter to a datasource. It parses a given datasource into - a table to allow converting back and forth between objects and their keys during formatting. - - - - The DataSourceItemFormatter expects the "source" to have 2 properties named "DataSourceField" and "DataValueField". - - - - - - Initialize this instance. - - The name of the "source"s property containing the dataSource - The name of the "source"s property containing the name of the key property - - - - Sets the bindingContext for the current thread. - - The source object - The target object - Variables to be used during binding - The current binding's direction - - - - Reset the current thread's binding context. - - - - - Initialize a new instance. - - The datasource containing list items - The name of the listitem's property that evaluates to the item's key - The direction of the current binding - - - - Returns the key of the specified value object. - - The value to extract the key from. - Key extracted from . - - - - Return the object with the specified key from the datasource. - - The key of the object. - Parsed . - - - - - - Erich Eichinger - $Id: HttpApplicationConfigurer.cs,v 1.2 2007/07/29 19:39:42 markpollack Exp $ - - - - Holds shared application Template - - - - - Holds shared modules Templates - - - - - Configures the instance and its modules. - - - When called, configures using the instance - provided in and the templates available in - and . - - the application context instance to be used for resolving object references. - the instance to be configured. - - - - Gets or Sets the shared application template - - - - - Gets the dictionary of shared module templates - - - to synchronize access to the dictionary, use property. - - - - - Wrapper for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Reference to wrapped provider (defined in Spring context). - - - - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute may be used to override the name being used for looking up an object definition. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Retrieves a object that represents the currently requested page using the specified object. - - - - A that represents the currently requested page; otherwise, null, if no corresponding can be found in the or if the page context is null. - - - The used to match node information with the URL of the requested page. - - - - Retrieves a object based on a specified key. - - - - A that represents the page identified by key; otherwise, null, if no corresponding is found or if security trimming is enabled and the cannot be returned for the current user. The default is null. - - - A lookup key with which a is created. - - - - When overridden in a derived class, retrieves a object that represents the page at the specified URL. - - - - A that represents the page identified by rawURL; otherwise, null, if no corresponding is found or if security trimming is enabled and the cannot be returned for the current user. - - - A URL that identifies the page for which to retrieve a . - - - - When overridden in a derived class, retrieves the child nodes of a specific . - - - - A read-only that contains the immediate child nodes of the specified ; otherwise, null or an empty collection, if no child nodes exist. - - - The for which to retrieve all child nodes. - - - - Provides an optimized lookup method for site map providers when retrieving the node for the currently requested page and fetching the parent and ancestor site map nodes for the current page. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - The number of ancestor site map node generations to get. A value of -1 indicates that all ancestors might be retrieved and cached by the provider. - upLevel is less than -1. - - - - Provides an optimized lookup method for site map providers when retrieving the node for the currently requested page and fetching the site map nodes in the proximity of the current node. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors might be retrieved and cached by the provider. - The number of child generations to fetch. 0 indicates no descendant nodes are retrieved and a -1 indicates that all descendant nodes might be retrieved and cached by the provider. - upLevel or downLevel is less than -1. - - - - When overridden in a derived class, retrieves the parent node of a specific object. - - - - A that represents the parent of node; otherwise, null, if the has no parent or security trimming is enabled and the parent node is not accessible to the current user. - - - The for which to retrieve the parent node. - - - - Provides an optimized lookup method for site map providers when retrieving an ancestor node for the currently requested page and fetching the descendant nodes for the ancestor. - - - - A that represents an ancestor of the currently requested page; otherwise, null, if the current or ancestor is not found or cannot be returned for the current user. - - - The number of descendant node levels to retrieve from the target ancestor node. - The number of ancestor node levels to traverse when retrieving the requested ancestor node. - walkupLevels or relativeDepthFromWalkup is less than 0. - - - - Provides an optimized lookup method for site map providers when retrieving an ancestor node for the specified object and fetching its child nodes. - - - - A that represents an ancestor of node; otherwise, null, if the current or ancestor is not found or cannot be returned for the current user. - - - The number of descendant node levels to retrieve from the target ancestor node. - The that acts as a reference point for walkupLevels and relativeDepthFromWalkup. - The number of ancestor node levels to traverse when retrieving the requested ancestor node. - The value specified for walkupLevels or relativeDepthFromWalkup is less than 0. - node is null. - - - - This method is marked as protected and should never be called. - - - - A that represents the root node of the set of nodes that the current provider manages. - - - - - - Provides a method that site map providers can override to perform an optimized retrieval of one or more levels of parent and ancestor nodes, relative to the specified object. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors might be retrieved and cached. - The that acts as a reference point for upLevel. - upLevel is less than -1. - node is null. - - - - Provides a method that site map providers can override to perform an optimized retrieval of nodes found in the proximity of the specified node. - - - The number of ancestor generations to fetch. 0 indicates no ancestor nodes are retrieved and -1 indicates that all ancestors (and their descendant nodes to the level of node) might be retrieved and cached. - The number of descendant generations to fetch. 0 indicates no descendant nodes are retrieved and -1 indicates that all descendant nodes might be retrieved and cached. - The that acts as a reference point for upLevel. - upLevel or downLevel is less than -1. - node is null. - - - - Retrieves a Boolean value indicating whether the specified object can be viewed by the user in the specified context. - - - - true if security trimming is enabled and node can be viewed by the user or security trimming is not enabled; otherwise, false. - - - The that contains user information. - The that is requested by the user. - context is null.- or -node is null. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - - Gets the object that represents the currently requested page. - - - - A that represents the currently requested page; otherwise, null, if the is not found or cannot be returned for the current user. - - - - - - Gets or sets the parent object of the current provider. - - - - The parent provider of the current . - - - - - - Gets the root object in the current provider hierarchy. - - - - An that is the top-level site map provider in the provider hierarchy that the current provider belongs to. - - - There is a circular reference to the current site map provider. - - - - Gets the root object of the site map data that the current provider represents. - - - - The root of the current site map data provider. The default implementation performs security trimming on the returned node. - - - - - - An Interface for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute is mandatory. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Gets a value indicating whether the specified user is in the specified role for the configured applicationName. - - - - true if the specified user is in the specified role for the configured applicationName; otherwise, false. - - - The user name to search for. - The role to search in. - - - - Gets a list of the roles that a specified user is in for the configured applicationName. - - - - A string array containing the names of all the roles that the specified user is in for the configured applicationName. - - - The user to return a list of roles for. - - - - Adds a new role to the data source for the configured applicationName. - - - The name of the role to create. - - - - Removes a role from the data source for the configured applicationName. - - - - true if the role was successfully deleted; otherwise, false. - - - If true, throw an exception if roleName has one or more members and do not delete roleName. - The name of the role to delete. - - - - Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName. - - - - true if the role name already exists in the data source for the configured applicationName; otherwise, false. - - - The name of the role to search for in the data source. - - - - Adds the specified user names to the specified roles for the configured applicationName. - - - A string array of the role names to add the specified user names to. - A string array of user names to be added to the specified roles. - - - - Removes the specified user names from the specified roles for the configured applicationName. - - - A string array of role names to remove the specified user names from. - A string array of user names to be removed from the specified roles. - - - - Gets a list of users in the specified role for the configured applicationName. - - - - A string array containing the names of all the users who are members of the specified role for the configured applicationName. - - - The name of the role to get the list of users for. - - - - Gets a list of all the roles for the configured applicationName. - - - - A string array containing the names of all the roles stored in the data source for the configured applicationName. - - - - - - Gets an array of user names in a role where the user name contains the specified user name to match. - - - - A string array containing the names of all the users where the user name matches usernameToMatch and the user is a member of the specified role. - - - The user name to search for. - The role to search in. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - Gets or sets the name of the application to store and retrieve role information for. - - - - The name of the application to store and retrieve role information for. - - - - - - A spring-configurable version of - - Erich Eichinger - $Id: ConfigurableSqlRoleProvider.cs,v 1.1 2007/07/26 14:43:56 oakinger Exp $ - - - - Initializes the provider. - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - Values may be overridden by specifying them in list. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - The ConnectionString to be used - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - - - - Concrete implementation of - that knows - how to handle s. - - -

- This class should only be used within the context of an ASP.NET web application. -

-
- Aleksandar Seovic - $Id: WebObjectFactory.cs,v 1.9 2007/12/16 12:43:48 oakinger Exp $ -
- - - Holds the virtual path this factory has been created from. - - - - - Registers events handlers with to ensure - proper disposal of 'request'- and 'session'-scoped objects - - - - - Creates a new instance of the - class. - - The virtual path resources will be relative resolved to. - Flag specifying whether to make this object factory case sensitive or not. - - - - Creates a new instance of the - class. - - The virtual path resources will be relative resolved to. - Flag specifying whether to make this object factory case sensitive or not. - - The parent object factory. - - - - - Creates the root object definition. - - The template definition. - Root object definition. - - - - Tries to find cached object for the specified name. - - - This implementation tries to find object first in the Request scope, - then in the Session scope and finally in the Application scope. - - Object name to look for. - Cached object if found, null otherwise. - - - - Creates a singleton instance for the specified object name and definition. - - - The object name (will be used as the key in the singleton cache key). - - The object definition. - - The arguments to use if creating a prototype using explicit arguments to - a static factory method. It is invalid to use a non-null arguments value - in any other case. - - The created object instance. - - - - Creates hopefully unique key for the scope based on object name. - - Object name. - Generated key. - - - - Injects dependencies into the supplied instance - using the named object definition. - - - The object instance that is to be so configured. - - - The name of the object definition expressing the dependencies that are to - be injected into the supplied instance. - - - - - - Disposes all 'request'-scoped objects at the end of each Request - - - - - Disposes all 'session'-scoped objects at the end of a session - - - - - Convinience accessor for HttpContext - - - - - Get the table of 'request'-scoped objects. - - - - - Get the table of 'session'-scoped objects. Returns null, if Session is disabled. - - - - - Culture resolver that uses cookie to store culture information. - - Aleksandar Seovic - $Id: CookieCultureResolver.cs,v 1.4 2007/08/25 14:26:35 oakinger Exp $ - - - - Resolves the culture from the request. - - - If the culture cookie doesn't exist, this method will return - the value of the 'Accept-Language' request header, or if no - headers are specified, the culture of the current server thread. - - Culture that should be used to render view. - - - - Sets the culture. - - The new culture or null to clear the culture. - - - - Creates cookie for the specified culture. - - Culture to store in a cookie. - Created cookie. - - - - Handles binding of a multiple selection ListControl to a target's IList property. - - - - - Creates a new instance of this binding. - - The expression that will evaluate to the acting as the source - The expression that will evaluate to an property acting as the target - Binding's direction - An optional formatter converting target items into and back - - If no formatter is specified, a will be used. - - - - - Actually performs unbinding the ListControl's selected values into the target's - - - - - Actually performs binding the targetlist to the ListControl. - - - - - Setting source value is not allowed in this bindingType. - - - - - Setting target value is not allowed in this bindingType. - - - - - Represents an .aspx file, also known as a Web Forms page, requested from a - server that hosts an ASP.NET Web application. - - -

- The Page class is associated with files that have an .aspx extension. - These files are compiled at run time as Page objects and cached in server memory. -

-

- This class extends and adds support for master - pages similar to upcoming ASP.Net 2.0 master pages feature. -

-

- It also adds support for automatic localization using local page resource file, and - simplifies access to global resources (resources from the message source for the - application context). -

-
- Aleksandar Seovic - $Id: Page.cs,v 1.89 2008/04/03 04:32:29 markpollack Exp $ -
- - - Initializes Spring.NET page internals and raises the PreInit event. - - The instance containing the event data. - - - - Initializes the culture. - - - - - Initializes data model and controls. - - - - - Raises the event after page initialization. - - - - - Raises the PreLoadViewState event for - this page and all contained controls. - - - - - Recursively raises PreLoadViewState event. - - - - - Overridden to add support for - - - If necessary override instead of this method. - - - - - If ViewState is disabled, calls recursively for all controls. - - - If ViewState is disabled, DropDownLists etc. might not fire "Changed" events. - - - - - Calls recursively for all controls. - - - - - Recursively calls for all controls. - - - - - If necessary override this method instead of - - - - - Initializes dialog result and unbinds data from the controls - into a data model. - - Event arguments. - - - - Binds data from the data model into controls and raises - PreRender event afterwards. - - Event arguments. - - - - Raises InitializeControls event. - - Event arguments. - - - - Obtains a object from a user control file - and injects dependencies according to Spring config file. - - The virtual path to a user control file. - - Returns the specified object, with dependencies injected. - - - - - Obtains a object by type - and injects dependencies according to Spring config file. - - The type of a user control. - parameters to pass to the control - - Returns the specified object, with dependencies injected. - - - - - Initializes data model when the page is first loaded. - - - This method should be overriden by the developer - in order to initialize data model for the page. - - - - - Retrieves data model from a persistence store. - - - The default implementation uses to store and retrieve - the model for the current - - - - - Saves data model to a persistence store. - - - The default implementation uses to store and retrieve - the model for the current - - - - - Loads the saved data model on postback. - - - This method should be overriden by the developer - in order to load data model for the page. - - - - - Returns a model object that should be saved. - - - This method should be overriden by the developer - in order to save data model for the page. - - - A model object that should be saved. - - - - - Stores the controller to be returned by property. - - - The default implementation uses a field to store the reference. Derived classes may override this behaviour - but must ensure to also change the behaviour of accordingly. - - Controller for the page. - - - - Returns the controller stored by . - - - The default implementation uses a field to retrieve the reference. Derived classes may override this behaviour - but must ensure to also change the behaviour of accordingly. - - - The controller for this page. - - If this page is being part of a process, the process' is returned. - If no controller is set, a reference to the page itself is returned. - - - - - - Registers single CSS style with the page. - - Style name. - Style definition. - - - - Returns True if specified style is registered, False otherwise. - - Style name. - True if specified style is registered, False otherwise. - - - - Registers CSS file with the page. - - Style file key. - Style file name. - - - - Returns True if specified style file is registered, False otherwise. - - Style file key. - True if specified style file is registered, False otherwise. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - Script text. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - Script language. - Script text. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - Script language MIME type. - Script text. - - - - Registers script file that should be referenced within the head HTML element. - - Script key. - Script file name. - - - - Registers script file that should be referenced within the head HTML element. - - Script key. - Script language. - Script file name. - - - - Registers script file that should be referenced within the head HTML element. - - Script key. - Script language MIME type. - Script file name. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - Element ID of the event source. - Name of the event to handle. - Script text. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - Script language. - Element ID of the event source. - Name of the event to handle. - Script text. - - - - Registers script block that should be rendered within the head HTML element. - - Script key. - The scripting language's MIME type. - Element ID of the event source. - Name of the event to handle. - Script text. - - - - Returns True if specified head script is registered, False otherwise. - - Script key. - True if specified head script is registered, False otherwise. - - - - Redirects user to a URL mapped to specified result name. - - Result name. - - - - Redirects user to a URL mapped to specified result name. - - Name of the result. - The context to use for evaluating the SpEL expression in the Result. - - - - Returns a redirect url string that points to the - defined by this - result evaluated using this Page for expression - - Name of the result. - A redirect url string. - - - - Returns a redirect url string that points to the - defined by this - result evaluated using this Page for expression - - Name of the result. - The context to use for evaluating the SpEL expression in the Result - A redirect url string. - - - - Evaluates specified validators and returns True if all of them are valid. - - -

- Each validator can itself represent a collection of other validators if it is - an instance of or one of its derived types. -

-

- Please see the Validation Framework section in the documentation for more info. -

-
- Object to validate. - Validators to evaluate. - - True if all of the specified validators are valid, False otherwise. - -
- - - Creates the validator parameters. - - - - This method can be overriden if you want to pass additional parameters - to the validation framework, but you should make sure that you call - this base implementation in order to add page, session, application, - request, response and context to the variables collection. - - - - Dictionary containing parameters that should be passed to - the data validation framework. - - - - - Initializes the data bindings. - - - - - Returns the key to be used for looking up a cached - BindingManager instance in . - - a unique key identifying the instance in the dictionary. - - - - Creates a new instance. - - - This factory method is called if no could be found in - using the key returned by .
-
- -
- a instance to be used for DataBinding -
- - - Initializes binding manager and data bindings if necessary. - - - - - Raises the event. - - - - - Bind data from model to form. - - - - - Unbind data from form to model. - - - - - Raises DataBound event. - - Event arguments. - - - - Raises DataBound event. - - Event arguments. - - - - Initializes local message source - - - - - Creates and returns local ResourceManager for this page. - - - - In ASP.NET 1.1, this method loads local resources from the web application assembly. - - - However, in ASP.NET 2.0, local resources are compiled into a dynamic assembly, - so we need to find that assembly and load the resources from it. - - - Local ResourceManager instance. - - - - Returns message for the specified resource name. - - Resource name. - Message text. - - - - Returns message for the specified resource name. - - Resource name. - Message arguments that will be used to format return value. - Formatted message text. - - - - Returns resource object for the specified resource name. - - Resource name. - Resource object. - - - - Raises UserLocaleChanged event. - - Event arguments. - - - - Creates a key for shared state, taking into account whether - this page belongs to a process or not. - - Key suffix - Generated unique shared state key. - - - - Injects dependencies into control before adding it. - - - - - PreLoadViewState event. - - - - This event is raised if is true - immediately before state is restored from ViewState. - - - NOTE: Different from , this event - will also be raised if the control has no ViewState or ViewState is disabled. - - - - - - This event is raised before Init event and should be used to initialize - controls as necessary. - - - - - Gets or sets the process that this page belongs to. - - - - - Gets or sets controller for the page. - - - - Application pages should shadow this property and change its type - in order to make calls to controller within the page as simple as possible. - - - If external controller is not specified, page will serve as its own controller, - which will allow data binding to work properly. - - - Controller for the page. Defaults to the page itself. - - - - Returns a thread-safe dictionary that contains state that is shared by - all instances of this page. - - - - - Overrides the default PreviousPage property to return an instance of , - and to work properly during server-side transfers and executes. - - - - - Gets the master page that determines the overall look of the page. - - - - - Returns true if page uses master page, false otherwise. - - - - - Gets a dictionary of registered styles. - - Registered styles. - - - - Gets a dictionary of registered style files. - - Registered style files. - - - - Gets a dictionary of registered head scripts. - - Registered head scripts. - - - - Gets or sets the CSS root. - - The CSS root. - - - - Gets or sets the scripts root. - - The scripts root. - - - - Gets or sets the images root. - - The images root. - - - - Gets or sets map of result names to target URLs - - - - - Gets the validation errors container. - - The validation errors container. - - - - Expose BindingManager via IDataBound interface - - - - - Gets the binding manager. - - The binding manager. - - - - This event is raised after as been initialized. - - - - - This event is raised after all controls have been populated with values - from the data model. - - - - - This event is raised after data model has been populated with values from - web controls. - - - - - Gets or sets Spring application context of the page. - - - - - Gets or sets the localizer. - - The localizer. - - - - Gets or sets the culture resolver. - - The culture resolver. - - - - Gets or sets the local message source. - - The local message source. - - - - Gets or sets user's culture - - - - - This event is raised when the value of UserLocale property changes. - - - - - Holds default ApplicationContext instance to be used during DI. - - - - - This MethodBuilder emits a Callback-call before calling the base method - - Erich Eichinger - $Id: SupportsWebDependencyInjectionMethodBuilder.cs,v 1.1 2007/08/01 23:11:01 markpollack Exp $ - - - - Initializes a new instance of a SupportsWebDependencyInjectionMethodBuilder - - - - - Inserts a call to a callback-method before actually calling the base-method. - - The IL generator to use - The method to proxy - The interface definition of this method, if applicable - - - - Emits the callback invocation. - - - - - Helper class for easier access to reflected Control members. - - Erich Eichinger - $Id: ControlAccessor.cs,v 1.2 2008/05/13 14:22:47 oakinger Exp $ - - - - Instantiates a new Accessor. - - - - - - Returns the underlying ControlCollection instance. - - - - - Gets or sets the ControlCollection of the target without accessing the target's property. - - - If the underlying collection is null, it is automatically created. - - - - - Implements by using . - - Erich Eichinger - $Id: HttpContextStorage.cs,v 1.1 2007/02/02 21:31:25 oakinger Exp $ - - - - Retrieves an object with the specified name. - - The name of the item. - The object in the context associated with the specified name or null if no object has been stored previously - - - - Stores a given object and associates it with the specified name. - - The name with which to associate the new item. - The object to store in the call context. - - - - Empties a data slot with the specified name. - - The name of the data slot to empty. - - - - This control should be used instead of standard ValidationSummary control - to display validation errors identified by the Spring.NET validation framework. - - Aleksandar Seovic - Jonathan Allenby - $Id: ValidationSummary.cs,v 1.11 2008/03/19 12:07:14 oakinger Exp $ - - - - Create the default - for this ValidationControl if none is configured. - - - - - Holds the collection of controls in a . - - Erich Eichinger - $Id: TabularViewCollection.cs,v 1.1 2007/07/24 13:33:28 oakinger Exp $ - - - - Initialize a new instance. - - - - - - Add the specified control to the collection. - - - - - Add the specified control to the collection. - - - - - Obtain the specified control from the collection. - - - - - This control is responsible for rendering tabs. - - - By default, this TabContainer implementation uses controls to - render tabs. Override to change this behaviour. - - Erich Eichinger - $Id: TabContainer.cs,v 1.1 2007/07/24 13:33:28 oakinger Exp $ - - - - Represents the command name of the tab to be selected. - - - - - Key into the eventhandler table. - - - - - Catches with name '' and - raises the event. - - The source of the event. - contains event information. - - - - - Raises the event. - - - - - Creates a new tab for the specified view within the given container. - - The containing the view - The for which a new tab is to be created. - The index of the tab to be created. - - By default, controls are used for rendering tabs. Override this method to - change this behaviour. - - - - - Occurs, when a tab control is clicked. - - - - - This control allows for suppressing output of the 'action' attribute. - - - the 'action' attribute rendered by the default control causes troubles - in case of URL-rewriting. See e.g. 'thescripts.com' forum - and also JIRA SPRNET-560 for more info. - - Erich Eichinger - $Id: Form.cs,v 1.1 2007/07/24 14:32:58 oakinger Exp $ - - - - Renders attributes but performs 'action' suppressing logic. - - - - - - Sets or Gets a value indicating if the 'action' attribute shall be rendered. Defaults to 'false' - - - The following possibilites are available: - - If is 'true', rendering of the 'action' attribute is suppressed. - If is 'false' and is not set, - 'action' attribute will.be rendered to - - If is 'false' and is set, - 'action' attribute will.be rendered to - - - - - - - Sets or Gets an explicit url to be rendered - - - The url specified here is only rendered, if is true. - - - - - This wrapper suppresses output of 'action' attributes. - - - - - This is - - - - - Mark Pollack - $Id: WebDependencyInjectionUtils.cs,v 1.3 2008/05/13 14:22:47 oakinger Exp $ - - - - Injects dependencies into all controls in the hierarchy - based on template definitions in the Spring config file. - - ApplicationContext to be used - Control to inject dependencies into. - - - - Aquires an ApplicationContext according to a Control's TemplateSourceDirectory - - if availabe, the control's IApplicationContext instance - defaultContext otherwise - - - - Base class that describes client side script block or file. - - -

- Classes that extend this class are used by Spring.Web client-side - scripting support. -

-
- Aleksandar Seovic - $Id: Script.cs,v 1.4 2007/11/28 23:26:10 oakinger Exp $ -
- - - Initialize a new Script object of the specified language - - Script language. - - - - Initialize a new script object of the specified type - - a - - - - Gets or sets script language. - - - - - Gets or sets script mime type - - - - - Class that describes client side script block. - - -

- Script blocks are used to insert script code directly into the page, - without references to an external file. -

-
- Aleksandar Seovic - $Id: Script.cs,v 1.4 2007/11/28 23:26:10 oakinger Exp $ -
- - - Default constructor. - - Script language. - The script text. - - - - Initialize a new script block instance. - - the script language's - the script body - - - - Gets or sets the script text. - - The script text. - - - - Class that describes client side script file. - - -

- Script file references script code in the external file. -

-
- Aleksandar Seovic - $Id: Script.cs,v 1.4 2007/11/28 23:26:10 oakinger Exp $ -
- - - Initialize a new instance. - - Script language. - The name of the script file. - - - - Initialize a new instance. - - the script language's - the (virtual) path to the script - - - - Gets or sets the name of the script file. - - The name of the script file. - - - - Class that describes client side script file. - - -

- Script file references script code in the external file. -

-
- Aleksandar Seovic - $Id: Script.cs,v 1.4 2007/11/28 23:26:10 oakinger Exp $ -
- - - Initialize a new instance. - - Script language. - Element ID of the event source. - Name of the event to handle. - Script text. - - - - Initialize a new instance. - - the script language's - Element ID of the event source. - Name of the event to handle. - Script text. - - - - Gets or sets the element ID. - - The element ID. - - - - Gets or sets the name of the event. - - The name of the event. - - - - Singleton that keeps track of all active process instances. - - Aleksandar Seovic - $Id: ProcessManager.cs,v 1.2 2006/05/18 21:37:52 markpollack Exp $ - - - - Creates singleton instance. - - - - - Registers process instance. - - Process instance to register. - - - - Returns process with the specified ID. - - Process ID to use for lookup. - Process with the specified ID, or null if process with that ID is not registered. - - - - Unregisters process with the specified ID. - - ID of the process to unregister. - - - - Exports an object as a web service. - - -

- The exporter will create a web service wrapper for the object that is - to be exposed and additionally enable its configuration as a web - service. -

-

- The exported object can be either a standard .NET web service - implementation, with methods marked using the standard - , or it can be a - plain .NET object. -

-
- Aleksandar Seovic - $Id: WebServiceExporter.cs,v 1.33 2008/04/07 11:00:24 bbaia Exp $ -
- - - The name of the object in the factory. - - - - - The owning factory. - - - - - The generated web service wrapper type. - - - - - Creates a new instance of the - class. - - - - - Return an instance (possibly shared or independent) of the object - managed by this factory. - - - - If this method is being called in the context of an enclosing IoC container and - returns , the IoC container will consider this factory - object as not being fully initialized and throw a corresponding (and most - probably fatal) exception. - - - - An instance (possibly shared or independent) of the object managed by - this factory. - - - - - Exports specified object as a web service. - - - In the event of misconfiguration (such as failure to set an essential - property) or if initialization fails. - - - - - Validates the configuration. - - - - - Generates the web service wrapper type. - - - - - Gets or sets the base type that web service should inherit. - - - Default is - - - - - Gets or sets the name of the target object that should be exposed as a web service. - - - The name of the target object that should be exposed as a web service. - - - - - Gets or sets the description of the web service (optional). - - - The web service description. - - - - - Gets or sets the name of the web service (optional). - - -

- Defaults to the value of the exporter's object ID. -

-
- - The web service name. - -
- - - Gets or sets the web service namespace. - - - The web service namespace. - - - - - Gets or sets the list of interfaces whose methods should be exposed as web services. - - - If not set, all the interfaces implemented or inherited - by the target type will be used. - - The interfaces. - - - - Gets or sets a list of custom attributes - that should be applied to a proxy class. - - - - - Gets or sets a dictionary of custom attributes - that should be applied to web service members. - - - Dictionary key is an expression that members can be matched against. - Value is a list of attributes that should be applied - to each member that matches expression. - - - - - Callback that supplies the owning factory to an object instance. - - - Owning - (may not be ). The object can immediately - call methods on the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
- - In case of initialization errors. - -
- - - Return the of object that this - creates, or - if not known in advance. - - - - - Is the object managed by this factory a singleton or a prototype? - - - - - Set the name of the object in the object factory that created this object. - - - The name of the object in the factory. - - -

- Invoked after population of normal object properties but before an init - callback like 's - - method or a custom init-method. -

-
-
- - - Implements constructors for the proxy class. - - - This implementation generates a constructor - that gets instance of the target object using - . - - - The builder to use. - - - - - Implementation of that renders - validation errors within a span element, using breaks between the - errors. - - - This renderer's behavior is consistent with standard ASP.NET behavior of - the control validators, and is used as the default renderer for Spring.NET - control. - - Aleksandar Seovic - $Id: SpanValidationErrorsRenderer.cs,v 1.1 2007/08/02 19:50:28 markpollack Exp $ - - - - Renders validation errors using specified . - - Web form instance. - An HTML writer to use. - The list of validation errors. - - - - Extends standard .Net user control by adding data binding and localization functionality. - - Aleksandar Seovic - $Id: UserControl.cs,v 1.54 2008/04/03 05:31:25 markpollack Exp $ - - - - Initializes user control. - - - - - Raises the event after page initialization. - - - - - This method is called during a postback if this control has been visible when being rendered to the client. - - - If the controls has been visible when being rendering to the client, - has been called during - - true if the server control's state changes as a result of the post back; otherwise false. - - - - This method is called during a postback if this control has been visible when being rendered to the client. - - true if the server control's state changes as a result of the post back; otherwise false. - - - - When implemented by a class, signals the server control object to notify the - ASP.NET application that the state of the control has changed. - - - - - When implemented by a class, signals the server control object to notify the - ASP.NET application that the state of the control has changed. - - - - - First unbinds data from the controls into a data model and - then raises Load event in order to execute all associated handlers. - - Event arguments. - - - - Binds data from the data model into controls and raises - PreRender event afterwards. - - Event arguments. - - - - Raises InitializeControls event. - - Event arguments. - - - - Obtains a object from a user control file - and injects dependencies according to Spring config file. - - The virtual path to a user control file. - - Returns the specified object, with dependencies injected. - - - - - Obtains a object by type - and injects dependencies according to Spring config file. - - The type of a user control. - parameters to pass to the control - - Returns the specified object, with dependencies injected. - - - - - Initializes data model when the page is first loaded. - - - This method should be overriden by the developer - in order to initialize data model for the page. - - - - - Retrieves data model from a persistence store. - - - The default implementation uses to store and retrieve - the model for the current - - - - - Saves data model to a persistence store. - - - The default implementation uses to store and retrieve - the model for the current - - - - - Loads the saved data model on postback. - - - This method should be overriden by the developer - in order to load data model for the page. - - - - - Returns a model object that should be saved. - - - This method should be overriden by the developer - in order to save data model for the page. - - - A model object that should be saved. - - - - - Stores the controller to be returned by property. - - - The default implementation uses a field to store the reference. Derived classes may override this behaviour - but must ensure to also change the behaviour of accordingly. - - Controller for the control. - - - - Returns the controller stored by . - - - - The default implementation uses a field to retrieve the reference. - - - If external controller is not specified, control will serve as its own controller, - which will allow data binding to work properly. - - - You may override this method e.g. to return in order to - have your control bind to the same controller as your page. When overriding this behaviour, derived classes - must ensure to also change the behaviour of accordingly. - - - - The controller for this control. - If no controller is set, a reference to the control itself is returned. - - - - - Redirects user to a URL mapped to specified result name. - - Result name. - - - - Redirects user to a URL mapped to specified result name. - - Result name. - The context to use for evaluating the SpEL expression in the Result. - - - - Evaluates specified validators and returns True if all of them are valid. - - -

- Each validator can itself represent a collection of other validators if it is - an instance of or one of its derived types. -

-

- Please see the Validation Framework section in the documentation for more info. -

-
- Object to validate. - Validators to evaluate. - - True if all of the specified validators are valid, False otherwise. - -
- - - Creates the validator parameters. - - - - This method can be overriden if you want to pass additional parameters - to the validation framework, but you should make sure that you call - this base implementation in order to add page, session, application, - request, response and context to the variables collection. - - - - Dictionary containing parameters that should be passed to - the data validation framework. - - - - - Initializes the data bindings. - - - - - Returns the key to be used for looking up a cached - BindingManager instance in . - - a unique key identifying the instance in the dictionary. - - - - Creates a new instance. - - - This factory method is called if no could be found in - using the key returned by .
-
- -
- a instance to be used for DataBinding -
- - - Initializes binding manager and data bindings if necessary. - - - - - Raises the event. - - - - - Bind data from model to form. - - - - - Unbind data from form to model. - - - - - Raises DataBound event. - - Event arguments. - - - - Raises DataBound event. - - Event arguments. - - - - Initializes local message source - - - - - Creates and returns local ResourceManager for this page. - - - - In ASP.NET 1.1, this method loads local resources from the web application assembly. - - - However, in ASP.NET 2.0, local resources are compiled into the dynamic assembly, - so we need to find that assembly instead and load the resources from it. - - - Local ResourceManager instance. - - - - Returns message for the specified resource name. - - Resource name. - Message text. - - - - Returns message for the specified resource name. - - Resource name. - Message arguments that will be used to format return value. - Formatted message text. - - - - Returns resource object for the specified resource name. - - Resource name. - Resource object. - - - - Creates a key for shared state, taking into account whether - this page belongs to a process or not. - - Key suffix - Generated unique shared state key. - - - - Injects dependencies into control before adding it. - - - - - PreLoadViewState event. - - - - This event is raised if is true - immediately before state is restored from ViewState. - - - NOTE: Different from , this event will always be raised! - - - - - - This event is raised before Load event and should be used to initialize - controls as necessary. - - - - - Gets or sets controller for the control. - - - - Internally calls are delegated to and . - - - Controller for the control. - - - - Returns a thread-safe dictionary that contains state that is shared by - all instances of this control. - - - - - Gets or sets map of result names to target URLs - - - - - Gets the validation errors container. - - The validation errors container. - - - - Gets the binding manager for this control. - - The binding manager. - - - - This event is raised after as been initialized. - - - - - This event is raised after all controls have been populated with values - from the data model. - - - - - This event is raised after data model has been populated with values from - web controls. - - - - - Gets or sets Spring application context of the page. - - - - - Gets or sets the localizer. - - The localizer. - - - - Gets or sets the local message source. - - The local message source. - - - - Gets or sets user's culture - - - - - Overrides Page property to return - instead of . - - - - - Holds the default ApplicationContext to be used during DI. - - - - - Represents a control that acts as a container for a group of controls within a control. - - Erich Eichinger - $Id: TabularView.cs,v 1.2 2007/07/24 14:32:58 oakinger Exp $ - - - - Indicates if this view is currently active. - - - - - Get or Set the name of the tab item associated with this view. - - - - - Get or Set the tooltip text of the tab item associated with this view. - - - - - Adds the property to the framework's control. - - - When using Spring.Web's DataBinding, you should use this control for easier binding declaration. - - Erich Eichinger - $Id: CheckBoxList.cs,v 1.2 2007/12/14 16:38:44 oakinger Exp $ - - - - Gets or Sets the list of selected values and checks the es accordingly - - - - - Convinience implementation of the wizard-like page controller. - - -

- Wizard steps are encapsulated within custom user controls. Wizard - controller takes care of navigation through steps and loading of the - appropriate user control. -

-

- Developer implementing wizard needs to inherit from this class and implement - abstract, read-only StepPanel property that will be used as a container - for the wizard steps. Navigation event handlers should call Previous and Next methods - from this class to change current step. -

-
- Aleksandar Seovic - $Id: AbstractWizard.cs,v 1.7 2006/05/18 21:37:52 markpollack Exp $ -
- - - Moves to the previous step in the list, if one exists. - - - - - Moves to the next step in the list, if one exists. - - - - - Initializes wizard steps. - - Event arguments. - - - - - - - - - - Loads new step into a step panel if step has changed. - - Event arguments. - - - - Initializes all the steps. - - List of step control names. - List of step control instances. - - - - Loads step control. - - - - - Gets or sets a list of user controls representing wizard steps. - - - - - Gets or sets current step using step index. - - - - - Returns true if there are no steps before the current step. - - - - - Returns true if there are no steps after the current step. - - - - - Panel that should serve as a container for wizard steps. - - - - - Represents the ASPX result page that an operation maps to. - - -

- Parameters can reference variables accessible from the page using the - standard NAnt style property notation, namely ${varName}. -

-

- The result that is passed as the sole - parameter to the parameterized constructor - () must adhere to the - following format: -

- - [<mode>:]<targetPage>[?param1,param2,...,paramN] - -

- Only the targetPage is mandatory. -

-
- -

- Examples of valid values that can be passed - to the the parameterized constructor - () include: -

-

- - Login.aspx - ~/Login.aspx - redirect:~/Login.aspx - transfer:~/Login.aspx - transfer:Services/Register.aspx - Login.aspx?username=springboy,password=7623AAjoe - redirect:Login.aspx?username=springboy,password=7623AAjoe - -

-
- Aleksandar Seovic - Matan Shapira - $Id: Result.cs,v 1.13 2008/02/02 09:12:44 oakinger Exp $ -
- - - The default . - - -

- Currently defaults to . -

-
- -
- - - Creates a new instance of the class. - - - - - Creates a new instance of the class. - - -

- See both the class documentation () - and the reference documentation for the Spring.Web library for a - discussion and examples of what values the supplied - can have. -

-
- The result descriptor. - - If the supplied is or - contains only whitespace character(s). - -
- - - Navigates to the - defined by this result. - - - The context object for parameter resolution. This is typically - a . - - - - - Performs a server-side transfer to the - defined by this result. - - - The context object for parameter resolution. This is typically - a . - - - - - - Resolves transfer parameters and stores them into instance. - - - - - - - Performs a redirect to the - defined by this - result. - - - The context object for parameter resolution. This is typically - a . - - - - - - Returns a redirect url string that points to the - defined by this - result. - - - A redirect url string. - - - - - Extracts and sets this instance's - property from the supplied descriptor. - - -

- The supplied descriptor is typically - something like /Foo.aspx or - redirect:http://www.springframework.net/. -

-
- - The result descriptor. - - - The supplied without the result mode - prefix (if any). - - - If the supplied starts with an illegal - result mode (see ). - -
- - - Parses query parameters from the supplied . - - - The query string (may be ). - - - - - The . Defines which - method will be used to navigate to the - . - - - - - The target page. - - -

- This is the (relative) path to the target page. -

-
- -

- Examples of valid values would be: -

-

- - Login.aspx - ~/Login.aspx - ~/B2B/SignUp.aspx - B2B/Foo/FooServices.aspx - -

-
-
- - - The parameters thar are to be passed to the - upon - navigation. - - - - - Indicates, if should be called with preserverForm='true' | 'false'. Only relevant for ResultMode.TransferXXXX modes. - - - - - Wrapper for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Reference to wrapped provider (defined in Spring context). - - - - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute may be used to override the name being used for looking up an object definition. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Gets a value indicating whether the specified user is in the specified role for the configured applicationName. - - - - true if the specified user is in the specified role for the configured applicationName; otherwise, false. - - - The user name to search for. - The role to search in. - - - - Gets a list of the roles that a specified user is in for the configured applicationName. - - - - A string array containing the names of all the roles that the specified user is in for the configured applicationName. - - - The user to return a list of roles for. - - - - Adds a new role to the data source for the configured applicationName. - - - The name of the role to create. - - - - Removes a role from the data source for the configured applicationName. - - - - true if the role was successfully deleted; otherwise, false. - - - If true, throw an exception if roleName has one or more members and do not delete roleName. - The name of the role to delete. - - - - Gets a value indicating whether the specified role name already exists in the role data source for the configured applicationName. - - - - true if the role name already exists in the data source for the configured applicationName; otherwise, false. - - - The name of the role to search for in the data source. - - - - Adds the specified user names to the specified roles for the configured applicationName. - - - A string array of the role names to add the specified user names to. - A string array of user names to be added to the specified roles. - - - - Removes the specified user names from the specified roles for the configured applicationName. - - - A string array of role names to remove the specified user names from. - A string array of user names to be removed from the specified roles. - - - - Gets a list of users in the specified role for the configured applicationName. - - - - A string array containing the names of all the users who are members of the specified role for the configured applicationName. - - - The name of the role to get the list of users for. - - - - Gets a list of all the roles for the configured applicationName. - - - - A string array containing the names of all the roles stored in the data source for the configured applicationName. - - - - - - Gets an array of user names in a role where the user name contains the specified user name to match. - - - - A string array containing the names of all the users where the user name matches usernameToMatch and the user is a member of the specified role. - - - The user name to search for. - The role to search in. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - Gets or sets the name of the application to store and retrieve role information for. - - - - The name of the application to store and retrieve role information for. - - - - - - Wrapper for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic -
- - - Reference to wrapped provider (defined in Spring context). - - - - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute may be used to override the name being used for looking up an object definition. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Returns the collection of settings property values for the specified application instance and settings property group. - - - - A containing the values for the specified settings property group. - - - A describing the current application use. - A containing the settings property group whose values are to be retrieved.2 - - - - Sets the values of the specified group of property settings. - - - A describing the current application usage. - A representing the group of property settings to set.2 - - - - When overridden in a derived class, deletes profile properties and information for the supplied list of profiles. - - - - The number of profiles deleted from the data source. - - - A of information about profiles that are to be deleted. - - - - When overridden in a derived class, deletes profile properties and information for profiles that match the supplied list of user names. - - - - The number of profiles deleted from the data source. - - - A string array of user names for profiles to be deleted. - - - - When overridden in a derived class, deletes all user-profile data for profiles in which the last activity date occurred before the specified date. - - - - The number of profiles deleted from the data source. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are deleted. - A that identifies which user profiles are considered inactive. If the value of a user profile occurs on or before this date and time, the profile is considered inactive. - - - - When overridden in a derived class, returns the number of profiles in which the last activity date occurred on or before the specified date. - - - - The number of profiles in which the last activity date occurred on or before the specified date. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the of a user profile occurs on or before this date and time, the profile is considered inactive. - - - - When overridden in a derived class, retrieves user profile data for all profiles in the data source. - - - - A containing user-profile information for all profiles in the data source. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves user-profile data from the data source for profiles in which the last activity date occurred on or before the specified date. - - - - A containing user-profile information about the inactive profiles. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the of a user profile occurs on or before this date and time, the profile is considered inactive. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves profile information for profiles in which the user name matches the specified user names. - - - - A containing user-profile information for profiles where the user name matches the supplied usernameToMatch parameter. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The user name to search for. - The size of the page of results to return. - - - - When overridden in a derived class, retrieves profile information for profiles in which the last activity date occurred on or before the specified date and the user name matches the specified user name. - - - - A containing user profile information for inactive profiles where the user name matches the supplied usernameToMatch parameter. - - - One of the values, specifying whether anonymous, authenticated, or both types of profiles are returned. - A that identifies which user profiles are considered inactive. If the value of a user profile occurs on or before this date and time, the profile is considered inactive. - When this method returns, contains the total number of profiles. - The index of the page of results to return. - The user name to search for. - The size of the page of results to return. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - Gets or sets the name of the currently running application. - - - - A that contains the application's shortened name, which does not contain a full path or extension, for example, SimpleAppSettings. - - 2 - - - - Wrapper for class. - - -

- Configuration for this provider requires providerId element set in web.config file, - as the Id of wrapped provider (defined in the Spring context). -

-
- Damjan Tomic - $Id: MembershipProviderAdapter.cs,v 1.1 2007/07/26 14:43:56 oakinger Exp $ -
- - - Reference to wrapped provider (defined in Spring context). - - - - - Initializes the provider. - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - The providerId attribute may be used to override the name being used for looking up an object definition. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - Adds a new membership user to the data source. - - - - A object populated with the information for the newly created user. - - - Whether or not the new user is approved to be validated. - The password answer for the new user - The user name for the new user. - The unique identifier from the membership data source for the user. - The password for the new user. - The password question for the new user. - The e-mail address for the new user. - A enumeration value indicating whether the user was created successfully. - - - - Processes a request to update the password question and answer for a membership user. - - - - true if the password question and answer are updated successfully; otherwise, false. - - - The new password question for the specified user. - The new password answer for the specified user. - The user to change the password question and answer for. - The password for the specified user. - - - - Gets the password for the specified user name from the data source. - - - - The password for the specified user name. - - - The user to retrieve the password for. - The password answer for the user. - - - - Processes a request to update the password for a membership user. - - - - true if the password was updated successfully; otherwise, false. - - - The new password for the specified user. - The current password for the specified user. - The user to update the password for. - - - - Resets a user's password to a new, automatically generated password. - - - - The new password for the specified user. - - - The user to reset the password for. - The password answer for the specified user. - - - - Updates information about a user in the data source. - - - A object that represents the user to update and the updated information for the user. - - - - Verifies that the specified user name and password exist in the data source. - - - - true if the specified username and password are valid; otherwise, false. - - - The name of the user to validate. - The password for the specified user. - - - - Clears a lock so that the membership user can be validated. - - - - true if the membership user was successfully unlocked; otherwise, false. - - - The membership user to clear the lock status for. - - - - Gets information from the data source for a user based on the unique identifier for the membership user. Provides an option to update the last-activity date/time stamp for the user. - - - - A object populated with the specified user's information from the data source. - - - The unique identifier for the membership user to get information for. - true to update the last-activity date/time stamp for the user; false to return user information without updating the last-activity date/time stamp for the user. - - - - Gets information from the data source for a user. Provides an option to update the last-activity date/time stamp for the user. - - - - A object populated with the specified user's information from the data source. - - - The name of the user to get information for. - true to update the last-activity date/time stamp for the user; false to return user information without updating the last-activity date/time stamp for the user. - - - - Gets the user name associated with the specified e-mail address. - - - - The user name associated with the specified e-mail address. If no match is found, return null. - - - The e-mail address to search for. - - - - Removes a user from the membership data source. - - - - true if the user was successfully deleted; otherwise, false. - - - The name of the user to delete. - true to delete data related to the user from the database; false to leave data related to the user in the database. - - - - Gets a collection of all the users in the data source in pages of data. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The size of the page of results to return. - - - - Gets the number of users currently accessing the application. - - - - The number of users currently accessing the application. - - - - - - Gets a collection of membership users where the user name contains the specified user name to match. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The user name to search for. - The size of the page of results to return. - - - - Gets a collection of membership users where the e-mail address contains the specified e-mail address to match. - - - - A collection that contains a page of pageSize objects beginning at the page specified by pageIndex. - - - The total number of matched users. - The index of the page of results to return. pageIndex is zero-based. - The e-mail address to search for. - The size of the page of results to return. - - - - Gets the friendly name used to refer to the provider during configuration. - - - - The friendly name used to refer to the provider during configuration. - - - - - - Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). - - - - A brief, friendly description suitable for display in administrative tools or other UIs. - - - - - - Indicates whether the membership provider is configured to allow users to retrieve their passwords. - - - - true if the membership provider is configured to support password retrieval; otherwise, false. The default is false. - - - - - - Indicates whether the membership provider is configured to allow users to reset their passwords. - - - - true if the membership provider supports password reset; otherwise, false. The default is true. - - - - - - Gets a value indicating whether the membership provider is configured to require the user to answer a password question for password reset and retrieval. - - - - true if a password answer is required for password reset and retrieval; otherwise, false. The default is true. - - - - - - The name of the application using the custom membership provider. - - - - The name of the application using the custom membership provider. - - - - - - Gets the number of invalid password or password-answer attempts allowed before the membership user is locked out. - - - - The number of invalid password or password-answer attempts allowed before the membership user is locked out. - - - - - - Gets the number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out. - - - - The number of minutes in which a maximum number of invalid password or password-answer attempts are allowed before the membership user is locked out. - - - - - - Gets a value indicating whether the membership provider is configured to require a unique e-mail address for each user name. - - - - true if the membership provider requires a unique e-mail address; otherwise, false. The default is true. - - - - - - Gets a value indicating the format for storing passwords in the membership data store. - - - - One of the values indicating the format for storing passwords in the data store. - - - - - - Gets the minimum length required for a password. - - - - The minimum length required for a password. - - - - - - Gets the minimum number of special characters that must be present in a valid password. - - - - The minimum number of special characters that must be present in a valid password. - - - - - - Gets the regular expression used to evaluate a password. - - - - A regular expression used to evaluate a password. - - - - - - Provides platform independent access to HttpRuntime methods - - - For e.g. testing purposes, the default environment implementation may be replaced using . - - Erich Eichinger - $Id: VirtualEnvironment.cs,v 1.5 2008/03/14 12:02:45 oakinger Exp $ - - - - Replaces the current enviroment implementation. - - the new environment implementation to be used - the previously set environment instance - - - - Maps a virtual path to it's physical location - - - - - Receives EndRequest-event from an instance - and dispatches it to all handlers registered with this module. - - the HttpApplication instance sending this event - always - - - - Receives the EndSession-event and dispatches it to all handlers - registered with this module. - - - - - Signals, that VirtualEnvironment is ready to accept - handler registrations for EndRequest and EndSession events - - - - - Ensures, that WebSupportModule has been initialized. Otherwise an exception is thrown. - - - - - The virtual (rooted) path of the current Application containing a leading '/' as well as a trailing '/' - - - - - The virtual (rooted) path of the current Request including - - - - - The virtual (rooted) path of the current Request without trailing - - - - - The virtual (rooted) path of the currently executing script - - - - - Register with this event to receive any EndRequest event occuring in the current AppDomain. - - - - - Register with this event to receive any EndSession event occuring in the current AppDomain - - - This event may be raised asynchronously on it's own thread. - Don't rely on e.g. being available. - - - - - Is this VirtualEnviroment ready to accept handler registrations - for EndRequest and EndSession events ? - - - - - Represents a method that handles Request related events - - - - - Represents a method that handles Session related events - - - - - Implementation for running within HttpRuntime - - - - - Culture resolver that uses HTTP session to store culture information. - - Aleksandar Seovic - $Id: SessionCultureResolver.cs,v 1.3 2007/08/25 14:26:35 oakinger Exp $ - - - - Resolves the culture from the request. - - - If culture information doesn't exist in the session, it will be created and its value will - be set to the value of the 'Accept-Language' request header, or if no - headers are specified to the culture of the current server thread. - - Culture that should be used to render view. - - - - Sets the culture. - - The new culture or null to clear the culture. - - - - Gets/Sets the current session's culture. - - - - - Resource cache implementation that uses ASP.NET to cache resources. - - Aleksandar Seovic - $Id: AspNetResourceCache.cs,v 1.6 2007/08/03 06:08:59 oakinger Exp $ - - - - Gets the list of resources from cache. - - Cache key to use for lookup. - A list of cached resources for the specified target object and culture. - - - - Puts the list of resources in the cache. - - Cache key to use for the specified resources. - A list of resources to cache. - - - - A spring-configurable version of - - Erich Eichinger - $Id: ConfigurableXmlSiteMapProvider.cs,v 1.1 2007/07/26 14:43:56 oakinger Exp $ - - - - Initializes the provider. - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - Values may be overridden by specifying them in list. - - The friendly name of the provider. - The or is null. - An attempt is made to call on a provider after the provider has already been initialized. - The has a length of zero or providerId attribute is not set. - - - - The XML file to be used for reading in the sitemap - - - - - A collection of the name/value pairs representing the provider-specific - attributes specified in the configuration for this provider. - - - - - A custom implementation of the - - interface that properly handles web application specific attributes, - such as object scope. - - -

- Parses object definitions according to the standard Spring.NET schema. -

-
- Aleksandar Seovic - $Id: WebObjectsNamespaceParser.cs,v 1.1 2007/08/07 23:22:30 markpollack Exp $ - -
- - - Creates a new instance of the - class. - - - - - Parses an object definition and set various web related properties - if the definition is an . - - The object definition element. - The id / name of the object definition. - the parser helper - The object (definition). - -

- The 'various web related properties' currently includes the - intended scope of the object. -

-
- - -
- - - Calculates an id for an object definition. - - - The element containing the object definition. - - - The list of names defined for the object; may be - or even empty. - - - A calculated object definition id. - - . - - - - Gets the scope out of the supplied . - - -

- If the supplied is invalid - (i.e. it does not resolve to one of the - values), - then the return value of this method call will be - ; - no exception will be raised (although the value of the invalid - scope will be logged). -

-
- The string containing the scope name. - The scope. - -
- - - Spring.NET Master Page implementation for ASP.NET 2.0 - - Aleksandar Seovic - $Id: MasterPage.cs,v 1.15 2008/04/22 15:08:59 markpollack Exp $ - - - - Initializes user control. - - - - - Binds data from the data model into controls and raises - PreRender event afterwards. - - Event arguments. - - - - Raises InitializeControls event. - - Event arguments. - - - - Obtains a object from a user control file - and injects dependencies according to Spring config file. - - The virtual path to a user control file. - - Returns the specified object, with dependencies injected. - - - - - Obtains a object by type - and injects dependencies according to Spring config file. - - The type of a user control. - parameters to pass to the control - - Returns the specified object, with dependencies injected. - - - - - Raises DataBound event. - - Event arguments. - - - - Raises DataBound event. - - Event arguments. - - - - Initializes local message source - - - - - Creates and returns local ResourceManager for this page. - - - - In ASP.NET 1.1, this method loads local resources from the web application assembly. - - - However, in ASP.NET 2.0, local resources are compiled into the dynamic assembly, - so we need to find that assembly instead and load the resources from it. - - - Local ResourceManager instance. - - - - Returns message for the specified resource name. - - Resource name. - Message text. - - - - Returns message for the specified resource name. - - Resource name. - Message arguments that will be used to format return value. - Formatted message text. - - - - Returns resource object for the specified resource name. - - Resource name. - Resource object. - - - - Evaluates specified validators and returns True if all of them are valid. - - -

- Each validator can itself represent a collection of other validators if it is - an instance of or one of its derived types. -

-

- Please see the Validation Framework section in the documentation for more info. -

-
- Object to validate. - Validators to evaluate. - - True if all of the specified validators are valid, False otherwise. - -
- - - Creates the validator parameters. - - - - This method can be overriden if you want to pass additional parameters - to the validation framework, but you should make sure that you call - this base implementation in order to add page, session, application, - request, response and context to the variables collection. - - - - Dictionary containing parameters that should be passed to - the data validation framework. - - - - - Injects dependencies before adding the control. - - - - - This event is raised before Load event and should be used to initialize - controls as necessary. - - - - - This event is raised after all controls have been populated with values - from the data model. - - - - - This event is raised after data model has been populated with values from - web controls. - - - - - Gets or sets Spring application context. - - - - - Gets or sets the localizer. - - The localizer. - - - - Gets or sets the local message source. - - The local message source. - - - - Gets or sets user's culture - - - - - Gets the validation errors container. - - The validation errors container. - - - - Overrides Page property to return - instead of . - - - - - Holds the default ApplicationContext to be used during DI. - - - - - Groups radio button controls and returns the value of the selected control - - - This control alows radio buttons to be data-bound to a data model of the page. - - Aleksandar Seovic - $Id: RadioButtonGroup.cs,v 1.5 2007/03/16 22:38:55 oakinger Exp $ - - - - Overloaded to track addition of contained controls. - - - - - Overloaded to track removal of a RadioButton - - - - - - Registers the RadioButtonGroup for PostBack. - - - - - Renders only children of this control. - - HtmlTextWriter to use for rendering. - - - - Loads postback data into the control. - - Key that should be used to retrieve data. - Postback data collection. - True if data has changed, false otherwise. - - - - Raises SelectionChanged event. - - - - - Method that is called on postback if selected radio button has changed. - - Empty event argument. - - - - Gets or sets the ID of the selected radio button. - - ID of the selected radio button. - - - - Gets or sets whether form should be posted back on every selection change - within the radio group. - - - - - Occurs when the value of the radio button group changes between postbacks to the server. - - - - - Object instantiation strategy for use in - . - - -

- This strategy checks if objects id ASP.Net page and if it is uses - PageParser to compile and instantiate page instance. Otherwise it - delagates call to its parent. -

-
- Aleksandar Seovic - $Id: WebInstantiationStrategy.cs,v 1.4 2008/05/02 16:44:50 markpollack Exp $ -
- - - Creates a new instance of the - class. - - - - - Instantiate an instance of the object described by the supplied - from the supplied . - - - The definition of the object that is to be instantiated. - - - The name associated with the object definition. The name can be the null - or zero length string if we're autowiring an object that doesn't belong - to the supplied . - - - The owning - - - An instance of the object described by the supplied - from the supplied . - - - - - Resource cache implementation that uses Spring.NET page/handler state to cache resources. - - Aleksandar Seovic - $Id: SharedStateResourceCache.cs,v 1.1 2007/08/03 08:31:25 oakinger Exp $ - - - - Gets the list of resources from cache. - - Cache key to use for lookup. - A list of cached resources for the specified target object and culture. - - - - Puts the list of resources in the cache. - - Cache key to use for the specified resources. - A list of resources to cache. - - - - Implementation of that - displays an error image to let user know there is an error, and - tooltip to display actual error messages. - - - - This renderer's behavior is similar to Windows Forms error provider. - - - Aleksandar Seovic - $Id: IconValidationErrorsRenderer.cs,v 1.1 2007/08/02 19:50:28 markpollack Exp $ - - - - Renders validation errors using specified . - - Web form instance. - An HTML writer to use. - The list of validation errors. - - - - Gets or sets the name of the image file to use as an error icon. - - - - Image name should be relative to the value of the - property, and should not use leading path separator. - - - The name of the image file to use as an error icon. - - - - This control should be used instead of standard HTML head tag - in order to render dynamicaly registered head scripts and stylesheets. - - - If you need to use ASP.NETs built-in <head> tag, you should nest Spring's within ASP.NET's: - - <html> - <head> - <title>Some Title</title> - <spring:head> - <-- will render styleblocks etc. here --> - </spring:head> - </head> - </html> - - - Aleksandar Seovic - $Id: Head.cs,v 1.8 2007/11/28 23:26:19 oakinger Exp $ - - - - Sends server control content to a provided object, which writes the content to - be rendered on - the client. - - The object that receives the server control content. - - - - Gets or sets the default mimetype for the <style> element's 'type' attribute - - - Defaults to "text/css" - - - - - Gets a reference to the instance that contains the - server control. - - - - - - Any WebControl placed on a DataBindingPanel may be bound - to a model by adding an attribute "BindingTarget" - - Erich Eichinger - $Id: DataBindingPanel.cs,v 1.13 2008/03/06 20:23:44 oakinger Exp $ - - - - Registers this control for the event of it's container. - - - - - Overridden to remove custom binding attributes before rendering. - - - - - - Overriden to suppress rendering this control's tag - - - - - - Called by the containing if bindings must be initialized. - - - - - Adds all controls on this panel to the containing 's binding collection. - - the usercontrol containing this panel - the of controls to be bound - action to be performed on matching controls - - - - Retrieves custom binding attributes from a webcontrol and adds a new binding - instance to the container's if necessary. - - - - - Removes custom binding attributes from a webcontrol to avoid them being rendered. - - - - - Probe for bindingType of know controls - - the control, who's bindingType is to be determined - null, if standard binding is to be used or the fully qualified typename of the binding implementation - - - - Probes for a few know controls and their properties. - - - The 'BindingSource' expression to be used for binding this control. - - - - - Support Class providing a method to ensure a control has been intercepted - - Erich Eichinger - $Id: ControlInterceptor.cs,v 1.2 2008/05/13 14:22:47 oakinger Exp $ - - - - Holds all available interception strategies - - - - - Holds a control.GetType()->IInterceptionStrategy table. - - - - - Ensures, a control has been intercepted to support Web-DI. If not, the control will be intercepted. - - -
-