01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.deployment;
17:
18: import javax.enterprise.deploy.spi.DeploymentConfiguration;
19: import javax.enterprise.deploy.model.DeployableObject;
20: import javax.enterprise.deploy.shared.ModuleType;
21:
22: /**
23: * Interface to be implemented by the deployment subsystem for any type
24: * of component (e.g. EAR, WAR, ...) that needs configuration.
25: *
26: * @version $Rev: 493181 $ $Date: 2007-01-05 12:32:03 -0800 (Fri, 05 Jan 2007) $
27: */
28: public interface ModuleConfigurer {
29: /**
30: * JSR88 method for getting the vendor part of the deployment configuration
31: * @param deployable the object the tool is trying to deploy
32: * @return the vendor-specific deployment configuration, or null a configurer cannot handle the DeployableObject
33: */
34: DeploymentConfiguration createConfiguration(
35: DeployableObject deployable);
36:
37: /**
38: * Supply the module type this configurer handles for indexing
39: * @return ModuleType handled by this Configurer.
40: */
41: ModuleType getModuleType();
42: }
|