KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > xdoclet > modules > hp > hpas > ejb > HPASSubTask


1 /*
2  * Copyright (c) 2001, 2002 The XDoclet team
3  * All rights reserved.
4  */

5 package xdoclet.modules.hp.hpas.ejb;
6
7 import xdoclet.modules.ejb.dd.AbstractEjbDeploymentDescriptorSubTask;
8
9 /**
10  * Creates hp-ejb-jar.xml deployment descriptor for HPAS.
11  *
12  * @author <a HREF="mailto:stevensa@users.sourceforge.net">Andrew Stevens</a>
13  * @created January 10, 2002
14  * @ant.element display-name="HP AS" name="hpas" parent="xdoclet.modules.ejb.EjbDocletTask"
15  * @version $Revision: 1.8 $
16  */

17 public class HPASSubTask extends AbstractEjbDeploymentDescriptorSubTask
18 {
19     private final static String JavaDoc HPAS_DD_SCHEMA = "http://www.hp.bluestone.com/xml/schemas/hp-ejb-jar.xsd";
20
21     private final static String JavaDoc DEFAULT_TEMPLATE_FILE = "resources/hp-ejb-jar_xml.xdt";
22
23     private final static String JavaDoc DEFAULT_GENERATED_FILE = "hp-ejb-jar.xml";
24
25     protected String JavaDoc sfsbPassivationRoot = "";
26
27     protected String JavaDoc persistenceProduct = "VXML";
28
29     protected String JavaDoc persistenceVersion = "";
30
31     protected String JavaDoc persistenceClass = "com.hp.mwlabs.j2ee.containers.ejb.persistence.vxml.CMPPersistenceManager";
32
33     protected String JavaDoc persistenceSuffix = "";
34
35     public HPASSubTask()
36     {
37         setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
38         setDestinationFile(DEFAULT_GENERATED_FILE);
39         setSchema(HPAS_DD_SCHEMA);
40         setValidateXML(false);
41     }
42
43     /**
44      * Gets the SfsbPassivationRoot attribute of the HPASSubTask object
45      *
46      * @return The SfsbPassivationRoot value
47      */

48     public String JavaDoc getSfsbPassivationRoot()
49     {
50         return sfsbPassivationRoot;
51     }
52
53     /**
54      * Gets the PersistenceProduct attribute of the HPASSubTask object
55      *
56      * @return The PersistenceProduct value
57      */

58     public String JavaDoc getPersistenceProduct()
59     {
60         return persistenceProduct;
61     }
62
63     /**
64      * Gets the PersistenceVersion attribute of the HPASSubTask object
65      *
66      * @return The PersistenceVersion value
67      */

68     public String JavaDoc getPersistenceVersion()
69     {
70         return persistenceVersion;
71     }
72
73     /**
74      * Gets the PersistenceClass attribute of the HPASSubTask object
75      *
76      * @return The PersistenceClass value
77      */

78     public String JavaDoc getPersistenceClass()
79     {
80         return persistenceClass;
81     }
82
83     /**
84      * Gets the PersistenceSuffix attribute of the HPASSubTask object
85      *
86      * @return The PersistenceSuffix value
87      */

88     public String JavaDoc getPersistenceSuffix()
89     {
90         return persistenceSuffix;
91     }
92
93     /**
94      * The path to a local directory indicating where the container should passivate Stateful Session Bean instances.
95      *
96      * @param sfsbPassivationRoot The new SfsbPassivationRoot value
97      * @ant.not-required No, only if <code>hpas.bean passivation="true"</code> tag is used on a stateful
98      * session bean. Default is "".
99      */

100     public void setSfsbPassivationRoot(String JavaDoc sfsbPassivationRoot)
101     {
102         this.sfsbPassivationRoot = sfsbPassivationRoot;
103     }
104
105     /**
106      * Only applies when using CMP. Specifies the name of a third party persistence manager product.
107      *
108      * @param persistenceProduct The new PersistenceProduct value
109      * @ant.not-required No, default is "VXML".
110      */

111     public void setPersistenceProduct(String JavaDoc persistenceProduct)
112     {
113         this.persistenceProduct = persistenceProduct;
114     }
115
116     /**
117      * Only applies when using CMP. Specifies the version of the third party product.
118      *
119      * @param persistenceVersion The new PersistenceVersion value
120      * @ant.not-required No, default is "".
121      */

122     public void setPersistenceVersion(String JavaDoc persistenceVersion)
123     {
124         this.persistenceVersion = persistenceVersion;
125     }
126
127     /**
128      * Only applies when using CMP. Specifies the class that implements the persistence manager interface.
129      *
130      * @param persistenceClass The new PersistenceClass value
131      * @ant.not-required No, default is <code>com.hp.mwlabs.j2ee.containers.ejb.persistence.vxml.CMPPersistenceManager</code>
132      * .
133      */

134     public void setPersistenceClass(String JavaDoc persistenceClass)
135     {
136         this.persistenceClass = persistenceClass;
137     }
138
139     /**
140      * Only applies when using CMP. Specifies a suffix to be appended to the abstract bean class name to obtain the
141      * generated bean class name.
142      *
143      * @param persistenceSuffix The new PersistenceSuffix value
144      * @ant.not-required No, default is "".
145      */

146     public void setPersistenceSuffix(String JavaDoc persistenceSuffix)
147     {
148         this.persistenceSuffix = persistenceSuffix;
149     }
150 }
151
Popular Tags