Interface(final InterfaceType type, final String annotatedName, final String xmlName, final String openejbLegacy) { this.type = type; this.annotatedName = annotatedName; this.xmlName = xmlName; this.xmlNameCc = Strings.camelCase(xmlName); this.openejbLegacy = openejbLegacy; }
public static String lc(final String string) { return lowercase(string); }
public static String uc(final String string) { return uppercase(string); }
private void checkInterface(RemoteBean b, Class<?> beanClass, String tag, String className) { Class<?> interfce = lookForClass(className, tag, b.getEjbName()); if (interfce == null) return; check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); if (isValidInterface(b, interfce, beanClass, tag)); ClassFinder finder = new ClassFinder(interfce); for (Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)){ warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
private static String fixConstructor(final ServiceProvider provider) { final String s = String.valueOf(provider.getConstructor()); final String[] split = s.split(" *, *"); for (int i = 0; i < split.length; i++) { split[i] = Strings.lcfirst(split[i]); } return Join.join(", ", split); }
private Object lookup(final String s) throws NamingException { final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); final Context jndiContext = containerSystem.getJNDIContext(); try { if (s.startsWith("java:") | s.startsWith("openejb:")) { return jndiContext.lookup(s); } else { return jndiContext.lookup("openejb/Resource/" + s); } } catch (final NameNotFoundException e) { return jndiContext.lookup("java:module/" + Strings.lastPart(getClassName(), '.')); } catch (final NamingException e) { throw (NamingException) new NamingException("could not look up " + s).initCause(e); } }
final String key = Strings.lcfirst(entry.getKey().toString()); final String value = entry.getValue().toString(); final String type = guessType(key, value); final String lcFirstKey = Strings.lcfirst(entry.getKey().toString()); final String ucFirstKey = Strings.ucfirst(lcFirstKey); final String value = entry.getValue().toString();
if (Strings.checkNullBlankString(digest)) {
private void checkInterface(final ClassLoader loader, final RemoteBean b, final Class<?> beanClass, String tag, final String className) { final Class<?> interfce = lookForClass(loader, className, tag, b.getEjbName()); if (interfce == null) { return; } check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); isValidInterface(b, interfce, beanClass, tag); final ClassFinder finder = new ClassFinder(interfce); for (final Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)) { warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (final Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
private static String fixConstructor(final ServiceProvider provider) { final String s = String.valueOf(provider.getConstructor()); final String[] split = s.split(" *, *"); for (int i = 0; i < split.length; i++) { split[i] = Strings.lcfirst(split[i]); } return Join.join(", ", split); }
private Object lookup(final String s) throws NamingException { final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); final Context jndiContext = containerSystem.getJNDIContext(); try { if (s.startsWith("java:") | s.startsWith("openejb:")) { return jndiContext.lookup(s); } else { return jndiContext.lookup("openejb/Resource/" + s); } } catch (final NameNotFoundException e) { return jndiContext.lookup("java:module/" + Strings.lastPart(getClassName(), '.')); } catch (final NamingException e) { throw (NamingException) new NamingException("could not look up " + s).initCause(e); } }
final String key = Strings.lcfirst(entry.getKey().toString()); final String value = entry.getValue().toString(); final String type = guessType(key, value); final String lcFirstKey = Strings.lcfirst(entry.getKey().toString()); final String ucFirstKey = Strings.ucfirst(lcFirstKey); final String value = entry.getValue().toString();
if (Strings.checkNullBlankString(digest)) {
private void checkInterface(final RemoteBean b, final Class<?> beanClass, String tag, final String className) { final Class<?> interfce = lookForClass(className, tag, b.getEjbName()); if (interfce == null) { return; } check_hasDependentClasses(b, className, tag); tag = Strings.lcfirst(Strings.camelCase(tag)); isValidInterface(b, interfce, beanClass, tag); final ClassFinder finder = new ClassFinder(interfce); for (final Class<? extends Annotation> annotation : beanOnlyAnnotations) { if (interfce.isAnnotationPresent(annotation)) { warn(b, "interface.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), b.getEjbClass()); } for (final Method method : finder.findAnnotatedMethods(annotation)) { warn(b, "interfaceMethod.beanOnlyAnnotation", annotation.getSimpleName(), interfce.getName(), method.getName(), b.getEjbClass()); } } }
public Object getObject() throws NamingException { final ContainerSystem containerSystem = SystemInstance.get().getComponent(ContainerSystem.class); try { return containerSystem.getJNDIContext().lookup(jndiName); } catch (final NameNotFoundException e) { // EE.5.18: try using java:module/<shortName> prefix return containerSystem.getJNDIContext().lookup("java:module/" + Strings.lastPart(getClassName(), '.')); } catch (final NamingException e) { throw (NamingException) new NamingException("could not look up " + jndiName).initCause(e); } }
Interface(final InterfaceType type, final String annotatedName, final String xmlName, final String openejbLegacy) { this.type = type; this.annotatedName = annotatedName; this.xmlName = xmlName; this.xmlNameCc = Strings.camelCase(xmlName); this.openejbLegacy = openejbLegacy; }
public static String lc(String string){ return lowercase(string); }
public static String uc(final String string) { return uppercase(string); }
encoding = optionsMap.get(Option.ENCODING); if (!Strings.checkNullBlankString(digest)) {