/** * Give a list of job to register when the tenant is activated * * @return */ public List<JobRegister> getJobsToRegister() { return CollectionUtil.emptyOrUnmodifiable(jobsToRegister); }
/** * This method throw an IllegalStateException if the given parameter is null * * @param valueToCheck * the value to check * @param msg * the message for the thrown exception * @see IllegalStateException */ public static void badStateIfNull(final Object valueToCheck, final String msg) { badStateIfTrue(valueToCheck == null, msg); }
protected void invokeJavaMethod(final Object objectToSet, final String methodName, final String parameterType, final Object valueToSet) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { final JavaMethodInvoker methodInvoker = new JavaMethodInvoker(); methodInvoker.invokeJavaMethod(parameterType, valueToSet, objectToSet, methodName, parameterType); }
public Record(final PersistentObject entity) { NullCheckingUtil.checkArgsNotNull(entity); this.entity = entity; }
@Override public void onDestroy(ClassLoader oldClassLoader) { ClassReflector.clearCache(); } }
@Override public void changeState(final LifecycleService service) throws SBonitaException { service.pause(); }
@Override public void changeState(final LifecycleService service) throws SBonitaException { service.start(); }
@Override public R getValue() { return getRight(); }
@Override public void changeState(final LifecycleService service) throws SBonitaException { service.stop(); }
@Override public final L getKey() { return getLeft(); }
public SConnectorAdapter(final Connector connector) { NullCheckingUtil.checkArgsNotNull(connector); this.connector = connector; }
protected void invokeJavaMethod(final Object objectToSet, final String methodName, final String parameterType, final Object valueToSet) throws ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException { final JavaMethodInvoker methodInvoker = new JavaMethodInvoker(); methodInvoker.invokeJavaMethod(parameterType, valueToSet, objectToSet, methodName, parameterType); }
@Override public void onDestroy(ClassLoader oldClassLoader) { ClassReflector.clearCache(); } }
/** * Give a list of job to register when the tenant is activated * * @return */ public List<JobRegister> getJobsToRegister() { return CollectionUtil.emptyOrUnmodifiable(jobsToRegister); }
/** * This method throw an IllegalStateException if the given parameter is null * * @param valueToCheck * the value to check * @param msg * the message for the thrown exception * @see IllegalStateException */ public static void badStateIfNull(final Object valueToCheck, final String msg) { badStateIfTrue(valueToCheck == null, msg); }
@Override public void changeState(final LifecycleService service) throws SBonitaException { service.pause(); }
@Override public void changeState(final LifecycleService service) throws SBonitaException { service.start(); }
@Override public R getValue() { return getRight(); }
@Override public void onUpdate(ClassLoader newClassLoader) { ClassReflector.clearCache(); }