Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow contracts to be activated or deactivated during runtime #12

Open
BenRomberg opened this issue May 14, 2012 · 1 comment
Open

Allow contracts to be activated or deactivated during runtime #12

BenRomberg opened this issue May 14, 2012 · 1 comment
Milestone

Comments

@BenRomberg
Copy link
Member

On activation, a retransformation could be made, allowing the activation even if the classes were not transformed on class-loading.

@BenRomberg
Copy link
Member Author

There are 2 possibilities how to implement this:

  1. Provide some class that can be accessed at runtime with methods such as void (de)activateContract(String packageName) or void (de)activateContract(Class<?> clazz).
  2. Allow some class to be referenced within the Configuration which must implement an interface with a method such as boolean executeContract(Class<?> clazz), which is then called before every contract execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant