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.
Questions tagged [cross-cutting-concerns]
65 questions
1
vote
1 answer
Logging user activity in another logical layer without global HttpContext
I'm looking for a good solution to log DB changes in a web application developed using Play/Scala/ReactiveMongo. I need to know who changed what.
I have a separate layer namely Services in which all data access and business logics happens. All…

Amir Karimi
- 5,401
- 4
- 32
- 51
1
vote
1 answer
Unity Interception MethodSignatureMatchingRule could not be resolved
Im using Unity (3.0) interception to add some crosscutting concerns to my application. Somehow I can't use the MethodSignatureMatchingRule in my configuration getting this error message:
{"The type name or alias MethodSignatureMatchingRule could not…

Martin Brandl
- 56,134
- 13
- 133
- 172
1
vote
2 answers
Can I postpone Exception Handling to the end of a project?
I am developing a .NET application, in C#, with the help of an external consultant. It is our goal to have this project as a test case for a better development process, paying special atention to best practices (so as to produce a proper Software…

heltonbiker
- 26,657
- 28
- 137
- 252
1
vote
4 answers
Why do we need to decorate serialisation attributes to classes and properties or implement some interface for persisting the data?
As far as my understanding goes most of the serialization/de-serialization technique uses reflection to create object and set or get values. So why do one explicitly bind these attribute such as [XmlIgnore]... for xml, [Serializable]... in Binary…

keyr
- 990
- 13
- 27
1
vote
0 answers
Tracer Class for Automatic Logging of Method Entry and Exit
I want tracing in every function Entry and Exit. Say my class contains three methods MethodA MethodB MethodC... Through the Instance someone called MethodA and methodA calls MethodB and MethodB calls methodC
public class test
{
Public void…

user1312242
- 339
- 1
- 3
- 16
1
vote
0 answers
how to pass context(ApplicationContext) as an argument to logBefore Method(Method of Aspect)?
I want to implement an aspect to avoid lazy Loading problems .
so how to pass context(Application Context) as an argument for logBefore Method?
What is the signature pointcut defines the method above(the place to which I make "???"), knowing that…

الحكمة ظالة المؤمن
- 21
- 4
0
votes
1 answer
Django project needs to run with 3 major work concerns (scheduling processes, ansible jobs, and API server). But Nginx keeps killing my workers
I use a Django backend which has 2 main workloads:
API server for the Angular UI Frontend and Django Admin Screens
Scheduler, which kick off about 8 difference scheduled services
Metric collection: API calls against a fleet of servers for regular…

Brian Waganer
- 1
- 1
0
votes
1 answer
Create logger configuration inside CrossCutting layer
Currently doing a project in .NET CORE, where i am going to have various layers, including a CrossCuting layer, but i cant get my head around this problem...
right now i have a Logger working all fine, using Serilog. But my problem now is, i want to…

filipe
- 139
- 2
- 17
0
votes
0 answers
MSSQL - Boilerplate Code Repetition and Cross Cutting Concerns
I've recently taken on responsibility for a new MSSQL database.
I can see nearly every stored procedure has repetitive boiler plate code which sets up the user context/row permissions and logs execution.
Are there any tools which can be used to…

Stephen Hewison
- 324
- 2
- 9
0
votes
1 answer
Spring AOP: exchanging information between methods
Suppose that I have a class called MyServlet, whose purpose is to respond to a user request:
@Component
public class MyServlet
{
public void accept(String clientName, int clientID)
{
System.out.println("Processing client:" +…

Jason
- 2,495
- 4
- 26
- 37
0
votes
1 answer
Tracing the data flow across Distributed/Legacy systems
I have 2 Microservices [A, B] and the service [B] has integration with legacy system [C]. The service [B] usually generates unique-identifier and includes it in the flow into [C], also passes it back to [A]. In that way reconciliation was handled…

kalyanku18
- 1
- 1
0
votes
2 answers
Cross cutting concern logging
I want to log certain information about methods being executed, I considered AOP which was okay, knocked up a demo, but I really need to log specific information about each method, think of it as additional info related to the call.
Now the options…

user1555190
- 2,803
- 8
- 47
- 80
0
votes
2 answers
Custom Unity Interception Behavior or Enterprise Library block, which is better for AOP?
Trying to decide which path to take for my MVC application and want to follow the AOP approach. Can anyone explain the pros and cons of Unity Custom interception behavior and using Enterprise Library 6.
Experiences and lessons from real world…

Ant Radha
- 2,233
- 1
- 13
- 16
0
votes
0 answers
How to do Binding with decorators using Ninject without dependency?
I understand how to configure the decorates as explained here. But I see one problem. In my case, I want avoid the dependency of the Repository.…

VivekDev
- 20,868
- 27
- 132
- 202
0
votes
1 answer
Is Intrusion Detection ( XSS attacks ) a cross cutting concern? Can we decouple it with AOP's?
I am currently working on to safeguard application from XSS attacks. So I am checking that particularly for Every Request. This also can be checked at interceptors level.
But I want to decouple it with something like AOP's?
Any input from your…

Pramod S. Nikam
- 4,271
- 4
- 38
- 62