/jbpm-flow/src/main/java/org/jbpm/process/core/ContextContainer.java

https://github.com/michelpohle/jbpm · Java · 36 lines · 9 code · 8 blank · 19 comment · 0 complexity · 6c2fcf30e9f23676ed0d2a51376efe4c MD5 · raw file

  1. /**
  2. * Copyright 2010 JBoss Inc
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package org.jbpm.process.core;
  17. import java.util.List;
  18. /**
  19. *
  20. * @author <a href="mailto:kris_verlaenen@hotmail.com">Kris Verlaenen</a>
  21. */
  22. public interface ContextContainer {
  23. List<Context> getContexts(String contextType);
  24. void addContext(Context context);
  25. Context getContext(String contextType, long id);
  26. void setDefaultContext(Context context);
  27. Context getDefaultContext(String contextType);
  28. }