01: /**
02: *
03: * Licensed to the Apache Software Foundation (ASF) under one or more
04: * contributor license agreements. See the NOTICE file distributed with
05: * this work for additional information regarding copyright ownership.
06: * The ASF licenses this file to You under the Apache License, Version 2.0
07: * (the "License"); you may not use this file except in compliance with
08: * the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */package org.apache.openejb.test.mdb;
18:
19: import org.apache.openejb.test.ApplicationException;
20: import org.apache.openejb.test.object.OperationsPolicy;
21:
22: import java.util.Properties;
23:
24: public interface BasicMdbObject {
25: /**
26: * Reverses the string passed in then returns it
27: *
28: * @return string
29: */
30: String businessMethod(String text);
31:
32: /**
33: * Throws an ApplicationException when invoked
34: *
35: */
36: void throwApplicationException() throws ApplicationException;
37:
38: /**
39: * Throws a java.lang.NullPointerException when invoked
40: * This is a system exception and should result in the
41: * destruction of the instance and invalidation of the
42: * remote reference.
43: *
44: */
45: void throwSystemException_NullPointer();
46:
47: /**
48: * Returns a report of the bean's
49: * runtime permissions
50: *
51: * @return properties
52: */
53: Properties getPermissionsReport();
54:
55: /**
56: * Returns a report of the allowed opperations
57: * for one of the bean's methods.
58: *
59: * @param methodName The method for which to get the allowed opperations report
60: * @return operations policy
61: */
62: OperationsPolicy getAllowedOperationsReport(String methodName);
63: }
|