01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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:
17: package org.compass.core.spi;
18:
19: import org.compass.core.Compass;
20: import org.compass.core.CompassSession;
21: import org.compass.core.config.CompassSettings;
22: import org.compass.core.converter.ConverterLookup;
23: import org.compass.core.engine.SearchEngineFactory;
24: import org.compass.core.engine.naming.PropertyNamingStrategy;
25: import org.compass.core.executor.ExecutorManager;
26: import org.compass.core.mapping.CompassMapping;
27: import org.compass.core.metadata.CompassMetaData;
28: import org.compass.core.transaction.LocalTransactionFactory;
29: import org.compass.core.transaction.TransactionFactory;
30:
31: public interface InternalCompass extends Compass {
32:
33: void start();
34:
35: void stop();
36:
37: CompassSession openSession(boolean allowCreate, boolean checkClosed);
38:
39: String getName();
40:
41: CompassSettings getSettings();
42:
43: CompassMapping getMapping();
44:
45: ExecutorManager getExecutorManager();
46:
47: CompassMetaData getMetaData();
48:
49: SearchEngineFactory getSearchEngineFactory();
50:
51: TransactionFactory getTransactionFactory();
52:
53: LocalTransactionFactory getLocalTransactionFactory();
54:
55: ConverterLookup getConverterLookup();
56:
57: PropertyNamingStrategy getPropertyNamingStrategy();
58: }
|