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: * @(#)SampleEnvironmentContext.java
025: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
026: *
027: * END_HEADER - DO NOT EDIT
028: */
029: /**
030: * SampleEnvironmentContext.java
031: *
032: * SUN PROPRIETARY/CONFIDENTIAL.
033: * This software is the proprietary information of Sun Microsystems, Inc.
034: * Use is subject to license terms.
035: *
036: * Created on December 19, 2004, 12:48 PM
037: */package com.sun.jbi.internal.security;
038:
039: import com.sun.jbi.JBIProvider;
040:
041: /**
042: *
043: * @author Sun Microsystems, Inc.
044: */
045: public class SampleEnvironmentContext implements
046: com.sun.jbi.EnvironmentContext {
047: /** App Server Install Root. */
048: private String mAsInstRoot;
049: private String mJbiInstallRoot;
050:
051: /** Creates a new instance of SampleEnvironmentContext */
052: public SampleEnvironmentContext() {
053: }
054:
055: public JBIProvider getProvider() {
056: return JBIProvider.SUNASPE;
057: }
058:
059: public String getAppServerInstanceRoot() {
060: return mAsInstRoot;
061: }
062:
063: public void setAppServerInstanceRoot(String root) {
064: mAsInstRoot = root;
065: }
066:
067: public com.sun.jbi.ComponentManager getComponentManager() {
068: return null;
069: }
070:
071: public String getComponentId() {
072: return "";
073: }
074:
075: public String getComponentName() {
076: return "notNeeded";
077: }
078:
079: public com.sun.jbi.ComponentQuery getComponentQuery() {
080: return null;
081: }
082:
083: public com.sun.jbi.ComponentQuery getComponentQuery(
084: String targetName) {
085: return null;
086: }
087:
088: public String getComponentRoot() {
089: return null;
090: }
091:
092: public com.sun.jbi.messaging.ConnectionManager getConnectionManager() {
093: return null;
094: }
095:
096: public java.util.Properties getInitialProperties() {
097: return null;
098: }
099:
100: public String getJbiInstallRoot() {
101: return mJbiInstallRoot;
102: }
103:
104: public void setJbiInstallRoot(String jbiRoot) {
105: mJbiInstallRoot = jbiRoot;
106: }
107:
108: public com.sun.jbi.management.MBeanHelper getMBeanHelper() {
109: return null;
110: }
111:
112: public com.sun.jbi.management.MBeanNames getMBeanNames() {
113: return null;
114: }
115:
116: public javax.management.MBeanServer getMBeanServer() {
117: return null;
118: }
119:
120: public Object getManagementClass(String aServiceName) {
121: return null;
122: }
123:
124: public com.sun.jbi.management.ManagementMessageFactory getManagementMessageFactory() {
125: return null;
126: }
127:
128: public javax.naming.InitialContext getNamingContext() {
129: return null;
130: }
131:
132: public com.sun.jbi.ServiceUnitRegistration getServiceUnitRegistration() {
133: return null;
134: }
135:
136: public com.sun.jbi.StringTranslator getStringTranslator(
137: String packageName) {
138: return Util.getStringTranslator(packageName);
139: }
140:
141: public com.sun.jbi.StringTranslator getStringTranslatorFor(
142: Object object) {
143: return Util.getStringTranslator(object.getClass().getPackage()
144: .getName());
145: }
146:
147: /**
148: * Get the VersionInfo for this runtime.
149: * @return The VersionInfo instance.
150: */
151: public com.sun.jbi.VersionInfo getVersionInfo() {
152: return (com.sun.jbi.VersionInfo) this ;
153: }
154:
155: /**
156: * Get a TransactionManager from the AppServer.
157: * @return A TransactionManager instance.
158: */
159: public javax.transaction.TransactionManager getTransactionManager() {
160: return null;
161: }
162:
163: /**
164: * Get a Wsdl Factory from the run time.
165: * @return A Wsdl factory instance.
166: */
167: public com.sun.jbi.wsdl2.WsdlFactory getWsdlFactory()
168: throws com.sun.jbi.wsdl2.WsdlException {
169: return null;
170: }
171:
172: }
|