/** * Set auto activate * @param v The value */ void setAutoActivate(boolean v) { try { RAActivator activator = embedded.lookup("RAActivator", RAActivator.class); if (activator != null) { activator.setEnabled(v); } } catch (Throwable t) { // Nothing } }
/** * Set auto activate * @param v The value */ void setAutoActivate(boolean v) { try { RAActivator activator = embedded.lookup("RAActivator", RAActivator.class); if (activator != null) { activator.setEnabled(v); } } catch (Throwable t) { // Nothing } }
@SuppressWarnings("unchecked") private Object resolveResource(Field field, org.jboss.jca.embedded.arquillian.Inject annotation) { try { return embeddedInst.get().lookup(annotation.name(), field.getType()); } catch (Throwable t) { // Nothing to do } return null; } }
@SuppressWarnings("unchecked") private Object resolveResource(Field field, org.jboss.jca.arquillian.embedded.Inject annotation) { try { return embeddedInst.get().lookup(annotation.name(), field.getType()); } catch (Throwable t) { throw new RuntimeException("Could not inject: " + annotation.name() + " (" + field.getType() + ")", t); } } }
@SuppressWarnings("unchecked") private Object resolveResource(Field field, org.jboss.jca.arquillian.embedded.Inject annotation) { try { return embeddedInst.get().lookup(annotation.name(), field.getType()); } catch (Throwable t) { throw new RuntimeException("Could not inject: " + annotation.name() + " (" + field.getType() + ")", t); } } }