/** * Creates component. * * @param noOp No-op flag. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T create(boolean noOp) throws IgniteCheckedException { return create0(null, noOp ? noOpClsName : clsName); }
/** * Creates component. * * @param ctx Kernal context. * @param noOp No-op flag. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T create(GridKernalContext ctx, boolean noOp) throws IgniteCheckedException { return create0(ctx, noOp ? noOpClsName : clsName); }
/** * Creates component. * * @param ctx Kernal context. * @param mandatory If the component is mandatory. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T createIfInClassPath(GridKernalContext ctx, boolean mandatory) throws IgniteCheckedException { String cls = clsName; try { Class.forName(cls); } catch (ClassNotFoundException e) { if (mandatory) throw componentException(e); cls = noOpClsName; } return create0(ctx, cls); }
/** * Creates component. * * @param ctx Kernal context. * @param noOp No-op flag. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T create(GridKernalContext ctx, boolean noOp) throws IgniteCheckedException { return create0(ctx, noOp ? noOpClsName : clsName); }
/** * Creates component. * * @param noOp No-op flag. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T create(boolean noOp) throws IgniteCheckedException { return create0(null, noOp ? noOpClsName : clsName); }
/** * Creates component. * * @param ctx Kernal context. * @param mandatory If the component is mandatory. * @return Created component. * @throws IgniteCheckedException If failed. */ public <T> T createIfInClassPath(GridKernalContext ctx, boolean mandatory) throws IgniteCheckedException { String cls = clsName; try { Class.forName(cls); } catch (ClassNotFoundException e) { if (mandatory) throw componentException(e); cls = noOpClsName; } return create0(ctx, cls); }