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.entity.cmp;
18:
19: import org.apache.openejb.test.ApplicationException;
20: import org.apache.openejb.test.object.OperationsPolicy;
21:
22: import javax.ejb.EJBObject;
23: import java.rmi.RemoteException;
24: import java.util.Properties;
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 UnknownCmpObject 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: }
|