01: /*
02: * Copyright 2006 Luca Garulli (luca.garulli@assetdata.it) Licensed under the
03: * Apache License, Version 2.0 (the "License"); you may not use this file except
04: * in compliance with the License. You may obtain a copy of the License at
05: * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law
06: * or agreed to in writing, software distributed under the License is
07: * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
08: * KIND, either express or implied. See the License for the specific language
09: * governing permissions and limitations under the License.
10: */
11: package org.romaframework.module.designer;
12:
13: import org.romaframework.aspect.view.ViewAspect;
14: import org.romaframework.core.Utility;
15: import org.romaframework.core.config.RomaApplicationContext;
16: import org.romaframework.core.module.SelfRegistrantModule;
17: import org.romaframework.core.schema.SchemaClassResolver;
18:
19: public class DesignerModule extends SelfRegistrantModule {
20: public String moduleName() {
21: return "designer";
22: }
23:
24: public void startup() {
25: // REGISTER THE APPLICATION DOMAIN
26: RomaApplicationContext.getInstance().getBean(
27: SchemaClassResolver.class).addDomainPackage(
28: DesignerModule.class.getPackage().getName());
29: // REGISTER THE APPLICATION DOMAIN + VIEW
30: RomaApplicationContext.getInstance().getBean(
31: SchemaClassResolver.class).addDomainPackage(
32: DesignerModule.class.getPackage().getName()
33: + Utility.PACKAGE_SEPARATOR
34: + ViewAspect.ASPECT_NAME);
35: }
36:
37: public void shutdown() {
38: }
39: }
|