private static Messages messages() { // new is fine cause for errors only return new Messages("org.apache.openejb.util.resources"); }
private Messages messages() { // new is fine cause for errors only return new Messages("org.apache.openejb.util.resources"); }
private Messages messages() { // new is fine cause for errors only return new Messages("org.apache.openejb.util.resources"); }
private static Messages messages() { // only used for errors so lazy init is great Messages m = messagesRef.get(); if (m == null) { m = new Messages("org.apache.openejb.util.resources"); messagesRef.compareAndSet(null, m); } return m; }
protected static void checkImplementation(final Class intrfce, final Class factory, final String serviceType, final String serviceName) throws OpenEJBException { if (!intrfce.isAssignableFrom(factory)) { throw new OpenEJBException(new Messages("org.apache.openejb.util.resources").format("init.0100", serviceType, serviceName, factory.getName(), intrfce.getName())); } }
protected Class<?> loadClass(final ClassLoader cl, final String clazz) throws OpenEJBException { try { return Class.forName(clazz, false, cl == null ? module.getClassLoader() : cl); } catch (final ClassNotFoundException cnfe) { throw new OpenEJBException( new Messages("org.apache.openejb.util.resources").format("cl0007", clazz, module.getJarLocation()), cnfe); } } }
public static ServiceProvider getServiceProvider(final String idString) throws OpenEJBException { final ID id = ID.parse(idString, currentDefaultProviderUrl(DEFAULT_PROVIDER_URL)); { final ServiceProvider provider = getManager().get(id.getNamespace(), id.getName()); if (provider != null) { return provider; } } throw new NoSuchProviderException(new Messages("org.apache.openejb.util.resources").format("conf.4901", id.getName(), id.getNamespace())); }
final String msg = new Messages("org.apache.openejb.util.resources").format("config.noContainerFound", d.getContainerId(), d.getEjbName()); logger.fatal(msg); throw new OpenEJBException(msg);