Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ProxyFactory Members

ProxyFactory overview

Public Static (Shared) Methods

GetProxyOverloaded. Creates a new proxy for the supplied proxyInterface and interceptor.

Public Instance Constructors

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

Public Instance Properties

AdvisorChainFactory (inherited from AdvisedSupport) Gets and sets the IAdvisorChainFactory implementation that will be used to get the interceptor chains for the advised Target.
Advisors (inherited from AdvisedSupport) Returns the collection of IAdvisor instances that have been applied to this proxy.
AopProxyFactory (inherited from ProxyConfig) Gets and set the factory to be used to create AOP proxies.
AutoDetectInterfaces (inherited from AdvisedSupport) If no explicit interfaces are specified, interfaces will be automatically determined from the target type on proxy creation. Defaults to true
ExposeProxy (inherited from ProxyConfig) Should proxies obtained from this configuration expose the AOP proxy to the AopContext class?
InterfaceMap (inherited from AdvisedSupport) Returns the mapping of the proxied interface Types to their delegates.
Interfaces (inherited from AdvisedSupport) Returns the collection of interface Types to be (or that are being) proxied by this proxy.
Introductions (inherited from AdvisedSupport) Returns the collection of IIntroductionAdvisor instances that have been applied to this proxy.
IsFrozen (inherited from ProxyConfig) Is this configuration frozen?
IsSerializable (inherited from AdvisedSupport) Returns a boolean specifying if this IAdvised instance can be serialized.
Optimize (inherited from ProxyConfig) Are any agressive optimizations to be performed?
ProxyTargetAttributes (inherited from ProxyConfig) 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 Type?
ProxyTargetType (inherited from ProxyConfig) Is the target Type to be proxied in addition to any interfaces declared on the proxied Type?
SyncRoot (inherited from ProxyConfig) Use to synchronize access to this ProxyConfig instance
Target (inherited from AdvisedSupport) Sets the target object that is to be advised.
TargetSource (inherited from AdvisedSupport) Returns the current ITargetSource used by this IAdvised object.
TargetType (inherited from AdvisedSupport) Gets the target type behind the implementing object. Ttypically a proxy configuration or an actual proxy.

Public Instance Methods

AddAdvice (inherited from AdvisedSupport)Overloaded. Adds the supplied advice to the end (or tail) of the advice (interceptor) chain.
AddAdvisor (inherited from AdvisedSupport)Overloaded. Adds the supplied advisor to the list of Advisors.
AddAdvisors (inherited from AdvisedSupport) Adds the advisors from the supplied advisors to the list of Advisors.
AddInterface (inherited from AdvisedSupport) Adds a new interface to the list of interfaces that are proxied by this proxy.
AddIntroduction (inherited from AdvisedSupport)Overloaded. Adds the supplied introductionAdvisor to the list of Introductions.
AddListener (inherited from AdvisedSupport) Registers the supplied listener as a listener for AdvisedSupport notifications.
AdviceIncluded (inherited from AdvisedSupport) Is the supplied advice included in any advisor?
CopyFrom (inherited from ProxyConfig) Copies the configuration from the supplied otherConfiguration into this instance.
CountAdviceOfType (inherited from AdvisedSupport) Returns a count of all of the IAdvice type-compatible with the supplied Type.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetProxyOverloaded. Creates a new proxy according to the settings in this factory.
GetType (inherited from Object)Gets the Type of the current instance.
IndexOf (inherited from AdvisedSupport)Overloaded. Return the index (0 based) of the supplied IAdvisor in the interceptor (advice) chain for this proxy.
IsInterfaceProxied (inherited from AdvisedSupport) Is the supplied intf (interface) Type proxied?
RemoveAdvice (inherited from AdvisedSupport) Removes the supplied advice from the list of Advisors.
RemoveAdvisor (inherited from AdvisedSupport)Overloaded. Removes the supplied advisor the list of advisors for this proxy.
RemoveInterface (inherited from AdvisedSupport) Removes the supplied (proxied) intf.
RemoveIntroduction (inherited from AdvisedSupport)Overloaded. Removes the supplied introduction from the list of Introductions.
RemoveListener (inherited from AdvisedSupport) Removes the supplied listener.
ReplaceAdvisor (inherited from AdvisedSupport) Replaces the oldAdvisor with the newAdvisor.
ReplaceIntroduction (inherited from AdvisedSupport) Replaces the IIntroductionAdvisor that exists at the supplied index in the list of Introductions with the supplied introduction.
ToProxyConfigString (inherited from AdvisedSupport) As ToString will normally be passed straight through to the advised target, this method returns the ToString equivalent for the AOP proxy itself.
ToString (inherited from AdvisedSupport) A String that represents the current ProxyConfig configuration.

Protected Instance Fields

m_targetSource (inherited from AdvisedSupport) The ITargetSource for this instance.

Protected Instance Properties

IsActive (inherited from AdvisedSupport) Called by subclasses to get a value indicating whether any AOP proxies have been created yet.

Protected Instance Methods

Activate (inherited from AdvisedSupport) Activates this instance.
AddInterfaceInternal (inherited from AdvisedSupport) Adds a new interface to the list of interfaces that are proxied by this proxy.
AdviceChanged (inherited from AdvisedSupport) Callback method that is invoked when the interceptor list has changed.
CopyConfigurationFrom (inherited from AdvisedSupport)Overloaded. Copies the configuration from the supplied other AdvisedSupport into this instance.
CreateAopProxy (inherited from AdvisedSupport) Creates an AOP proxy using this instance's configuration data.
Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
InterfacesChanged (inherited from AdvisedSupport) Callback method that is invoked when the list of proxied interfaces has changed.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
SetInterfacesInternal (inherited from AdvisedSupport) Set interfaces to be proxied, bypassing locking and IsFrozen
ToProxyConfigStringInternal (inherited from AdvisedSupport) Returns textual information about this configuration object

See Also

ProxyFactory Class | Spring.Aop.Framework Namespace