cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi all

I am making an application using CAF. My application has some properties which are used to control the application.

I can store these properties and their values in XML file and can use it in my application. Is there any other way to handle this in CAF?

0 Likes
View Entire Topic
Former Member
0 Likes

In this case "C" is not configurable parameter, but just calculatable. So, implement additional method for this parameter, like this:


public static String getC()
{
  if (A.equals(X) && B.equals(Y))
 {
   return CONSTANT_Z ;
 }
 else if (A.equals(Y) && B.equals(X))
 {
   return CONSTANT_U ;
 }
 else ....

}

Best regards,

Aliaksei

Former Member
0 Likes

it is good but putting rules in the code is not easy to maintain. Because I may need to add more rules in future.