javax.ejb.Remote Java Examples
The following examples show how to use
javax.ejb.Remote.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: InvocationDateContainerTest.java From development with Apache License 2.0 | 5 votes |
@Before public void setUp() throws Exception { mapping = new HashMap<Class<?>, List<Class<?>>>(); classes = new ArrayList<Class<?>>(); excludes = new ArrayList<String>(); // do not check the APP beans excludes.add("org.oscm.app."); String directory = ".."; findAnnotatedStatelessBeans(new File(directory), "org.oscm.", Remote.class, classes, mapping); }
Example #2
Source File: InterfaceMap.java From development with Apache License 2.0 | 5 votes |
private boolean considerInterface(Class<?> i) { if (i.getAnnotation(Local.class) != null) { return true; } else if (i.getAnnotation(Remote.class) != null) { return true; } else { return isExcplicitlyRequiredClass(i); } }
Example #3
Source File: WebMethodNamesTest.java From development with Apache License 2.0 | 4 votes |
@Override public boolean isNeglectableClass(Class<?> clazz) { return (clazz.getAnnotation(Remote.class) == null); }
Example #4
Source File: DeployedSessionBean.java From development with Apache License 2.0 | 4 votes |
private void invokeInvocationDateInterceptor(Method method) { if (method.getDeclaringClass().getAnnotation(Remote.class) != null) { DateFactory.getInstance().takeCurrentTime(); } }
Example #5
Source File: CheckClasses.java From tomee with Apache License 2.0 | 2 votes |
private boolean isValidInterface(final RemoteBean b, final Class clazz, final Class beanClass, final String tag) { if (clazz.equals(beanClass)) { fail(b, "xml." + tag + ".beanClass", clazz.getName()); } else if (!clazz.isInterface()) { fail(b, "xml." + tag + ".notInterface", clazz.getName()); } else if (EJBHome.class.isAssignableFrom(clazz)) { if (tag.equals("home")) { return true; } fail(b, "xml." + tag + ".ejbHome", clazz.getName()); } else if (EJBLocalHome.class.isAssignableFrom(clazz)) { if (tag.equals("localHome")) { return true; } fail(b, "xml." + tag + ".ejbLocalHome", clazz.getName()); } else if (EJBObject.class.isAssignableFrom(clazz)) { if (tag.equals("remote")) { return true; } fail(b, "xml." + tag + ".ejbObject", clazz.getName()); } else if (EJBLocalObject.class.isAssignableFrom(clazz)) { if (tag.equals("local")) { return true; } fail(b, "xml." + tag + ".ejbLocalObject", clazz.getName()); } else { if (tag.equals("businessLocal") || tag.equals("businessRemote")) { return true; } else if (clazz.isAnnotationPresent(Local.class)) { fail(b, "xml." + tag + ".businessLocal", clazz.getName()); } else if (clazz.isAnnotationPresent(Remote.class)) { fail(b, "xml." + tag + ".businessRemote", clazz.getName()); } else { fail(b, "xml." + tag + ".unknown", clazz.getName()); } } // must be tagged as <home>, <local-home>, <remote>, or <local> return false; }