Questions tagged [cross-cutting-concerns]

Cross-cutting concerns are functions of a program which affect other functions. Since they cannot be completely modularized in both the design and implementation, the resulting code will either be scattered throughout different modules that generate necessary data or tied to specific modules that perform dependent operations. Logging changes to the a database is an example of a cross-cutting concern since it involves checking and updating multiple tables.

65 questions
4
votes
2 answers

How to handle cross-cutting concerns in an ASP.NET MVC 3 Application?

I've got an ASP.NET MVC 3 web application, with various components/layers such as: Web Services (cache, external API's, cloud services, etc) Core (domain logic, POCO's, etc) Repository (Entity Framework) Now, when i do something in my website (e.g…
RPM1984
  • 72,246
  • 58
  • 225
  • 350
3
votes
0 answers

Is configuration considered a cross-cutting concern?

The title says it pretty much. I see sometimes people mention configuration as cross-cutting concern, but others don't. So I'm wondering if it is truly a cross-cutting concern. Because I'm wondering if configuration should be injected in every…
3
votes
1 answer

Why to use AOP for transaction management in Spring?

I am learning AOP and came to know that is useful for separation of concern, for example, logging, transaction management, security etc. So far good to know AOP. Now, I read about Spring transaction management in Spring framework we can have…
CuriousMind
  • 8,301
  • 22
  • 65
  • 134
3
votes
2 answers

Application Frameworks - Buy, Build, or Assimilate?

I was curious as to what other shops are doing regarding base application frameworks? I look at an application framework as being able to provide additional or extended functionality to improve the quality of applications built from it. There are a…
3
votes
2 answers

Domain Driven Design and cross cutting concern interface definition

My company is trying to adopt DDD. It seems the DDD's guidance is to require the domain assembly to define all of its service interfaces and allow implementors to take a reference on the domain assembly and implement the service interfaces. Then…
3
votes
2 answers

Simple Injector, Function Not Being Intercepted?

I am trying to have a cross cutting concern intercept my calls on my controller but for some reason they aren't being intercepted. I am basically trying to get the example here to…
Tony
  • 133
  • 2
  • 11
3
votes
2 answers

Applying non-MVC related attributes to MVC actions

Our application has the notion of a PermissionAttribute. This attribute is defined in a base layer of our application and our commands and queries are decorated with that attribute. Since this attribute is defined in base layer we can't (and don't…
Steven
  • 166,672
  • 24
  • 332
  • 435
3
votes
1 answer

How does Dart implement cross-cutting concerns?

Most developers will acknowledge how implementing crosscutting concerns such as logging, auditing, security and transactionality can adversely affect business logic implementation. Such concerns "seem" to increase the complexity of existing business…
3
votes
2 answers

C# Attribute to modify methods

all. Maybe i've not googled enough, but i can't find any example on this question. It is possible in C# to create an custom attribute which, applied to a class, modifies all of its methods? For example, adds Console.WriteLine("Hello, i'm modified…
ALOR
  • 545
  • 1
  • 9
  • 20
2
votes
2 answers

Remove Try/Catch statements from asp.net controllers

I have an Asp.Net core 3.1 Web Api project in witch I have a lot of controllers. almost in every controller I have a template like this: public class SomeController:ControllerBase { //injecting my service [HttpGet] [Route("")] …
Ali.Rashidi
  • 1,284
  • 4
  • 22
  • 51
2
votes
1 answer

How to manage data needed across different Microservices?

I am currently designing a Microservices-Approach for my company (Logistic Company). Right now we have a monolithic system with a single relational database. I understand the approach of Microservices of having separate databases. Unfortunately I do…
2
votes
1 answer

Dealing with cross-cutting concerns

In programming, cross-cutting concerns are a common concern (For lack of better terms). For example, if you are modelling an aircraft and all its composite parts in classes, various devices will depend on the same type of part. E.g. fuel tank, water…
GurdeepS
  • 65,107
  • 109
  • 251
  • 387
2
votes
1 answer

Gather data across layers for writing audit logs

Background The application in question is a Java web-app deployed in Tomcat and uses Apache CXF for exposing REST services. I found Spring configuration, but not sure how well it is wired up to the CXF infrastructure. Every time something important…
user6280018
2
votes
2 answers

how to create a temporary variable in the camel context for later use in the route

I have a route which interacts with 4 http endpoints. the first http endpoint is an authorization service from which i will get one authentication token. What i want is once i get the token from the authorization service i will pass the token to…
dks551
  • 1,113
  • 1
  • 15
  • 39
2
votes
2 answers

asp.net MVC 2 - most elegant way of isolating guard code - guarding against null controller parameters

I have a very simple problem, but I'm looking for the 'best' solution to the following: I have multiple controller actions something like this: public ActionResult DoSomething(PackageViewModel packageByName, DoSomethingInputModel inputModel) { …
Myster
  • 17,704
  • 13
  • 64
  • 93