Silverlight version of Windsor container does not provide XmlInterpreter() for reading bindings from config file. Could someone suggest how can I implement my own interpreter?
The online document suggest reading a configuration file, creating an instance of IConfiguration and registering them into IConfigurationStore.
How and where can I do this?
This feature is not available in Silverlight version of Windsor because Silverlight lacks System.Xml API that Windsor uses.
There's a ticket for that in Castle's Issue tracker along with patch (I'm afraid outdated) for implementing this feature using LINQ to Xml.
This can give you some ideas. If you want to update it and make it pass all the tests, and perform well we can include it in the upcoming release of Windsor (2.5).
Related
I want to modularize a monolithic application by using Java modules (introduced by Project Jigsaw).
Unfortunately I'm currently stuck to use Java 8. I would like to build those modules (jar files) anyway, but without the feature of using a module-info.java file for declaring the dependencies and the exported API.
Some weeks ago I stumbled upon an API/framework which allows to define nearly the same things that you can do in a module-info.java file. It could be used in JUnit tests in order to enforce module's not to use the internal's of another module and that module's only can access modules they explicitly depend on.
Of course you do not have any assistence from the compiler or the IDE, but you can enforce the access by JUnit. Unfortunately I do not find the project which provides the API any more.
Can anyone help?
Btw. if there is another good approach beside a unit test, please let me know, too!
https://www.archunit.org/ is what I have been looking for.
I'm just reading up about the inbuilt IoC of MVVM Cross and how it makes heavy use of reflection. Just wondering, does this cause issues with Xamarin linking? What are people finding best practise in this area? Using "Link SDK assemblies only" or perhaps configuring IoC in a way that avoids reflection?
Thanks in advance :-)
Both MvvmCross IoC and MvvmCross binding rely on Reflection.
Because of this, users often use "Link SDK assemblies only" and often use "LinkerPleaseIgnore" files.
You can read more about this on:
https://stackoverflow.com/questions/10224376/mvvmcross-experiences-hindsight-limitations/10225623#10225623
Problems with mvvmcross Binding on IOS (Works on Simulator, but some properties doesn't work on the Device)
... and many more https://stackoverflow.com/search?q=[mvvmcross]+linker
The MvvmCross nuget packages ship with default "LinkerPleaseIgnore" files - e.g. https://github.com/MvvmCross/MvvmCross/blob/v3.1/nuspec/TouchContent/LinkerPleaseInclude.cs.pp
I want to use Mvvmcross to make application for several platforms.
I use Profile 104 for PCL library like Mvvmcross, but this profile target .NET 4.5.
I want to target .NET 4.0 to use my application on Windows XP.
To do that, I add the xml files
MonoAndroid, Version = v1.6 +. Xml
and
VSMonoTouch, Version = v1.0 +. Xml
in the profile 143 which allows me to target. NET framework 4.0.3.
However, I have a compilation error because it can not find the ICommand interface.
This interface is not in the same library between version 4.0 and 4.5, is it why it doesn't work ?
Or should I recompile all Mvvmcross libraries with profile 143?
thanks,
This is a Portable Class Library limitation.
See the table on: http://msdn.microsoft.com/en-us/library/gg597391.aspx
Model-View-View Model (MVVM)
Only 4.5
This means that if anyone wants to use MvvmCross on earlier .Net platforms then someone has to build and maintain a non-PCL version.
Since the maintainer of Mvx (me!) has decided to only maintain PCL versions of MvvmCross, then any non-PCL support will have to be created by the community.
For WPF this shouldn't be too large or difficult a job - but it might be...
Alternatively, somebody might be able to do something funky to get the ICommand working... I've retagged this question with portable-class-library to try to lure in some of the MS experts.
I am registering components using Castle Windsor and the
Classes.FromAssemblyInDirectory
directive to load all the implementations of a service in a given directory. This works great. One of the features I'd like to add is to dynamically drop-in new assemblies to a running process (the process is a Windows Service.)
Now, my first thought is just to add a FileSystemWatcher and manually remove / register services whenever the files in the directory change. Which is fine, and I'm sure would work.
But before I wrote anything, it occurred to me that Windsor might have something like this already built-in. Which would be neat and save me some coding.
Googling didn't turn up anything obvious, but, well, I'm new to Windsor and do not perhaps know all the correct terminology.
Is anyone aware if this functionality exists?
No, this is not the kind of functionality that Windsor supports. It's not something IoC container is meant to do.
I probably suck as Googling stuff, but I couldn't find any link that mentioned whether its possible to integrate Spring.net with Oracle's coherance product.
Does anyone know if Spring.net has wrapper libraries for the same ?
Thanks in advance.
The spring integration project for .net is still listed as a spring.net extension project, it's status is "incubator" and it hasn't had any commits since March 2010.
From the project homepage:
The Spring Integration for .NET project will use the design and code
base of the Spring Integration project as a basis, adapting the code
as need to support .NET idioms and move in the direction to take
advantage of .NET only features such as Lambda expressions and
extension methods.
I'd suggest you first find out if Spring Integration for Java supports Oracle's Coherance and if so, you might have a slight chance to get this working in .NET too.
Oracle Coherence provides a native .NET client that you can use to access it from any .NET application, including Spring.NET-based apps.
Here is a link to docs:
http://docs.oracle.com/cd/E24290_01/index.htm
What you are interested in is covered in the Client Guide (Parts I and IV) and .NET API Reference.
My book, Oracle Coherence 3.5, also has two chapters on .NET and POF (Portable Object Format), as well as a full blown WPF sample application talking to a Coherence Java backend.