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