01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04:
05: package com.tc.test.server.appserver.deployment;
06:
07: import java.util.Map;
08:
09: public interface DeploymentBuilder {
10:
11: public DeploymentBuilder addDirectoryOrJARContainingClass(Class type);
12:
13: public DeploymentBuilder addDirectoryOrJARContainingClassOfSelectedVersion(
14: Class type, String[] variantNames);
15:
16: public DeploymentBuilder addDirectoryContainingResource(
17: String resource);
18:
19: public DeploymentBuilder addResource(String location,
20: String includes, String prefix);
21:
22: public DeploymentBuilder addResourceFullpath(String location,
23: String includes, String fullpath);
24:
25: public DeploymentBuilder addContextParameter(String name,
26: String value);
27:
28: public DeploymentBuilder addSessionConfig(String name, String value);
29:
30: public DeploymentBuilder addListener(Class listenerName);
31:
32: public DeploymentBuilder addServlet(String name, String mapping,
33: Class servletClass, Map params, boolean loadOnStartup);
34:
35: public DeploymentBuilder addFilter(String name, String mapping,
36: Class filterClass, Map params);
37:
38: public DeploymentBuilder setDispatcherServlet(String name,
39: String mapping, Class servletClass, Map params,
40: boolean loadOnStartup);
41:
42: public DeploymentBuilder addTaglib(String uri, String location);
43:
44: public DeploymentBuilder addBeanDefinitionFile(String beanDefinition);
45:
46: public DeploymentBuilder addRemoteService(String remoteName,
47: String beanName, Class interfaceType);
48:
49: public DeploymentBuilder addRemoteService(Class exporterType,
50: String remoteName, String beanName, Class interfaceType);
51:
52: public DeploymentBuilder addRemoteService(String beanName,
53: Class interfaceType);
54:
55: public DeploymentBuilder addRemoteServiceBlock(String serviceBlock);
56:
57: public Deployment makeDeployment() throws Exception;
58:
59: public void setParentApplicationContextRef(
60: String locatorFactorySelector, String parentContextKey);
61: }
|