The Artima Developer Community
Sponsored Link

Java Answers Forum
how do i design/code for optional features?

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
floyd shackelford

Posts: 1
Nickname: shackman
Registered: Nov, 2003

how do i design/code for optional features? Posted: Nov 7, 2003 12:40 PM
Reply to this message Reply
Advertisement
i am developing a java application that has a primary function and additional optional ancillary features. i want to be able to enable just the optional features that the customer wants. the problem i'm having is that my panels need to reflect only those features that are installed. say a panel has 3 components. component 1 is used regardless of what optional features are enabled. component 2 is only shown and used if optional feature A is enabled. component 3 is only shown if both features A & B are enabled. and so forth.

i don't want to have 3 or more versions of the same panel having just the relevant components. i thought about having some global booleans and using if statements in my panel construction and validation logic, but that's a maintenance nightmare. there's got to be a better way. what do you suggest?

Topic: How to solve this problem? Previous Topic   Next Topic Topic: Java dates - urgent

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use