001: /*
002: * BEGIN_HEADER - DO NOT EDIT
003: *
004: * The contents of this file are subject to the terms
005: * of the Common Development and Distribution License
006: * (the "License"). You may not use this file except
007: * in compliance with the License.
008: *
009: * You can obtain a copy of the license at
010: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
011: * See the License for the specific language governing
012: * permissions and limitations under the License.
013: *
014: * When distributing Covered Code, include this CDDL
015: * HEADER in each file and include the License file at
016: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
017: * If applicable add the following below this CDDL HEADER,
018: * with the fields enclosed by brackets "[]" replaced with
019: * your own identifying information: Portions Copyright
020: * [year] [name of copyright owner]
021: */
022:
023: /*
024: * @(#)ScaffoldEnvironmentContext.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: package com.sun.jbi.util;
030:
031: import com.sun.jbi.EnvironmentContext;
032:
033: /**
034: * Scaffolded EnvironmentContext for unit tests.
035: *
036: * @author Mark S White
037: */
038: public class ScaffoldEnvironmentContext implements
039: com.sun.jbi.EnvironmentContext {
040: /**
041: * Get the platform-specific context for this implementation.
042: * @return The PlatformContext.
043: */
044: public com.sun.jbi.platform.PlatformContext getPlatformContext() {
045: return null;
046: }
047:
048: /**
049: * Get the AppServer installation root directory.
050: * @return The AppServer install root.
051: */
052: public String getAppServerInstallRoot() {
053: return null;
054: }
055:
056: /**
057: * Get the AppServer instance root directory.
058: * @return The AppServer instance root.
059: */
060: public String getAppServerInstanceRoot() {
061: return null;
062: }
063:
064: /**
065: * Get the ComponentManager handle.
066: * @return The ComponentManager instance.
067: */
068: public com.sun.jbi.ComponentManager getComponentManager() {
069: return null;
070: }
071:
072: /**
073: * Get the ComponentQuery handle.
074: * @return The ComponentQuery instance.
075: */
076: public com.sun.jbi.ComponentQuery getComponentQuery() {
077: return null;
078: }
079:
080: /**
081: * Get the ComponentQuery for a specified target
082: * @return The ComponentQuery instance.
083: * @param targetName - either "domain" or a valid server / cluster name
084: */
085: public com.sun.jbi.ComponentQuery getComponentQuery(
086: String targetName) {
087: return null;
088: }
089:
090: /**
091: * Get a reference to the persisted JBI registry.
092: * @return Registry instance
093: */
094: public com.sun.jbi.registry.Registry getRegistry() {
095: return null;
096: }
097:
098: /**
099: * Indicates whether or not the JBI framework has been fully started. This
100: * method provides clients with a way of determining if the JBI framework
101: * started up in passive mode as a result of on-demand initialization.
102: * The 'start' parameter instructs the framework to
103: * start completely if it has not already done so. If the framework has
104: * already been started, the request to start again is ignored.
105: * @param start requests that the framework start completely before
106: * returning.
107: * @return true if the framework is completely started, false otherwise.
108: */
109: public boolean isFrameworkReady(boolean start) {
110: return false;
111: }
112:
113: /**
114: * Get the ConnectionManager handle.
115: * @return The ConnectionManager instance.
116: */
117: public com.sun.jbi.messaging.ConnectionManager getConnectionManager() {
118: return null;
119: }
120:
121: /**
122: * Gets the initial properties specified in the domain.xml file.
123: * @return The initial properties from the AppServer.
124: */
125: public java.util.Properties getInitialProperties() {
126: return null;
127: }
128:
129: /**
130: * Get the JBI install root directory path.
131: * @return The JBI install root directory path.
132: */
133: public String getJbiInstallRoot() {
134: return null;
135: }
136:
137: /**
138: * Get the JBI instance root directory path.
139: * @return The JBI instance root directory path.
140: */
141: public String getJbiInstanceRoot() {
142: return null;
143: }
144:
145: /**
146: * Get a handle to the class implementing management for the named
147: * JBI system service.
148: * @param aServiceName - the name of the JBI system service.
149: * @return The instance implementing management for the service.
150: */
151: public Object getManagementClass(String aServiceName) {
152: return null;
153: }
154:
155: /**
156: * Get the management message factory which enables JBI components
157: * to construct status and exception messages.
158: * @return An instance of ManagementMessageFactory.
159: */
160: public com.sun.jbi.management.ManagementMessageFactory getManagementMessageFactory() {
161: return null;
162: }
163:
164: /**
165: * Get a handle to the MBeanHelper implementation.
166: * @return The MBeanHelper instance.
167: */
168: public com.sun.jbi.management.MBeanHelper getMBeanHelper() {
169: return null;
170: }
171:
172: /**
173: * Get a handle to the MBeanNames service for use in creating MBean
174: * names.
175: * @return Handle to the MBeanNames service.
176: */
177: public com.sun.jbi.management.MBeanNames getMBeanNames() {
178: return null;
179: }
180:
181: /**
182: * Get the JMX MBean server used to register all MBeans in the JBI
183: * framework.
184: * @return The MBean server handle.
185: */
186: public javax.management.MBeanServer getMBeanServer() {
187: return null;
188: }
189:
190: /**
191: * Get the JNDI naming context for this implementation. This context
192: * is a standard JNDI InitialContext but its content will vary based
193: * on the environment in which the JBI implementation is running.
194: * @return The JNDI naming context.
195: */
196: public javax.naming.InitialContext getNamingContext() {
197: return null;
198: }
199:
200: /**
201: * Get the Event Notifer MBean instance.
202: * @return The EventNotifierMBean instance.
203: */
204: public com.sun.jbi.framework.EventNotifierCommon getNotifier() {
205: return null;
206: }
207:
208: /**
209: * Get the ServiceUnitRegistration handle.
210: * @return The ServiceUnitRegistration instance.
211: */
212: public com.sun.jbi.ServiceUnitRegistration getServiceUnitRegistration() {
213: return null;
214: }
215:
216: /**
217: * Get a StringTranslator for a specific package name.
218: * @param packageName - the name of the package for which a StringTranslator
219: * is being requested.
220: * @return The StringTranslator for the named package.
221: */
222: public com.sun.jbi.StringTranslator getStringTranslator(
223: String packageName) {
224: return null;
225: }
226:
227: /**
228: * Get a StringTranslator for a specific object.
229: * @param object - the object for which a StringTranslator is being
230: * requested, using the name of the package containing the object.
231: * @return The StringTranslator for the object's package.
232: */
233: public com.sun.jbi.StringTranslator getStringTranslatorFor(
234: Object object) {
235: return null;
236: }
237:
238: /**
239: * Get the TransactionManager for this implementation. The instance
240: * returned is an implementation of the standard JTS interface. If none
241: * is available, returns null.
242: * @return A TransactionManager instance.
243: */
244: public javax.transaction.TransactionManager getTransactionManager() {
245: return null;
246: }
247:
248: /**
249: * Get a handle to the VersionInfo implementation.
250: * @return The VersionInfo instance.
251: */
252: public com.sun.jbi.VersionInfo getVersionInfo() {
253: return null;
254: }
255:
256: /**
257: * Gets the provider type of JBI.
258: * @return The JBI provider.
259: */
260: public com.sun.jbi.JBIProvider getProvider() {
261: return null;
262: }
263:
264: /**
265: * Get a copy of the WSDL factory. This needs to be done before
266: * any reading, writing, or manipulation of WSDL documents can
267: * be performed using the WSDL API.
268: *
269: * @return An instance of the WSDL factory.
270: * @exception WsdlException If the factory cannot be instantiated.
271: */
272: public com.sun.jbi.wsdl2.WsdlFactory getWsdlFactory()
273: throws com.sun.jbi.wsdl2.WsdlException {
274: return null;
275: }
276:
277: /**
278: * This method is used to find out if start-on-deploy is enabled.
279: * When this is enabled components are started automatically when
280: * there is deployment for them.
281: * This is controlled by the property com.sun.jbi.startOnDeploy.
282: * By default start-on-deploy is enabled.
283: * It is disabled only if com.sun.jbi.startOnDeploy=false.
284: */
285: public boolean isStartOnDeployEnabled() {
286: return false;
287: }
288:
289: /**
290: * This method is used to find out if start-onverify is enabled.
291: * When this is enabled components are started automatically when
292: * an application has to be verified for them
293: * This is controlled by the property com.sun.jbi.startOnVerify.
294: * By default start-on-verify is enabled.
295: * It is disabled only if com.sun.jbi.startOnVerify=false.
296: */
297: public boolean isStartOnVerifyEnabled() {
298: return false;
299: }
300:
301: /**
302: * Get a read-only reference to the persisted JBI Registry. A DOM registry document
303: * object is returned.
304: * @return the registry document
305: */
306: public org.w3c.dom.Document getReadOnlyRegistry() {
307: // return null, if the DOM registry is needed then more stuff goes here
308: return null;
309: }
310: }
|