KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > config > schema > setup > ConfigurationCreator


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.config.schema.setup;
5
6 import com.tc.config.schema.repository.ApplicationsRepository;
7 import com.tc.config.schema.repository.MutableBeanRepository;
8
9 import java.io.File JavaDoc;
10
11 /**
12  * An object that knows how to create configuration from some source and put it into repositories.
13  */

14 public interface ConfigurationCreator {
15
16   /**
17    * Load up the configuration into the various repositories.
18    */

19   void createConfigurationIntoRepositories(MutableBeanRepository l1BeanRepository,
20                                            MutableBeanRepository l2sBeanRepository,
21                                            MutableBeanRepository systemBeanRepository,
22                                            ApplicationsRepository applicationsRepository)
23       throws ConfigurationSetupException;
24
25   /**
26    * @return the directory containing the configuration file from which config was loaded,
27    * <em>IF<em> such a thing exists; this may well return <code>null</code> (for
28    * example, if configuration was loaded from a URL rather than a file).
29    */

30   File JavaDoc directoryConfigurationLoadedFrom();
31
32   /**
33    * @return true if the ConfigurationSource was a trusted one.
34    * Non-trusted sources require that the server be queried to enforce
35    * that the configuration-mode is development.
36    */

37   boolean loadedFromTrustedSource();
38   
39   String JavaDoc describeSources();
40
41 }
42
Popular Tags